/* dnsdig — single stylesheet, no external fonts or CDNs (CSP: self only) */

:root {
	--bg:        #f4f6fb;
	--surface:   #ffffff;
	--border:    #e2e8f0;
	--text:      #0f172a;
	--muted:     #64748b;
	--accent:    #2563eb;
	--accent-2:  #1d4ed8;
	--accent-soft: #eff6ff;
	--ok:        #059669;
	--ok-soft:   #ecfdf5;
	--warn:      #b45309;
	--warn-soft: #fffbeb;
	--mono:      ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, Menlo, monospace;
	--radius:    12px;
	--shadow:    0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .12);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg:        #0b1120;
		--surface:   #111a2e;
		--border:    #24304a;
		--text:      #e2e8f0;
		--muted:     #8b9bb4;
		--accent:    #3b82f6;
		--accent-2:  #60a5fa;
		--accent-soft: #16233d;
		--ok:        #34d399;
		--ok-soft:   #0c2b22;
		--warn:      #fbbf24;
		--warn-soft: #2b2110;
		--shadow:    0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
	}
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wrap {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 1.5rem;
}
/* keep long-form reading content comfortably narrow inside the wider shell */
.content-page, .tool-blurb { max-width: 46rem; }

main.wrap { flex: 1; padding-bottom: 3rem; }

.mono { font-family: var(--mono); }

/* ---------- header ---------- */

.site-header {
	border-bottom: 1px solid var(--border);
	background: var(--surface);
}

.site-header .wrap {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	padding-top: .9rem;
	padding-bottom: .9rem;
}

.brand {
	font-size: 1.25rem;
	letter-spacing: -.02em;
	color: var(--text);
	text-decoration: none;
}

.brand strong { color: var(--accent); }

.brand-mark { color: var(--accent); margin-right: .15rem; }

.tagline {
	color: var(--muted);
	font-size: .85rem;
	margin-left: auto;
}

/* ---------- hero ---------- */

.hero { text-align: center; padding: 2.75rem 0 1.75rem; }

.hero h1 {
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	letter-spacing: -.03em;
	margin: 0 0 .5rem;
}

.hero p { color: var(--muted); max-width: 34rem; margin: 0 auto; }

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

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

/* ---------- form ---------- */

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	gap: 1rem;
	align-items: end;
}

.field-name { grid-column: 1 / -1; }

.field label {
	display: block;
	font-size: .8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--muted);
	margin-bottom: .35rem;
}

.field small {
	display: block;
	color: var(--muted);
	font-size: .78rem;
	margin-top: .35rem;
}

input[type="text"], select {
	width: 100%;
	padding: .65rem .8rem;
	font: inherit;
	color: var(--text);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	outline: none;
}

input[type="text"] { font-family: var(--mono); }

input[type="text"]:focus, select:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.btn {
	display: inline-block;
	padding: .65rem 1.4rem;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--accent);
	border: 1px solid var(--accent);
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s ease;
}

.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }

.btn-ghost {
	color: var(--accent);
	background: transparent;
	border: 1px solid var(--border);
	padding: .35rem .9rem;
	font-size: .85rem;
}

.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ---------- help blocks ---------- */

.help-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin-top: 2.25rem;
}

.help-item h3 { font-size: .95rem; margin: 0 0 .35rem; }
.help-item p  { color: var(--muted); font-size: .875rem; margin: 0; }

/* ---------- results ---------- */

.result-head { padding: 2rem 0 1.25rem; }

.result-head h1 {
	font-size: clamp(1.2rem, 3vw, 1.6rem);
	letter-spacing: -.02em;
	margin: 0 0 .6rem;
	overflow-wrap: anywhere;
}

.result-meta { display: flex; flex-wrap: wrap; gap: .5rem; }

.pill {
	font-size: .78rem;
	color: var(--muted);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: .2rem .7rem;
}

.pill-ok   { color: var(--ok);   background: var(--ok-soft);   border-color: transparent; }
.pill-warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; }

td.cell-name { white-space: nowrap; font-size: .85rem; }

.table-scroll { overflow-x: auto; }

table.records { width: 100%; border-collapse: collapse; }

table.records th {
	text-align: left;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--muted);
	padding: .4rem .75rem .6rem;
	border-bottom: 1px solid var(--border);
}

