/* Tools HQ — the tool block on the blog. One look for every tool; modules add only their own bits. */
.athq-tool { --athq-blue: #1352cc; --athq-blue-dark: #0f44ab; --athq-tint: #eef3fd; --athq-ink: #1d2327; --athq-muted: #5c6575;
	--athq-rule: #dcdcde; --athq-good: #17794e; --athq-bad: #b32d1f; --athq-warn: #8a5a00;
	position: relative; border: 1px solid var(--athq-rule); border-radius: 12px; padding: 24px; margin: 28px 0; background: #fff;
	color: var(--athq-ink); font-size: 16px; line-height: 1.5; min-height: 240px; box-sizing: border-box; }
.athq-tool *, .athq-tool *::before, .athq-tool *::after { box-sizing: border-box; }
.athq-tool[data-mode="compact"] { padding: 18px; min-height: 200px; }
.athq-tool[data-athq-ready] { min-height: 0; }
.athq-tool .athq-loading { color: var(--athq-muted); font-size: 14px; margin: 0; }

/* Form parts */
.athq-tool .athq-grid { display: grid; grid-template-columns: repeat( auto-fit, minmax( 160px, 1fr ) ); gap: 12px 16px; margin: 0 0 16px; }
.athq-tool .athq-field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.athq-tool .athq-field > span { font-size: 14px; font-weight: 600; color: var(--athq-ink); }
.athq-tool .athq-field small { font-size: 12px; color: var(--athq-muted); font-weight: 400; }
.athq-tool input[type="text"], .athq-tool input[type="number"], .athq-tool input[type="email"], .athq-tool select, .athq-tool textarea {
	width: 100%; padding: 9px 12px; border: 1px solid #a7aaad; border-radius: 8px; font-size: 16px; line-height: 1.3; color: var(--athq-ink);
	background: #fff; margin: 0; font-family: inherit; }
.athq-tool input:focus, .athq-tool select:focus, .athq-tool textarea:focus { outline: 2px solid var(--athq-blue); outline-offset: 1px; border-color: var(--athq-blue); }
.athq-tool input.is-bad { border-color: var(--athq-bad); }
.athq-tool textarea { min-height: 140px; resize: vertical; }
.athq-tool .athq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; align-items: center; }
.athq-tool .athq-chips > span { font-size: 13px; color: var(--athq-muted); }
.athq-tool .athq-chip { border: 1px solid var(--athq-rule); background: #f6f7f9; color: var(--athq-ink); border-radius: 999px; padding: 5px 12px;
	font-size: 14px; cursor: pointer; line-height: 1.2; font-family: inherit; }
.athq-tool .athq-chip:hover, .athq-tool .athq-chip.is-on { border-color: var(--athq-blue); background: var(--athq-tint); color: var(--athq-blue); }
.athq-tool .athq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--athq-blue);
	color: var(--athq-blue); background: #fff; border-radius: 8px; padding: 10px 16px; font-weight: 600; font-size: 15px; line-height: 1.2;
	cursor: pointer; text-decoration: none; font-family: inherit; }
.athq-tool .athq-btn:hover { background: var(--athq-tint); }
.athq-tool .athq-btn-primary { background: var(--athq-blue); color: #fff; }
.athq-tool .athq-btn-primary:hover { background: var(--athq-blue-dark); color: #fff; }
.athq-tool .athq-btn[disabled] { opacity: .55; cursor: default; }
.athq-tool .athq-btn-big { font-size: 18px; padding: 14px 28px; }
.athq-tool .athq-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.athq-tool .athq-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--athq-ink); cursor: pointer; }

