/* avidnote-tools: AI-use disclosure statement generator.
 * Theme: Hub (Nunito, body #5d646d, primary #1072fa). Text-bearing blue uses
 * a slightly darker #0d63d8 so white-on-blue meets WCAG AA (5.5:1). */
.avidnote-tool--ai-disclosure,
.avidnote-tool-static {
	--avt-blue: #0d63d8;
	--avt-blue-soft: rgba(16, 114, 250, 0.08);
	--avt-ink: #3d4146;
	--avt-text: #5d646d;
	--avt-line: #dfe3e8;
	--avt-radius: 10px;
	font-family: 'Nunito', sans-serif;
	color: var(--avt-text);
}
.avidnote-tool--ai-disclosure { margin: 1.25rem 0 2rem; }
.avt-page-intro { padding-top: 2.5rem; }
.avt-page-intro h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; margin: 0 0 0.6rem; }
.avt-page-intro p { font-size: 17px; margin: 0 0 1.5rem; max-width: 760px; }
.avidnote-tool--ai-disclosure *,
.avidnote-tool--ai-disclosure *::before,
.avidnote-tool--ai-disclosure *::after { box-sizing: border-box; }

.avt-ad {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}
@media (min-width: 900px) {
	.avt-ad { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem; }
	.avt-ad__output { position: sticky; top: 100px; }
}

.avt-ad__form,
.avt-ad__output {
	background: #fff;
	border: 1px solid var(--avt-line);
	border-radius: var(--avt-radius);
	padding: 1.25rem;
	box-shadow: 0 6px 24px rgba(16, 37, 66, 0.06);
}
@media (min-width: 600px) {
	.avt-ad__form, .avt-ad__output { padding: 1.5rem 1.75rem; }
}

.avt-field { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
.avt-field[hidden], .avt-copy[hidden] { display: none !important; }
.avt-field legend,
.avt-field--text > label {
	display: block;
	font-weight: 700;
	font-size: 15px;
	color: var(--avt-ink);
	margin: 0 0 0.5rem;
	padding: 0;
}
.avt-hint { margin: -0.25rem 0 0.5rem; font-size: 13px; line-height: 1.5; color: var(--avt-text); }

.avt-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.avt-choices--radio { flex-direction: column; flex-wrap: nowrap; }
.avt-choice { position: relative; display: flex; align-items: center; }
.avt-choice input {
	position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
}
.avt-choice label {
	display: inline-flex; align-items: center; gap: 0.5rem;
	min-height: 40px; padding: 0.45rem 0.85rem;
	border: 1px solid var(--avt-line); border-radius: 999px;
	background: #fff; color: var(--avt-ink);
	font-size: 14px; line-height: 1.3; cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.avt-choices--radio .avt-choice label { border-radius: 8px; width: 100%; }
.avt-choice label::before {
	content: ''; flex: 0 0 auto; width: 16px; height: 16px;
	border: 2px solid #9aa3ad; border-radius: 4px; background: #fff;
}
.avt-choices--radio .avt-choice label::before { border-radius: 50%; }
.avt-choice input:checked + label { border-color: var(--avt-blue); background: var(--avt-blue-soft); }
.avt-choice input:checked + label::before {
	border-color: var(--avt-blue); background: var(--avt-blue);
	box-shadow: inset 0 0 0 3px #fff;
}
.avt-choice input:focus-visible + label { outline: 3px solid rgba(13, 99, 216, 0.45); outline-offset: 2px; }
.avt-choice label:hover { border-color: #b6c2cf; }
.avt-choice--single { margin-bottom: 1.25rem; }

.avt-field--text input,
.avt-field--text textarea {
	width: 100%; max-width: 100%;
	border: 1px solid #c5ccd4; border-radius: 8px;
	padding: 0.6rem 0.75rem; font: inherit; font-size: 15px; color: var(--avt-ink);
	background: #fff;
}
.avt-field--text textarea { min-height: 84px; resize: vertical; }
.avt-field--text input:focus,
.avt-field--text textarea:focus { outline: 3px solid rgba(13, 99, 216, 0.35); border-color: var(--avt-blue); }

.avt-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0.7rem 1.25rem;
	border-radius: 999px; border: 2px solid var(--avt-blue);
	font: inherit; font-weight: 700; font-size: 15px; line-height: 1.35;
	text-decoration: none !important; text-align: center; cursor: pointer;
}
.avt-btn--primary { background: var(--avt-blue); color: #fff !important; }
.avt-btn--primary:hover { background: #0a52b5; border-color: #0a52b5; }
.avt-btn--secondary { background: #fff; color: var(--avt-blue) !important; }
.avt-btn--secondary:hover { background: var(--avt-blue-soft); }
.avt-btn:focus-visible { outline: 3px solid rgba(13, 99, 216, 0.45); outline-offset: 3px; }
.avt-actions { margin-top: 0.5rem; }
.avt-btn--submit { width: 100%; }

.avt-ad__output-title { font-size: 20px; line-height: 1.3; margin: 0 0 1rem; color: var(--avt-ink); }
.avt-empty { margin: 0; padding: 1rem; border: 1px dashed var(--avt-line); border-radius: 8px; font-size: 14px; }
.avt-empty--error { border-color: #b45309; color: #92400e; }
.avt-statement {
	background: #f7f9fc; border: 1px solid var(--avt-line); border-left: 4px solid var(--avt-blue);
	border-radius: 8px; padding: 1rem 1.1rem; color: var(--avt-ink); font-size: 15px; line-height: 1.6;
	overflow-wrap: anywhere;
}
.avt-statement p { margin: 0 0 0.75rem; }
.avt-statement p:last-child { margin-bottom: 0; }
.avt-statement__heading { font-weight: 700; }
.avt-statement--none { border-left-color: #2e7d32; }
.avt-statement__fields { margin: 0; }
.avt-statement__fields dt { font-weight: 700; margin-top: 0.5rem; }
.avt-statement__fields dt:first-child { margin-top: 0; }
.avt-statement__fields dd { margin: 0; }

.avt-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0.9rem 0 0; }
.avt-copy__status { font-size: 14px; color: #2e7d32; }

.avt-block { margin: 1.1rem 0 0; font-size: 14px; line-height: 1.55; }
.avt-block h3 { font-size: 14px; font-weight: 700; margin: 0 0 0.35rem; color: var(--avt-ink); text-transform: none; letter-spacing: 0; }
.avt-block ul { margin: 0; padding-left: 1.1rem; }
.avt-block li { margin: 0 0 0.3rem; }
.avt-block--warn { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 0.75rem 0.9rem; }
.avt-block--warn h3 { color: #92400e; }
.avt-based { margin: 1.1rem 0 0; font-size: 13px; line-height: 1.55; }
.avt-based a, .avidnote-tool-static a { color: var(--avt-blue); text-decoration: underline; }

.avt-cta { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--avt-line); }
.avt-cta .avt-btn { width: 100%; }

.avidnote-tool-static { font-size: 14px; line-height: 1.6; margin: 0 0 2rem; }
.avidnote-tool-static p { margin: 0 0 0.6rem; }
.avt-error { padding: 1rem; border: 1px solid #fed7aa; background: #fff7ed; border-radius: 8px; color: #92400e; }
.avt-offscreen { position: fixed; left: -9999px; top: 0; }

@media (prefers-reduced-motion: reduce) {
	.avt-choice label { transition: none; }
}