table.records td {
	padding: .65rem .75rem;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
	overflow-wrap: anywhere;
}

table.records tr:last-child td { border-bottom: none; }

table.records .detail { display: block; color: var(--muted); margin-top: .2rem; }

.rtype {
	display: inline-block;
	font-family: var(--mono);
	font-size: .75rem;
	font-weight: 600;
	color: var(--accent);
	background: var(--accent-soft);
	border-radius: 6px;
	padding: .15rem .5rem;
}

/* ---------- raw output ---------- */

.raw-card { padding-bottom: 1rem; }

.raw-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: .75rem;
}

.raw-head h2 { font-size: .95rem; margin: 0; }

pre.rawout {
	margin: 0;
	padding: 1rem;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	font-family: var(--mono);
	font-size: .82rem;
	line-height: 1.6;
	overflow-x: auto;
}

.again { text-align: center; margin-top: .5rem; }

/* ---------- notices ---------- */

.notice h1 { font-size: 1.2rem; margin-top: 0; }
.notice p  { margin: .5rem 0 0; }
.notice .btn { margin-top: .5rem; }

.notice-warn { border-left: 4px solid var(--warn); background: var(--warn-soft); }

/* ---------- footer ---------- */

.site-footer {
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: .82rem;
}

.site-footer .wrap { padding: 1rem 1.25rem; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
	.form-grid { grid-template-columns: 1fr; }
	.help-grid { grid-template-columns: 1fr; }
	.tagline   { display: none; }
	.field-submit .btn { width: 100%; }
}

/* PHP port additions */
td.cell-ttl { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .85rem; }
th.col-ttl  { text-align: right; }
td.cell-ttl { text-align: right; }

/* --- wildcard sweep layout --- */
.section-title { font-size: 1rem; margin: 0 0 .25rem; display: flex; align-items: center; gap: .5rem; }
.section-title .count {
	font-size: .75rem; font-weight: 600; color: var(--accent);
	background: var(--accent-soft); border-radius: 999px; padding: .1rem .55rem;
}
.section-sub { color: var(--muted); font-size: .85rem; margin: 0 0 1rem; }
.notice-inline { color: var(--muted); font-size: .875rem; margin: .5rem 0 0; }

.wildcard-card { border-left: 4px solid var(--warn); }
.wildcard-answer {
	display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
	padding: .8rem 1rem; background: var(--bg);
	border: 1px dashed var(--border); border-radius: 8px; margin-bottom: .9rem;
}
.wc-star  { color: var(--warn); font-weight: 700; }
.wc-arrow { color: var(--muted); }
.warn-text { color: var(--warn); font-size: .85rem; line-height: 1.55; margin: 0 0 1rem; }

.wc-details { border-top: 1px solid var(--border); padding-top: .75rem; }
.wc-details > summary {
	cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--accent);
	list-style: none; padding: .35rem 0; user-select: none;
}
.wc-details > summary::-webkit-details-marker { display: none; }
.wc-details > summary::before { content: "\25B8  "; color: var(--muted); }
.wc-details[open] > summary::before { content: "\25BE  "; }
.wc-details > summary:hover { color: var(--accent-2); }
.wc-details .table-scroll { margin-top: .5rem; }

/* ===== multi-tool site chrome ===== */
.toolnav { border-top: 1px solid var(--border); background: var(--surface); }
.toolnav-inner { display: flex; flex-wrap: wrap; gap: 1.25rem; padding-top: .6rem; padding-bottom: .6rem; }
.navgroup { display: flex; flex-direction: column; gap: .2rem; }
.navgroup-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.navgroup-items { display: flex; flex-wrap: wrap; gap: .15rem .6rem; }
.navlink { font-size: .82rem; color: var(--text); text-decoration: none; opacity: .8; white-space: nowrap; }
.navlink:hover { color: var(--accent); opacity: 1; }
.navlink.is-active { color: var(--accent); font-weight: 700; opacity: 1; }

.tool-head { padding: 1.75rem 0 1rem; }
.tool-head h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; margin: 0 0 .35rem; }
.tool-blurb { color: var(--muted); margin: 0; max-width: 46rem; }

