/**
 * Governance Docs Gap Assessment.
 *
 * Everything is scoped under .gdga-app (plus the account table) and sets its own
 * values rather than inheriting, so the component looks the same whichever theme
 * or page builder wraps it. Sizes are rem-based so it respects the reader's
 * browser text size.
 */

.gdga-app,
.gdga-account,
.gdga-account-table,
.gdga-confirm {
	/* The theme publishes its whole design system as --gd-* custom properties
	   on :root. Use those first so a rebrand carries through with no code
	   change here, fall back to Elementor's global colours, then to the values
	   those currently hold. */
	--gdga-deep: var(--gd-ink, var(--e-global-color-secondary, #0e1622));
	--gdga-deep-2: var(--gd-ink2, #16202f);
	--gdga-gold: var(--gd-gold, var(--e-global-color-primary, #c29b4c));
	--gdga-gold-light: var(--gd-gold-hi, #e6cb86);
	--gdga-gold-ink: #8a6a1f; /* gold dark enough to read as text on cream */
	--gdga-ink: var(--gd-body, var(--e-global-color-text, #2b3646));
	--gdga-ink-2: var(--gd-body, #2b3646);
	--gdga-muted: var(--gd-muted, #5d6878);
	--gdga-line: var(--gd-line, #dcd5c6);
	--gdga-line-strong: #c4b99f;
	--gdga-surface: var(--gd-card, #fcfbf8);
	--gdga-sunk: var(--gd-bone, #f3efe6);
	--gdga-brand: var(--gd-verd, #1f4e4a);
	--gdga-brand-mid: #2a6560;
	--gdga-on-deep: var(--gd-onink, #d9e0ea);
	--gdga-brass: var(--gdga-gold);
	--gdga-warn: #8d3a32;
	--gdga-warn-soft: #f7e6e1;
	--gdga-ok: #2b6150;
	--gdga-ok-soft: #e4ede6;
	--gdga-med-soft: #f6e8d2;
	--gdga-med: #8a5520;
	--gdga-radius: 4px;
	--gdga-radius-btn: 2px;

	color: var(--gdga-ink);
	font-size: 16px;
	line-height: 1.55;
	box-sizing: border-box;
}

.gdga-app *,
.gdga-app *::before,
.gdga-app *::after { box-sizing: inherit; }

.gdga-app p { margin: 0 0 0.75rem; }
.gdga-app p:last-child { margin-bottom: 0; }

.gdga-h2 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 0.5rem; color: var(--gdga-brand); }
.gdga-h3 { font-size: 1.15rem; line-height: 1.25; margin: 1.75rem 0 0.6rem; color: var(--gdga-brand); }
.gdga-eyebrow {
	font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--gdga-muted); margin: 0 0 0.5rem;
}
.gdga-lede { font-size: 1.02rem; color: var(--gdga-ink-2); max-width: 62ch; }
.gdga-muted { color: var(--gdga-muted); }
.gdga-note {
	background: var(--gdga-sunk); border-left: 3px solid var(--gdga-gold);
	padding: 0.7rem 0.9rem; font-size: 0.92rem; color: var(--gdga-ink-2); margin: 1rem 0;
}

/* ---- cards and buttons --------------------------------------------------- */

.gdga-card {
	background: var(--gdga-surface); border: 1px solid var(--gdga-line);
	border-radius: var(--gdga-radius); padding: 1.6rem;
}
.gdga-center { text-align: center; }

.gdga-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; align-items: center; }
.gdga-actions--nav { justify-content: space-between; margin-top: 1.6rem; }

.gdga-btn {
	display: inline-flex; align-items: center; gap: 0.4rem;
	background: var(--gdga-brand); color: #fff; border: 1px solid var(--gdga-brand);
	border-radius: var(--gdga-radius-btn); padding: 0.62rem 1.15rem;
	font-size: 0.97rem; font-weight: 600; line-height: 1.3;
	cursor: pointer; text-decoration: none; transition: filter 0.15s ease, background 0.15s ease;
}
.gdga-btn:hover, .gdga-btn:focus { background: var(--gdga-brand-mid); color: #fff; text-decoration: none; }
.gdga-btn--ghost { background: transparent; color: var(--gdga-brand); border-color: var(--gdga-line-strong); }
.gdga-btn--ghost:hover, .gdga-btn--ghost:focus { background: var(--gdga-sunk); color: var(--gdga-brand); }

/* The paid call to action, painted the way the site paints "Browse Toolkits". */
.gdga-btn--buy {
	background: linear-gradient(105deg, var(--gdga-gold) 0%, var(--gdga-gold-light) 50%, var(--gdga-gold) 100%);
	border-color: var(--gdga-gold);
	color: var(--gdga-deep);
}
.gdga-btn--buy:hover, .gdga-btn--buy:focus { color: var(--gdga-deep); filter: brightness(1.06); }
.gdga-btn--small { padding: 0.35rem 0.7rem; font-size: 0.86rem; }
.gdga-price { font-weight: 400; opacity: 0.9; }

.gdga-link {
	background: none; border: 0; padding: 0; margin-top: 0.9rem;
	color: var(--gdga-brand); font: inherit; font-size: 0.92rem;
	text-decoration: underline; cursor: pointer;
}

.gdga-app :focus-visible,
.gdga-account :focus-visible { outline: 2px solid var(--gdga-gold); outline-offset: 2px; }

/* ---- intro --------------------------------------------------------------- */

.gdga-facts { display: flex; gap: 0; margin: 1.3rem 0 0; padding: 0; border: 1px solid var(--gdga-line); border-radius: var(--gdga-radius); overflow: hidden; }
.gdga-facts > div { flex: 1 1 0; padding: 0.8rem 0.6rem; text-align: center; border-right: 1px solid var(--gdga-line); }
.gdga-facts > div:last-child { border-right: 0; }
.gdga-facts dt { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gdga-muted); margin: 0 0 0.2rem; }
.gdga-facts dd { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--gdga-brand); }
.gdga-resume-note { margin-top: 1rem; font-weight: 600; color: var(--gdga-brand-mid); }

/* ---- progress ------------------------------------------------------------ */

.gdga-progress {
	position: sticky; top: 0; z-index: 20;
	background: var(--gdga-surface); border-bottom: 1px solid var(--gdga-line);
	padding: 0.6rem 0 0.5rem; margin-bottom: 0.9rem;
}
.gdga-progress__bar { height: 5px; background: var(--gdga-sunk); border-radius: 3px; overflow: hidden; }
.gdga-progress__bar span { display: block; height: 5px; background: var(--gdga-brand-mid); transition: width 0.25s ease; }
.gdga-progress__meta {
	display: flex; justify-content: space-between; align-items: center;
	font-size: 0.82rem; color: var(--gdga-muted); margin-top: 0.35rem; gap: 1rem;
}
.gdga-save { font-size: 0.8rem; white-space: nowrap; }
.gdga-save--saving { color: var(--gdga-muted); }
.gdga-save--saved { color: var(--gdga-ok); }
.gdga-save--error { color: var(--gdga-warn); font-weight: 600; }

/* ---- domain navigation --------------------------------------------------- */

.gdga-sectionnav { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.3rem; }
.gdga-chip {
	display: inline-flex; align-items: baseline; gap: 0.4rem;
	background: transparent; border: 1px solid var(--gdga-line-strong);
	border-radius: 999px; padding: 0.3rem 0.75rem;
	font: inherit; font-size: 0.82rem; color: var(--gdga-ink-2); cursor: pointer;
}
.gdga-chip:hover { border-color: var(--gdga-brand); color: var(--gdga-brand); }
.gdga-chip__count { font-size: 0.74rem; color: var(--gdga-muted); font-variant-numeric: tabular-nums; }
.gdga-chip.is-current { background: var(--gdga-brand); border-color: var(--gdga-brand); color: #fff; }
.gdga-chip.is-current .gdga-chip__count { color: rgba(255,255,255,0.8); }
.gdga-chip.is-done { border-color: var(--gdga-ok); background: var(--gdga-ok-soft); color: var(--gdga-ok); }
.gdga-chip.is-done .gdga-chip__count { color: var(--gdga-ok); }
.gdga-chip.is-part { border-color: var(--gdga-gold); }

.gdga-section-head { margin-bottom: 1rem; }

/* ---- scope --------------------------------------------------------------- */

.gdga-scope {
	display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem;
	background: var(--gdga-sunk); border: 1px solid var(--gdga-line);
	border-radius: var(--gdga-radius); padding: 1rem; margin-bottom: 1.3rem;
}

.gdga-field { display: flex; flex-direction: column; gap: 0.25rem; }
.gdga-field label { font-size: 0.8rem; font-weight: 600; color: var(--gdga-ink-2); }
.gdga-field input,
.gdga-field textarea {
	width: 100%; font: inherit; font-size: 0.92rem; color: var(--gdga-ink);
	background: var(--gdga-surface); border: 1px solid var(--gdga-line-strong);
	border-radius: 4px; padding: 0.45rem 0.6rem;
}
.gdga-field textarea { resize: vertical; min-height: 2.6rem; }

/* ---- organisation profile (optional) -------------------------------------- */

.gdga-profile {
	grid-column: 1 / -1;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem;
	border-top: 1px dashed var(--gdga-line-strong); padding-top: 0.9rem;
}
.gdga-profile--bia {
	background: var(--gdga-sunk); border: 1px solid var(--gdga-line);
	border-radius: var(--gdga-radius); padding: 1rem; margin: 0.4rem 0 1.2rem;
}
.gdga-profile__head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0.15rem; }
.gdga-profile__head strong { font-size: 0.88rem; color: var(--gdga-deep); }
.gdga-profile__head .gdga-muted { font-size: 0.8rem; }
.gdga-field select {
	width: 100%; font: inherit; font-size: 0.92rem; color: var(--gdga-ink);
	background: var(--gdga-surface); border: 1px solid var(--gdga-line-strong);
	border-radius: 4px; padding: 0.45rem 0.6rem; min-height: 2.4rem;
}

/* ---- AI reading of the result --------------------------------------------- */

.gdga-ai {
	background: var(--gdga-surface); border: 1px solid var(--gdga-line);
	border-left: 3px solid var(--gdga-gold); border-radius: var(--gdga-radius);
	padding: 1rem 1.2rem; margin: 1rem 0 1.2rem;
}
.gdga-ai__eyebrow { color: var(--gdga-gold-ink); font-weight: 700; margin-bottom: 0.35rem; }
.gdga-ai__text { font-size: 1.02rem; line-height: 1.6; color: var(--gdga-deep); margin: 0; }
.gdga-ai__note { font-size: 0.78rem; color: var(--gdga-muted); margin: 0.6rem 0 0 !important; }
.gdga-ai.is-loading .gdga-ai__text { color: var(--gdga-muted); font-size: 0.92rem; }
.gdga-ai.is-loading .gdga-ai__text::after {
	content: ""; display: inline-block; width: 0.8rem; height: 0.8rem; margin-left: 0.5rem; vertical-align: -0.1rem;
	border: 2px solid var(--gdga-line-strong); border-top-color: var(--gdga-gold); border-radius: 50%;
	animation: gdga-spin 0.9s linear infinite;
}

/* ---- control cards ------------------------------------------------------- */

.gdga-controls { display: flex; flex-direction: column; gap: 0.8rem; }

.gdga-control {
	background: var(--gdga-surface); border: 1px solid var(--gdga-line);
	border-left: 3px solid var(--gdga-line-strong);
	border-radius: var(--gdga-radius); padding: 1rem 1.1rem;
}
.gdga-control.is-answered { border-left-color: var(--gdga-brand-mid); }

.gdga-control__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.55rem; margin-bottom: 0.4rem; }
.gdga-ref {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.8rem; color: var(--gdga-gold-ink); font-weight: 600; white-space: nowrap;
}
.gdga-control__title { font-size: 1rem; margin: 0; line-height: 1.3; color: var(--gdga-ink); }
.gdga-question { font-size: 0.95rem; color: var(--gdga-ink-2); margin: 0 0 0.75rem; }

.gdga-statuses { display: flex; flex-direction: column; gap: 0.3rem; }
.gdga-status { position: relative; }
.gdga-status input {
	position: absolute; opacity: 0; width: 1px; height: 1px;
}
.gdga-status label {
	display: block; cursor: pointer;
	border: 1px solid var(--gdga-line); border-radius: 4px;
	padding: 0.45rem 0.7rem; transition: border-color 0.12s ease, background 0.12s ease;
}
.gdga-status label:hover { border-color: var(--gdga-brand-mid); background: var(--gdga-sunk); }
.gdga-status.is-selected label { border-color: var(--gdga-brand); background: var(--gdga-ok-soft); }
.gdga-status input:focus-visible + label { outline: 2px solid var(--gdga-gold); outline-offset: 1px; }
.gdga-status__label { display: block; font-size: 0.92rem; font-weight: 600; color: var(--gdga-ink); }
.gdga-status__help { display: block; font-size: 0.82rem; color: var(--gdga-muted); margin-top: 0.1rem; }

.gdga-more { margin-top: 0.8rem; border-top: 1px solid var(--gdga-line); padding-top: 0.6rem; }
.gdga-more summary { cursor: pointer; font-size: 0.86rem; color: var(--gdga-brand); font-weight: 600; }
.gdga-guidance { margin: 0.7rem 0; font-size: 0.88rem; }
.gdga-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.6rem; }
.gdga-field--evidence, .gdga-field--notes { grid-column: 1 / -1; }

/* ---- gate ---------------------------------------------------------------- */

.gdga-gate { text-align: center; max-width: 34rem; margin: 0 auto; }
.gdga-gate .gdga-actions { justify-content: center; }
.gdga-gate .gdga-lede { margin-left: auto; margin-right: auto; }
.gdga-lock {
	width: 42px; height: 42px; margin: 0 auto 0.9rem; border-radius: 50%;
	background: var(--gdga-ok-soft); position: relative;
}
.gdga-lock::before {
	content: ""; position: absolute; left: 13px; top: 19px; width: 16px; height: 12px;
	border-radius: 2px; background: var(--gdga-brand);
}
.gdga-lock::after {
	content: ""; position: absolute; left: 16px; top: 11px; width: 10px; height: 10px;
	border: 2.5px solid var(--gdga-brand); border-bottom: 0;
	border-radius: 5px 5px 0 0;
}

/* ---- result -------------------------------------------------------------- */

.gdga-score { text-align: center; padding: 1.6rem 1rem 1.2rem; border: 1px solid var(--gdga-line); border-radius: var(--gdga-radius); }
.gdga-score__value {
	font-size: clamp( 2.6rem, 9vw, 4rem ); font-weight: 700; line-height: 1;
	color: var(--gdga-brand); margin: 0.2rem 0 0.4rem; font-variant-numeric: tabular-nums;
}

.gdga-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--gdga-line); border: 1px solid var(--gdga-line); border-top: 0; }
.gdga-kpi { background: var(--gdga-surface); padding: 0.8rem 0.4rem; text-align: center; }
.gdga-kpi__label { display: block; font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gdga-muted); }
.gdga-kpi__value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--gdga-brand); font-variant-numeric: tabular-nums; }
.gdga-kpi--warn .gdga-kpi__value { color: var(--gdga-warn); }

.gdga-locked {
	margin-top: 1.6rem; padding: 1.4rem; border-radius: var(--gdga-radius);
	background: var(--gdga-sunk); border: 1px solid var(--gdga-line);
}
.gdga-lockedlist { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.gdga-lockedlist li {
	display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
	padding: 0.45rem 0; border-bottom: 1px solid var(--gdga-line); font-size: 0.92rem;
}
.gdga-lockedlist__gaps { color: var(--gdga-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gdga-lockedlist__gaps.has-gaps { color: var(--gdga-warn); font-weight: 600; }

.gdga-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; font-size: 0.92rem; }
.gdga-table th { text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gdga-muted); border-bottom: 1px solid var(--gdga-line-strong); padding: 0.4rem 0.5rem; }
.gdga-table td { border-bottom: 1px solid var(--gdga-line); padding: 0.5rem; vertical-align: middle; }
.gdga-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gdga-bar { background: var(--gdga-sunk); height: 6px; border-radius: 3px; min-width: 60px; }
.gdga-bar span { display: block; height: 6px; background: var(--gdga-brand-mid); border-radius: 3px; }

.gdga-plan { list-style: none; counter-reset: gdga-step; margin: 0.6rem 0 0; padding: 0; }
.gdga-plan__item { border: 1px solid var(--gdga-line); border-left: 3px solid var(--gdga-brand-mid); border-radius: var(--gdga-radius); padding: 0.8rem 1rem; margin-bottom: 0.6rem; }
.gdga-plan__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; margin-bottom: 0.35rem; }
.gdga-plan__title { font-weight: 600; }
.gdga-plan__action { font-size: 0.92rem; color: var(--gdga-ink-2); margin: 0; }
.gdga-plan__docs { font-size: 0.85rem; color: var(--gdga-muted); margin: 0.4rem 0 0; }

.gdga-pill { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.12rem 0.45rem; border-radius: 3px; }
.gdga-pill--high { background: var(--gdga-warn-soft); color: var(--gdga-warn); }
.gdga-pill--medium { background: var(--gdga-med-soft); color: var(--gdga-med); }
.gdga-pill--low { background: var(--gdga-ok-soft); color: var(--gdga-ok); }

/* ---- account table -------------------------------------------------------
   The host theme ships Bootstrap table rules such as
   `.widget table > :not(caption) > * > *`, which zero out cell padding and win
   against a single-class selector. Everything below is scoped under
   .gdga-account and qualified with the element, so it outranks them without
   resorting to !important.
   -------------------------------------------------------------------------- */

/* The theme caps the My Account content column at 700px and then spends 75px
   of that on padding, leaving 625px of a 1120px row for a six-column table.
   The account navigation sits in its own full-width row above the content, so
   widening the content column here takes space from nothing. Scoped to the
   body class the plugin adds on its own endpoint; the :has() rule is a
   belt-and-braces fallback for the shortcode used on a page of its own. */
body.gdga-account-page .woocommerce-MyAccount-content,
.woocommerce-MyAccount-content:has(.gdga-account) {
	max-width: 100%;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.gdga-account { margin: 0 0 1.5rem; }

.gdga-account .gdga-account__scroll {
	overflow-x: auto;           /* safety net only; the table is sized to fit */
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--gdga-line);
	border-radius: var(--gdga-radius);
	background: var(--gdga-surface);
}

.gdga-account table.gdga-account-table {
	width: 100%;
	min-width: 0;
	table-layout: fixed;
	border-collapse: collapse;
	border-spacing: 0;
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.45;
	background: transparent;
}

.gdga-account table.gdga-account-table thead th {
	background: var(--gdga-deep);
	color: var(--gdga-gold-light);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: left;
	white-space: nowrap;
	padding: 0.75rem 0.85rem;
	border: 0;
	border-right: 1px solid rgba(230,203,134,0.22);
	vertical-align: middle;
}
.gdga-account table.gdga-account-table thead th:last-child { border-right: 0; }

.gdga-account table.gdga-account-table tbody td {
	padding: 0.85rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
	border-right: 1px solid var(--gdga-line);
	border-bottom: 1px solid var(--gdga-line);
	border-top: 0;
	border-left: 0;
	vertical-align: middle;
	background: transparent;
	color: var(--gdga-ink);
}
.gdga-account table.gdga-account-table tbody td:last-child { border-right: 0; }
.gdga-account table.gdga-account-table tbody tr:last-child td { border-bottom: 0; }
.gdga-account table.gdga-account-table tbody tr:nth-child(even) td { background: var(--gdga-sunk); }

.gdga-account .gdga-fw {
	display: block;
	font-weight: 700;
	color: var(--gdga-brand);
	white-space: nowrap;
}
.gdga-account table.gdga-account-table .gdga-col-framework { width: 13%; }
.gdga-account table.gdga-account-table .gdga-col-org       { width: 20%; }
.gdga-account table.gdga-account-table .gdga-col-progress  { width: 15%; }
.gdga-account table.gdga-account-table .gdga-col-score     { width: 9%;  }
.gdga-account table.gdga-account-table .gdga-col-updated   { width: 13%; }
.gdga-account table.gdga-account-table .gdga-col-actions   { width: 30%; }
/* The impact analysis table has its own columns but the same actions cell,
   which holds three buttons and needs the same share of the width. */
.gdga-account table.gdga-account-table .gdga-col-bia-org    { width: 31%; }
.gdga-account table.gdga-account-table .gdga-col-bia-acts   { width: 10%; }
.gdga-account table.gdga-account-table .gdga-col-bia-status { width: 16%; }

.gdga-account .gdga-col-updated { white-space: nowrap; }
.gdga-account .gdga-col-score { text-align: right; }
.gdga-account .gdga-scorecell {
	font-size: 1.02rem;
	color: var(--gdga-brand);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.gdga-account .gdga-progresscell { display: block; min-width: 100px; }
.gdga-account .gdga-minibar {
	display: block;
	height: 5px;
	border-radius: 3px;
	background: var(--gdga-line);
	overflow: hidden;
	margin-bottom: 0.25rem;
}
.gdga-account .gdga-minibar > span { display: block; height: 5px; background: var(--gdga-brand-mid); }
.gdga-account .gdga-progresscell__text {
	font-size: 0.78rem;
	color: var(--gdga-muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.gdga-account .gdga-rowactions { display: flex; flex-wrap: nowrap; gap: 0.35rem; align-items: stretch; }
.gdga-account .gdga-rowactions .gdga-btn { justify-content: center; text-align: center; white-space: nowrap; }
.gdga-account .gdga-btn__price { font-weight: 400; margin-left: 0.15rem; }

/* The theme sets `.woocommerce-Price-amount { color: var(--gd-gold) !important }`,
   which inside a gold button leaves the price unreadable. This is the one place
   !important is warranted: nothing else outranks it. */
.gdga-account .gdga-btn--buy .gdga-btn__price,
.gdga-app .gdga-btn--buy .gdga-btn__price,
.gdga-account .gdga-btn--buy .gdga-price,
.gdga-app .gdga-btn--buy .gdga-price,
.gdga-account .gdga-btn--buy .gdga-btn__price .woocommerce-Price-amount,
.gdga-app .gdga-btn--buy .gdga-btn__price .woocommerce-Price-amount,
.gdga-account .gdga-btn--buy .gdga-price .woocommerce-Price-amount,
.gdga-app .gdga-btn--buy .gdga-price .woocommerce-Price-amount,
.gdga-account .gdga-btn--buy .gdga-btn__price .woocommerce-Price-currencySymbol,
.gdga-app .gdga-btn--buy .gdga-btn__price .woocommerce-Price-currencySymbol,
.gdga-account .gdga-btn--buy .gdga-price .woocommerce-Price-currencySymbol,
.gdga-app .gdga-btn--buy .gdga-price .woocommerce-Price-currencySymbol {
	color: var(--gdga-deep) !important;
	opacity: 1;
}

.gdga-account .gdga-account__note {
	margin: 0.9rem 0 0;
	font-size: 0.85rem;
	color: var(--gdga-muted);
	max-width: 70ch;
}

/* ---- delete a record ------------------------------------------------------

   The confirmation is a step of its own above the tables rather than a panel
   inside the actions column: that column is narrow and fixed-width, and a
   destructive, unrecoverable action should not sit one stray tap away from the
   download links. No JavaScript is involved, so it also works if scripts fail. */

.gdga-btn--danger {
	background: transparent;
	color: var(--gdga-warn);
	border-color: var(--gdga-warn);
}
.gdga-btn--danger:hover,
.gdga-btn--danger:focus {
	background: var(--gdga-warn);
	color: #fff;
	border-color: var(--gdga-warn);
}
button.gdga-btn--danger,
.gdga-confirm .gdga-btn--danger { background: var(--gdga-warn); color: #fff; }
button.gdga-btn--danger:hover,
button.gdga-btn--danger:focus,
.gdga-confirm .gdga-btn--danger:hover,
.gdga-confirm .gdga-btn--danger:focus { background: #742d26; border-color: #742d26; color: #fff; }

.gdga-confirm {
	border: 1px solid var(--gdga-warn);
	border-left-width: 4px;
	border-radius: var(--gdga-radius);
	background: var(--gdga-warn-soft);
	padding: 1.1rem 1.25rem;
	margin: 0 0 1.4rem;
	max-width: 62ch;
	color: #6f2820;
}
.gdga-confirm__q {
	margin: 0 0 0.6rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #6f2820;
	line-height: 1.35;
}
.gdga-confirm p { margin: 0 0 0.7rem; font-size: 0.9rem; line-height: 1.6; color: #6f2820; }
.gdga-confirm__paid {
	border-top: 1px solid rgba(141, 58, 50, 0.25);
	padding-top: 0.6rem;
	font-weight: 600;
}
.gdga-confirm__acts { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0; }
.gdga-confirm__acts .gdga-btn--ghost { background: #fff; }

/* Specificity, not order: the base .gdga-notice is declared further down in the
   misc section and would otherwise repaint this pink. */
.gdga-notice.gdga-notice--ok { background: #dcebe4; color: #21503f; }
.gdga-notice { margin-bottom: 1.2rem; }

.gdga-account--bia { margin-top: 2rem; }
.gdga-account__headrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin: 0 0 0.7rem;
}
.gdga-account__headrow .gdga-account__head { margin: 0; }
.gdga-account__head {
	margin: 0 0 0.7rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--gdga-brand);
}

.gdga-account--empty {
	border: 1px solid var(--gdga-line);
	border-radius: var(--gdga-radius);
	padding: 1.4rem;
	background: var(--gdga-surface);
}
.gdga-account--empty p { margin: 0 0 0.5rem; }

/* Every live assessment is offered here at once. As a single nowrap row those
   buttons were wider than the page and pushed the account screen into a
   horizontal scrollbar, so they lay out as a grid that reflows into as many
   rows as the width allows - four or five columns on a desktop, two on a
   phone, and never a sideways scroll. */
.gdga-account--empty .gdga-startgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
	gap: 0.5rem;
	margin-top: 1.1rem;
}
.gdga-account--empty .gdga-startgrid .gdga-btn {
	justify-content: center;
	text-align: center;
	white-space: normal;      /* long names wrap inside their cell */
	overflow-wrap: break-word;
	line-height: 1.25;
}

/* One call to action, not a grid of them: keep it the width of its label. */
.gdga-account--empty .gdga-startgrid--single { display: flex; }
.gdga-account--bia-empty .gdga-account--empty { margin: 0; }

@media (max-width: 560px) {
	.gdga-account--empty .gdga-startgrid {
		grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
		gap: 0.4rem;
	}
}

/* Below the table's minimum width, stack each row into a labelled card so the
   customer never has to scroll sideways on a phone. */
@media (max-width: 782px) {
	.gdga-account .gdga-account__scroll { border: 0; background: transparent; overflow-x: visible; }
	.gdga-account table.gdga-account-table { min-width: 0; table-layout: auto; }
	.gdga-account table.gdga-account-table td[class*="gdga-col-"] { width: auto; }
	.gdga-account table.gdga-account-table thead { display: none; }
	.gdga-account table.gdga-account-table,
	.gdga-account table.gdga-account-table tbody,
	.gdga-account table.gdga-account-table tr,
	.gdga-account table.gdga-account-table td { display: block; width: 100%; }

	.gdga-account table.gdga-account-table tbody tr {
		border: 1px solid var(--gdga-line);
		border-radius: var(--gdga-radius);
		background: var(--gdga-surface);
		margin-bottom: 0.8rem;
		padding: 0.3rem 0.2rem;
	}
	.gdga-account table.gdga-account-table tbody tr:nth-child(even) td { background: transparent; }

	.gdga-account table.gdga-account-table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 1rem;
		border-right: 0;
		border-bottom: 1px solid var(--gdga-line);
		padding: 0.6rem 0.8rem;
		text-align: left;
	}
	.gdga-account table.gdga-account-table tbody td:last-child {
		border-bottom: 0;
		display: block;
	}
	.gdga-account table.gdga-account-table tbody td::before {
		content: attr(data-label);
		font-size: 0.7rem;
		letter-spacing: 0.07em;
		text-transform: uppercase;
		color: var(--gdga-muted);
		font-weight: 700;
		flex: 0 0 auto;
	}
	.gdga-account .gdga-col-score { text-align: right; }
	.gdga-account .gdga-progresscell { min-width: 140px; }
	.gdga-account .gdga-rowactions { flex-wrap: wrap; }
}

/* ---- misc ---------------------------------------------------------------- */

.gdga-spinner {
	width: 26px; height: 26px; margin: 0 auto 0.7rem; border-radius: 50%;
	border: 3px solid var(--gdga-line); border-top-color: var(--gdga-brand);
	animation: gdga-spin 0.8s linear infinite;
}
@keyframes gdga-spin { to { transform: rotate(360deg); } }

.gdga-notice { padding: 0.8rem 1rem; border-radius: var(--gdga-radius); background: #f7e2de; color: #8d3a32; }

@media (max-width: 640px) {
	.gdga-scope, .gdga-grid, .gdga-profile { grid-template-columns: 1fr; }
	.gdga-kpis { grid-template-columns: repeat(2, 1fr); }
	.gdga-facts { flex-wrap: wrap; }
	.gdga-facts > div { flex-basis: 33%; }
	.gdga-card { padding: 1.1rem; }
	.gdga-control { padding: 0.9rem; }
	.gdga-chip__name { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
	.gdga-app *, .gdga-app *::before, .gdga-app *::after {
		animation-duration: 0.001ms !important; transition-duration: 0.001ms !important;
	}
}

/* ---- hub: chooser, catalogue grid ------------------------------
   The hub renders the same component vocabulary as the assessment itself, so
   the two read as one product rather than a landing page bolted onto a tool.
   -------------------------------------------------------------------------- */

.gdga-hub { margin: 0 0 1.5rem; }
.gdga-hub .gdga-h2 { margin-top: 0; }

.gdga-input {
	width: 100%; min-width: 0;
	border: 1px solid var(--gdga-line-strong); border-radius: var(--gdga-radius);
	padding: 0.55rem 0.7rem; font: inherit; font-size: 0.95rem;
	color: var(--gdga-ink); background: var(--gdga-surface);
}
.gdga-input:focus { border-color: var(--gdga-brand-mid); outline: none; box-shadow: 0 0 0 2px rgba(46,110,102,0.15); }

.gdga-pill--live { background: var(--gdga-ok-soft); color: var(--gdga-ok); }
.gdga-pill--soon { background: var(--gdga-sunk); color: var(--gdga-muted); }
.gdga-pill--soft { background: var(--gdga-med-soft); color: var(--gdga-med); }

/* chooser */

.gdga-chooser {
	background: var(--gdga-sunk); border: 1px solid var(--gdga-line);
	border-radius: var(--gdga-radius); padding: 1.6rem; margin: 0 0 2.4rem;
}
.gdga-chooser__form { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
.gdga-chooser__q { border: 0; padding: 0; margin: 0; min-width: 0; }
.gdga-chooser__legend { padding: 0; font-weight: 700; color: var(--gdga-ink); font-size: 0.98rem; }
.gdga-chooser__help { margin: 0.15rem 0 0.5rem; font-size: 0.84rem; color: var(--gdga-muted); }
.gdga-chooser__opts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }

.gdga-chip { display: inline-flex; }
.gdga-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gdga-chip > span {
	display: inline-block; cursor: pointer;
	background: var(--gdga-surface); border: 1px solid var(--gdga-line-strong);
	border-radius: 999px; padding: 0.35rem 0.8rem;
	font-size: 0.88rem; color: var(--gdga-ink-2); transition: background 0.15s ease, border-color 0.15s ease;
}
.gdga-chip > span:hover { border-color: var(--gdga-brand-mid); }
.gdga-chip input:checked + span { background: var(--gdga-brand); border-color: var(--gdga-brand); color: #fff; }
.gdga-chip input:focus-visible + span { outline: 2px solid var(--gdga-gold); outline-offset: 2px; }

.gdga-chooser__result { margin-top: 1.4rem; border-top: 1px solid var(--gdga-line); padding-top: 1.2rem; }
.gdga-chooser__because { font-size: 0.86rem; color: var(--gdga-muted); margin: 0 0 0.8rem; }
.gdga-chooser__none { margin: 0; color: var(--gdga-ink-2); }
.gdga-chooser__picks { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.gdga-chooser__pick {
	background: var(--gdga-surface); border: 1px solid var(--gdga-line);
	border-radius: var(--gdga-radius); padding: 0.9rem;
}
.gdga-chooser__pick.is-best { border-color: var(--gdga-brand-mid); box-shadow: 0 1px 0 var(--gdga-brand-mid); }
.gdga-chooser__name { font-size: 1.05rem; margin: 0.4rem 0 0.6rem; color: var(--gdga-brand); }
.gdga-chooser__soon { font-size: 0.86rem; color: var(--gdga-muted); margin: 0 0 0.4rem; }
.gdga-chooser__jump { font-size: 0.86rem; }
.gdga-chooser__reset {
	background: none; border: 0; padding: 0; margin-top: 0.9rem;
	color: var(--gdga-muted); font: inherit; font-size: 0.86rem;
	text-decoration: underline; cursor: pointer;
}

/* catalogue */

.gdga-family { margin: 0 0 2.4rem; }
.gdga-family .gdga-lede { margin-bottom: 1.1rem; }
.gdga-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.gdga-fwcard { padding: 1.2rem; display: flex; flex-direction: column; }
.gdga-fwcard.is-soon { background: var(--gdga-sunk); }
.gdga-fwcard__head { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 0.45rem; }
.gdga-fwcard__title { margin: 0; font-size: 1.2rem; line-height: 1.2; color: var(--gdga-brand); white-space: nowrap; }
.gdga-fwcard__title a { color: inherit; text-decoration: none; }
.gdga-fwcard__title a:hover { text-decoration: underline; }
.gdga-fwcard__long { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--gdga-muted); }
.gdga-fwcard__blurb { margin: 0.6rem 0 0; font-size: 0.92rem; color: var(--gdga-ink-2); }

.gdga-fwcard__facts {
	list-style: none; margin: 0.8rem 0 0; padding: 0;
	font-size: 0.8rem; color: var(--gdga-muted);
}
.gdga-fwcard__facts li + li { margin-top: 0.15rem; }

.gdga-fwcard__actions { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gdga-fwcard__toolkit { flex: 1 0 100%; font-size: 0.84rem; }


/* cross-sell at the end of an assessment */

.gdga-alsorun { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--gdga-line); }
.gdga-alsorun__list { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 1rem; }
.gdga-alsorun__item {
	background: var(--gdga-sunk); border: 1px solid var(--gdga-line);
	border-radius: var(--gdga-radius); padding: 0.9rem;
	display: flex; flex-direction: column; gap: 0.5rem;
}
.gdga-alsorun__name { color: var(--gdga-brand); font-size: 1.02rem; }
.gdga-alsorun__blurb { margin: 0; font-size: 0.86rem; color: var(--gdga-ink-2); }
.gdga-alsorun__item .gdga-btn { margin-top: auto; align-self: flex-start; }
.gdga-alsorun__soon { margin-top: auto; font-size: 0.84rem; }
.gdga-alsorun__all { margin: 1rem 0 0; font-size: 0.9rem; }

@media (max-width: 600px) {
	.gdga-chooser { padding: 1.1rem; }
	.gdga-fwcard { padding: 1rem; }
	}

/* hub FAQ */

.gdga-faq { margin-top: 2.4rem; }
.gdga-faq__list { margin: 1.2rem 0 0; }
.gdga-faq__item { border-top: 1px solid var(--gdga-line); padding: 1rem 0; }
.gdga-faq__item:last-child { border-bottom: 1px solid var(--gdga-line); }
.gdga-faq__q { font-weight: 700; color: var(--gdga-ink); margin: 0 0 0.35rem; }
.gdga-faq__a { margin: 0; color: var(--gdga-ink-2); font-size: 0.95rem; max-width: 72ch; }