/* Results */
.athq-tool .athq-result { border-radius: 10px; background: var(--athq-tint); padding: 16px 18px; margin: 0 0 16px; }
.athq-tool .athq-result.is-warn { background: #fff6e0; }
.athq-tool .athq-result.is-good { background: #e8f5ee; }
.athq-tool .athq-result-big { font-size: 30px; font-weight: 700; line-height: 1.15; margin: 0; color: var(--athq-ink); }
.athq-tool .athq-result-sub { margin: 4px 0 0; font-size: 15px; color: var(--athq-muted); }
.athq-tool .athq-msg-bad, .athq-tool .athq-error { color: var(--athq-bad); font-size: 14px; margin: 0 0 12px; }
.athq-tool h3.athq-h { font-size: 17px; font-weight: 700; margin: 20px 0 8px; line-height: 1.3; }
.athq-tool .athq-scroll { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.athq-tool table.athq-table { border-collapse: collapse; width: auto; min-width: 0; margin: 0; font-size: 15px; }
.athq-tool table.athq-table th, .athq-tool table.athq-table td { border: 1px solid #c3c4c7; padding: 6px 12px; text-align: center; vertical-align: middle; }
.athq-tool table.athq-table thead th { background: #f0f3f9; font-weight: 600; }
.athq-tool table.athq-table tbody th { background: #f0f3f9; font-weight: 600; }
.athq-tool table.athq-table td.is-left, .athq-tool table.athq-table th.is-left { text-align: left; }
.athq-tool table.athq-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.athq-tool table.athq-grid-sq td { min-width: 54px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.athq-tool table.athq-grid-sq.is-dense td, .athq-tool table.athq-grid-sq.is-dense th { padding: 3px 5px; font-size: 12px; min-width: 0; }
.athq-tool .athq-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.athq-tool ol.athq-steps { margin: 0 0 16px; padding-left: 22px; }
.athq-tool ol.athq-steps li { margin: 0 0 8px; }
.athq-tool .athq-note { font-size: 13px; color: var(--athq-muted); margin: 0 0 12px; }

/* Footer: open full tool, calls to action */
.athq-tool .athq-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; border-top: 1px solid var(--athq-rule);
	margin-top: 16px; padding-top: 14px; }
.athq-tool a.athq-cta, .athq-tool a.athq-full { font-weight: 600; color: var(--athq-blue) !important; text-decoration: none !important;
	border-bottom: 0 !important; box-shadow: none !important; }
.athq-tool a.athq-cta:hover, .athq-tool a.athq-full:hover { text-decoration: underline !important; }
.athq-tool a.athq-cta-more { font-weight: 500; }
.athq-tool a.athq-btn, .athq-tool a.athq-btn:visited { text-decoration: none !important; border-bottom: 0 !important; }

/* Teacher extras */
.athq-tool .athq-extra { border-top: 1px solid var(--athq-rule); margin-top: 16px; padding-top: 16px; }
.athq-tool .athq-extra-title { margin: 0 0 4px; font-weight: 700; }
.athq-tool .athq-extra-blurb { margin: 0 0 10px; font-size: 15px; color: var(--athq-muted); }
.athq-tool .athq-extra-row { display: flex; flex-wrap: wrap; gap: 8px; }
.athq-tool .athq-extra-row input { flex: 1 1 200px; min-width: 0; width: auto; }
.athq-tool .athq-extra-row .aghq-sp { flex: 1 1 200px; min-width: 0; }
.athq-tool .athq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.athq-tool .athq-consent { margin: 6px 0 0; font-size: 12px !important; line-height: 1.4 !important; color: #7b8595; }
.athq-tool .athq-msg { margin: 6px 0 0; font-size: 14px; min-height: 1em; }
.athq-tool .athq-msg.is-ok { color: var(--athq-good); }
.athq-tool .athq-msg.is-bad { color: var(--athq-bad); }

/* Full screen (projector) */
.athq-tool .athq-stage { display: flex; align-items: center; justify-content: center; min-height: 160px; border-radius: 12px; background: #f6f8fc;
	margin: 0 0 16px; padding: 24px; text-align: center; }
.athq-tool .athq-stage-text { font-size: clamp( 32px, 7vw, 64px ); font-weight: 700; line-height: 1.1; word-break: break-word; }
.athq-tool .athq-stage-text.is-rolling { color: var(--athq-muted); }
.athq-tool:fullscreen, .athq-body:fullscreen { background: #fff; padding: 4vh 4vw; overflow: auto; display: flex; flex-direction: column; justify-content: center; }
.athq-body:fullscreen .athq-stage { flex: 1 1 auto; min-height: 50vh; }
.athq-body:fullscreen .athq-stage-text { font-size: clamp( 48px, 12vw, 160px ); }
.athq-body:fullscreen .athq-roster { display: none; }
.athq-tool .athq-actions select, .athq-tool .athq-actions input[type="text"] { width: auto; flex: 1 1 160px; min-width: 0; }
@media ( prefers-color-scheme: dark ) {
	.athq-body:fullscreen { background: #11151c; color: #f1f3f6; }
	.athq-body:fullscreen .athq-stage { background: #1b212b; }
}

/* Names list (teacher tools) */
.athq-tool .athq-names { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.athq-tool .athq-name { border: 1px solid var(--athq-rule); border-radius: 999px; padding: 4px 10px; font-size: 14px; background: #fff; cursor: pointer;
	font-family: inherit; color: var(--athq-ink); }
.athq-tool .athq-name.is-picked { background: #eceff3; color: var(--athq-muted); text-decoration: line-through; }
.athq-tool .athq-name.is-out { background: #fff; color: #a0a5ad; border-style: dashed; }

@media ( max-width: 480px ) {
	.athq-tool { padding: 16px; margin: 20px 0; }
	.athq-tool .athq-result-big { font-size: 24px; }
	.athq-tool .athq-extra-row .athq-btn { width: 100%; }
}
@media print {
	.athq-tool .athq-foot, .athq-tool .athq-extra, .athq-tool .athq-chips, .athq-tool .athq-actions { display: none; }
	.athq-tool { border: 0; padding: 0; }
}

/* The Tools tab: cards for every live tool (outside any one tool's block). */
.athq-index { --athq-blue: #1352cc; --athq-tint: #eef3fd; --athq-ink: #1d2327; --athq-muted: #5c6575; --athq-rule: #dcdcde; margin: 8px 0 24px; }
.athq-index-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.athq-index .athq-chip { border: 1px solid var(--athq-rule); background: #f6f7f9; color: var(--athq-ink); border-radius: 999px; padding: 6px 14px;
	font-size: 14px; cursor: pointer; line-height: 1.2; font-family: inherit; }
.athq-index .athq-chip:hover, .athq-index .athq-chip.is-on { border-color: var(--athq-blue); background: var(--athq-tint); color: var(--athq-blue); }
.athq-index-h { font-size: 18px; margin: 8px 0 10px; }
.athq-cards { display: grid; grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) ); gap: 12px; margin: 0 0 16px; }
.athq-index a.athq-card { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--athq-rule); border-radius: 12px; padding: 16px;
	background: #fff; color: var(--athq-ink) !important; text-decoration: none !important; border-bottom: 1px solid var(--athq-rule) !important;
	box-shadow: none !important; transition: border-color .15s; }
.athq-index a.athq-card:hover { border-color: var(--athq-blue) !important; }
.athq-index a.athq-card[hidden] { display: none; }
.athq-card-set { font-size: 12px; font-weight: 600; color: var(--athq-blue); }
.athq-card-name { font-size: 17px; font-weight: 700; line-height: 1.3; }
.athq-card-blurb { font-size: 14px; color: var(--athq-muted); line-height: 1.4; }
.athq-faq h3, .athq-faq h4 { margin-bottom: 4px; }

/* A tool page's own tables (not the tool's) scroll sideways on narrow screens */
.athq-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.athq-table-scroll > table { margin-bottom: 0; }
.athq-table-scroll { margin-bottom: 1.5em; }