/* landing grid */
.cat-block { margin: 1.5rem 0 .5rem; }
.cat-title { font-size: 1rem; margin: 0 0 .75rem; padding-bottom: .35rem; border-bottom: 1px solid var(--border); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.tool-card {
	display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem;
	background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
	text-decoration: none; color: var(--text); box-shadow: var(--shadow);
	transition: border-color .15s ease, transform .1s ease;
}
.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-card-title { font-weight: 700; font-size: .98rem; }
.tool-card-title::before { content: "\25B8"; color: var(--accent); margin-right: .4rem; }
.tool-card-blurb { color: var(--muted); font-size: .82rem; line-height: 1.45; }

/* generic tool form + results */
.result-head { padding: 1.25rem 0 1rem; }
.result-head h2 { font-size: 1.25rem; margin: 0 0 .6rem; overflow-wrap: anywhere; }
.field textarea, textarea.input {
	width: 100%; padding: .65rem .8rem; font-family: var(--mono); font-size: .9rem;
	color: var(--text); background: var(--bg); border: 1px solid var(--border);
	border-radius: 8px; outline: none; resize: vertical; min-height: 8rem;
}
.field textarea:focus, textarea.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.row .field { flex: 1 1 12rem; }
.inline-opts { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin: .25rem 0 1rem; }
.inline-opts label { font-size: .85rem; color: var(--text); display: inline-flex; align-items: center; gap: .35rem; text-transform: none; letter-spacing: 0; font-weight: 400; }
.out {
	margin: 0; padding: 1rem; background: var(--bg); border: 1px solid var(--border);
	border-radius: 8px; font-family: var(--mono); font-size: .85rem; line-height: 1.55;
	overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}
.out.nowrap { white-space: pre; word-break: normal; }

/* key/value + data tables shared */
table.kv { width: 100%; border-collapse: collapse; }
table.kv th, table.kv td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
table.kv th { color: var(--muted); font-weight: 600; font-size: .82rem; white-space: nowrap; width: 12rem; }
table.kv tr:last-child th, table.kv tr:last-child td { border-bottom: none; }
table.kv td .mono { font-size: .88rem; }

.status-ok   { color: var(--ok); font-weight: 700; }
.status-warn { color: var(--warn); font-weight: 700; }
.status-bad  { color: #dc2626; font-weight: 700; }
@media (prefers-color-scheme: dark) { .status-bad { color: #f87171; } }

.grade { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 8px; font-weight: 800; font-size: 1.1rem; color: #fff; }
.grade-a { background: #059669; } .grade-b { background: #16a34a; } .grade-c { background: #d97706; }
.grade-d { background: #ea580c; } .grade-f { background: #dc2626; }

.hint { color: var(--muted); font-size: .82rem; margin: .5rem 0 0; }
.chk { margin-right: .3rem; }
.check-pass::before { content: "\2714"; color: var(--ok); margin-right: .4rem; }
.check-fail::before { content: "\2718"; color: #dc2626; margin-right: .4rem; }

/* findings list (spf/dmarc/dkim/email analysis) */
ul.findings { list-style: none; margin: 0; padding: 0; }
ul.findings li { padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; line-height: 1.5; }
ul.findings li:last-child { border-bottom: none; }
ul.findings .status-ok, ul.findings .status-warn, ul.findings .status-bad { font-size: .7rem; margin-right: .5rem; }
.san-list { display: flex; flex-wrap: wrap; gap: .3rem; }
.san-list .rtype { font-weight: 400; }

/* ===== dropdown main nav (replaces flat toolnav) ===== */
.headbar { display: flex; align-items: center; gap: 1.5rem; padding-top: .7rem; padding-bottom: .7rem; flex-wrap: wrap; }
.mainnav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.navtop {
	display: inline-block; padding: .45rem .7rem; border-radius: 8px;
	font-size: .9rem; color: var(--text); text-decoration: none; cursor: pointer;
	white-space: nowrap; list-style: none;
}
.navtop:hover { background: var(--accent-soft); color: var(--accent); }
.navtop.is-active { color: var(--accent); font-weight: 700; }
details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary::after { content: " \25BE"; color: var(--muted); font-size: .8em; }
details.menu[open] > summary { background: var(--accent-soft); color: var(--accent); }
.menu-panel {
	position: absolute; top: calc(100% + 4px); left: 0; z-index: 60;
	min-width: 260px; max-width: 320px; padding: .4rem;
	background: var(--surface); border: 1px solid var(--border);
	border-radius: 10px; box-shadow: var(--shadow);
	display: flex; flex-direction: column; gap: .1rem;
}
.menu-item { display: flex; flex-direction: column; gap: .1rem; padding: .5rem .6rem; border-radius: 7px; text-decoration: none; color: var(--text); }
.menu-item b { font-size: .88rem; font-weight: 600; }
.menu-item span { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.menu-item:hover { background: var(--accent-soft); }
.menu-item.is-active { background: var(--accent-soft); }
.menu-item.is-active b { color: var(--accent); }

@media (max-width: 640px) {
	.menu-panel { position: static; box-shadow: none; border-color: var(--border); margin: .15rem 0 .4rem; }
	.mainnav { width: 100%; flex-direction: column; align-items: stretch; }
	details.menu > summary { width: 100%; }
}

/* ===== SEO additions: breadcrumbs, related, FAQ, rich footer ===== */
.crumbs { font-size: .78rem; color: var(--muted); padding: 1rem 0 0; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs span { margin: 0 .15rem; }

.related .rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem; margin-top: .5rem; }
.rel-card { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 9px; text-decoration: none; color: var(--text); background: var(--bg); }
.rel-card:hover { border-color: var(--accent); }
.rel-card b { font-size: .88rem; }
.rel-card b::before { content: "\25B8"; color: var(--accent); margin-right: .35rem; }
.rel-card span { font-size: .76rem; color: var(--muted); line-height: 1.4; }

.faq .faq-item { border-bottom: 1px solid var(--border); }
.faq .faq-item:last-child { border-bottom: none; }
.faq .faq-item > summary { cursor: pointer; font-weight: 600; font-size: .92rem; padding: .8rem 0; list-style: none; position: relative; padding-right: 1.5rem; }
.faq .faq-item > summary::-webkit-details-marker { display: none; }
.faq .faq-item > summary::after { content: "+"; position: absolute; right: .3rem; color: var(--accent); font-weight: 700; }
.faq .faq-item[open] > summary::after { content: "\2013"; }
.faq .faq-item > p { margin: 0 0 1rem; color: var(--muted); line-height: 1.6; font-size: .9rem; }

.footcols { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 1.5rem; padding-top: 2rem; padding-bottom: 1.5rem; }
.footcol h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .6rem; }
.footcol a { display: block; color: var(--text); text-decoration: none; font-size: .82rem; padding: .18rem 0; opacity: .85; }
.footcol a:hover { color: var(--accent); opacity: 1; }
.footcol .brand { font-size: 1.1rem; }
.foottag { color: var(--muted); font-size: .82rem; margin: .5rem 0 0; max-width: 20rem; }
.footbar { border-top: 1px solid var(--border); padding: 1rem 1.25rem; color: var(--muted); font-size: .8rem; }
@media (max-width: 720px) { .footcols { grid-template-columns: 1fr 1fr; } }

/* content pages (about/privacy/terms/contact/404) */
.content-page { max-width: 46rem; padding: 1.5rem 0 1rem; }
.content-page h1 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; margin: 0 0 1rem; }
.content-page h2 { font-size: 1.15rem; margin: 1.75rem 0 .6rem; }
.content-page p, .content-page li { line-height: 1.7; color: var(--text); }
.content-page ul { padding-left: 1.2rem; }
.content-page li { margin: .3rem 0; }
.content-page a { color: var(--accent); }
.footlinks { margin-top: .4rem; }
.footlinks a { color: var(--muted); text-decoration: none; margin-right: 1rem; font-size: .8rem; }
.footlinks a:hover { color: var(--accent); }

/* ===== mobile hamburger nav ===== */
.nav-toggle {
	display: none; margin-left: auto; width: 42px; height: 38px; padding: 0;
	background: none; border: 1px solid var(--border); border-radius: 8px;
	cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 800px) {
	.headbar { flex-wrap: wrap; }
	.brand { margin-right: auto; }
	.nav-toggle { display: inline-flex; }
	.mainnav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin-top: .5rem; }
	.mainnav.open { display: flex; }
	.mainnav > .navtop, details.menu { width: 100%; border-top: 1px solid var(--border); }
	.mainnav > .navtop { padding: .8rem .5rem; }
	details.menu > summary { padding: .8rem .5rem; }
	.menu-panel { position: static; box-shadow: none; border: none; border-radius: 0;
		min-width: 0; max-width: none; padding: 0 0 .5rem 1rem; }
	.menu-item { padding: .55rem .5rem; }
	.tagline { display: none; }
}

/* ===== text compare (diff) ===== */
.diff-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.diff-inputs textarea { min-height: 12rem; }
@media (max-width: 640px) { .diff-inputs { grid-template-columns: 1fr; } }
.diff-summary { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.diff-output { border: 1px solid var(--border); border-radius: 8px; overflow: auto; font-family: var(--mono); font-size: .82rem; }
.diff-line { display: flex; align-items: flex-start; gap: .5rem; padding: .05rem .6rem; white-space: pre-wrap; word-break: break-word; }
.diff-gutter { flex: 0 0 1rem; text-align: center; color: var(--muted); user-select: none; }
.diff-text { flex: 1; }
.diff-add { background: color-mix(in srgb, var(--ok) 16%, transparent); }
.diff-del { background: color-mix(in srgb, #dc2626 15%, transparent); }
.diff-add .diff-gutter { color: var(--ok); }
.diff-del .diff-gutter { color: #dc2626; }

/* ===== logo (replaces text wordmark) ===== */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand .logo { height: 30px; width: auto; display: block; }
.brand .logo-dark { display: none; }
.site-footer .brand .logo { height: 26px; }
@media (prefers-color-scheme: dark) {
	.brand .logo-light { display: none; }
	.brand .logo-dark { display: block; }
}
:root[data-theme="light"] .brand .logo-light { display: block; }
:root[data-theme="light"] .brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }

/* ===== contact form ===== */
.contact-form .field { margin-bottom: 1rem; }
.contact-form .btn { margin-top: .3rem; }
input[type="email"], input[type="number"], input[type="password"] {
	width: 100%; padding: .65rem .8rem; font: inherit; color: var(--text);
	background: var(--bg); border: 1px solid var(--border); border-radius: 8px; outline: none;
}
input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus {
	border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ensure header items (logo, hamburger, nav) are vertically centered */
.site-header .headbar { align-items: center; }

/* ===== home: search, gradient heading, quick-jump bar, category icons ===== */
html { scroll-behavior: smooth; }

.hero h1 .grad {
	background: linear-gradient(90deg, #2563eb, #06b6d4, #10b981);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

.tool-search { max-width: 32rem; margin: 1.4rem auto 0; }
.tool-search input {
	width: 100%; padding: .8rem 1.1rem; font: inherit; font-size: 1rem;
	color: var(--text); background: var(--surface);
	border: 1px solid var(--border); border-radius: 12px; outline: none;
	box-shadow: var(--shadow);
}
.tool-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

.jumpbar {
	position: sticky; top: 0; z-index: 50;
	display: flex; flex-wrap: wrap; gap: .5rem;
	padding: .65rem 0; margin: 0 0 1.75rem;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: saturate(1.2) blur(6px);
	border-bottom: 1px solid var(--border);
}
.jumpbar a {
	font-size: .82rem; font-weight: 600; color: var(--text); text-decoration: none;
	padding: .35rem .85rem; border: 1px solid var(--border); border-radius: 999px;
	background: var(--surface); transition: color .12s ease, border-color .12s ease;
}
.jumpbar a:hover { border-color: var(--accent); color: var(--accent); }
.jumpbar a.active { background: linear-gradient(90deg, #2563eb, #10b981); color: #fff; border-color: transparent; }

.cat-block { scroll-margin-top: 68px; }
.cat-title { display: flex; align-items: center; gap: .5rem; }
.cat-icon { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }

.search-empty { text-align: center; color: var(--muted); padding: 2.5rem 0; font-size: .95rem; }

/* footer: keep the brand column spanning both rows so category columns align
   (Developer Tools sits under DNS & Domain, Text under Email, etc.) */
.footcols > .footcol:first-child { grid-row: 1 / span 2; }
.footbar > p:first-child a { color: var(--accent); text-decoration: none; }
.footbar > p:first-child a:hover { text-decoration: underline; }
@media (max-width: 720px) { .footcols > .footcol:first-child { grid-row: auto; } }
