/**
 * GGG/AI First 72 Hours Checklist styles.
 *
 * Uses CSS variables for theme alignment; inherits host typography where possible.
 */

.ggg-f72 {
	--ggg-f72-color-primary: #1a3a5c;
	--ggg-f72-color-primary-hover: #122a44;
	--ggg-f72-color-text: #1f2933;
	--ggg-f72-color-muted: #52606d;
	--ggg-f72-color-border: #d9e2ec;
	--ggg-f72-color-bg: #ffffff;
	--ggg-f72-color-bg-subtle: #f5f7fa;
	--ggg-f72-color-phase-1: #e8f0f8;
	--ggg-f72-color-phase-2: #eef2f6;
	--ggg-f72-color-phase-3: #f3f5f7;
	--ggg-f72-max-width: 42rem;
	--ggg-f72-radius: 0.375rem;
	--ggg-f72-focus: #2563eb;

	box-sizing: border-box;
	max-width: var(--ggg-f72-max-width);
	margin-inline: auto;
	padding: 1.5rem 1rem 2rem;
	color: var(--ggg-f72-color-text);
	font: inherit;
	line-height: 1.6;
}

.ggg-f72 *,
.ggg-f72 *::before,
.ggg-f72 *::after {
	box-sizing: inherit;
}

.ggg-f72__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.35rem, 4vw, 1.75rem);
	line-height: 1.25;
	color: var(--ggg-f72-color-primary);
}

.ggg-f72__subtitle {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
	color: var(--ggg-f72-color-muted);
}

.ggg-f72__intro {
	margin: 0 0 1.25rem;
}

.ggg-f72__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.ggg-f72__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	min-width: 2.75rem;
	padding: 0.625rem 1.125rem;
	border: 1px solid transparent;
	border-radius: var(--ggg-f72-radius);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ggg-f72__btn:focus-visible {
	outline: 2px solid var(--ggg-f72-focus);
	outline-offset: 2px;
}

.ggg-f72__btn--primary {
	background: var(--ggg-f72-color-primary);
	color: #fff;
}

.ggg-f72__btn--primary:hover {
	background: var(--ggg-f72-color-primary-hover);
}

.ggg-f72__btn--secondary {
	background: var(--ggg-f72-color-bg);
	color: var(--ggg-f72-color-primary);
	border-color: var(--ggg-f72-color-border);
}

.ggg-f72__btn--secondary:hover {
	background: var(--ggg-f72-color-bg-subtle);
}

.ggg-f72__progress-sticky {
	position: sticky;
	top: 0;
	z-index: 10;
	padding: 0.75rem 0 1rem;
	margin-bottom: 1rem;
	background: var(--ggg-f72-color-bg);
	border-bottom: 1px solid var(--ggg-f72-color-border);
}

.ggg-f72__progress {
	height: 0.5rem;
	overflow: hidden;
	background: var(--ggg-f72-color-bg-subtle);
	border-radius: 999px;
}

.ggg-f72__progress-fill {
	height: 100%;
	background: var(--ggg-f72-color-primary);
	transition: width 0.25s ease;
}

.ggg-f72__progress-label {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	justify-content: space-between;
	margin: 0.5rem 0 0;
	font-size: 0.95rem;
}

.ggg-f72__progress-percent {
	color: var(--ggg-f72-color-muted);
}

.ggg-f72__sr-live,
.ggg-f72__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ggg-f72__phase {
	margin-bottom: 2rem;
	padding: 1.25rem;
	border: 1px solid var(--ggg-f72-color-border);
	border-radius: var(--ggg-f72-radius);
}

.ggg-f72__phase--immediate {
	background: var(--ggg-f72-color-phase-1);
}

.ggg-f72__phase--first_24_hours {
	background: var(--ggg-f72-color-phase-2);
}

.ggg-f72__phase--hours_24_72 {
	background: var(--ggg-f72-color-phase-3);
}

.ggg-f72__phase-title {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
	color: var(--ggg-f72-color-primary);
}

.ggg-f72__phase-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ggg-f72-color-muted);
}

.ggg-f72__phase-desc {
	margin: 0 0 1rem;
	color: var(--ggg-f72-color-muted);
}

.ggg-f72__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ggg-f72__item {
	padding: 0.875rem 0;
	border-top: 1px solid var(--ggg-f72-color-border);
}

.ggg-f72__item:first-child {
	border-top: 0;
	padding-top: 0;
}

.ggg-f72__item-label {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	cursor: pointer;
}

.ggg-f72__checkbox {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.2rem;
	accent-color: var(--ggg-f72-color-primary);
}

.ggg-f72__item-text {
	flex: 1;
}

.ggg-f72__item--complete .ggg-f72__item-text {
	opacity: 0.65;
	text-decoration: line-through;
}

.ggg-f72__item-note {
	margin: 0.5rem 0 0 2rem;
	font-size: 0.925rem;
	color: var(--ggg-f72-color-muted);
}

.ggg-f72__note-toggle,
.ggg-f72__add-custom {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	margin-top: 0.5rem;
	margin-left: 2rem;
	padding: 0.25rem 0;
	border: 0;
	background: none;
	color: var(--ggg-f72-color-primary);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.ggg-f72__note-toggle:focus-visible,
.ggg-f72__add-custom:focus-visible {
	outline: 2px solid var(--ggg-f72-focus);
	outline-offset: 2px;
}

.ggg-f72__note {
	margin: 0.5rem 0 0 2rem;
}

.ggg-f72__note-input {
	width: 100%;
	min-height: 5rem;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--ggg-f72-color-border);
	border-radius: var(--ggg-f72-radius);
	font: inherit;
	resize: vertical;
}

.ggg-f72__custom {
	margin-top: 1rem;
}

.ggg-f72__custom-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: flex-end;
	margin-top: 0.75rem;
}

.ggg-f72__custom-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ggg-f72__field-error {
	flex: 1 1 100%;
	margin: 0;
	font-size: 0.875rem;
	color: #b42318;
}

.ggg-f72__delete-custom {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	margin-top: 0.5rem;
	margin-left: 2rem;
	padding: 0.25rem 0;
	border: 0;
	background: none;
	color: #9b1c1c;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.ggg-f72__delete-custom:focus-visible {
	outline: 2px solid var(--ggg-f72-focus);
	outline-offset: 2px;
}

.ggg-f72__item--custom .ggg-f72__item-note {
	display: none;
}

.ggg-f72__custom-input {
	flex: 1 1 14rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--ggg-f72-color-border);
	border-radius: var(--ggg-f72-radius);
	font: inherit;
}

.ggg-f72__disclaimer {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ggg-f72-color-border);
	font-size: 0.9rem;
	color: var(--ggg-f72-color-muted);
}

.ggg-f72__disclaimer-title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	color: var(--ggg-f72-color-text);
}

.ggg-f72__dialog {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(15, 23, 42, 0.45);
}

.ggg-f72__dialog[hidden] {
	display: none;
}

.ggg-f72__dialog-panel {
	width: min(100%, 28rem);
	padding: 1.25rem;
	background: var(--ggg-f72-color-bg);
	border-radius: var(--ggg-f72-radius);
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15);
}

.ggg-f72__dialog-title {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
}

.ggg-f72__dialog-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: flex-end;
	margin-top: 1.25rem;
}

@media print {
	.ggg-f72__actions,
	.ggg-f72__note-toggle,
	.ggg-f72__add-custom,
	.ggg-f72__custom,
	.ggg-f72__delete-custom,
	.ggg-f72__dialog {
		display: none !important;
	}

	.ggg-f72__progress-sticky {
		position: static;
	}
}
