/* ============================================================
   SeedFinder — "Mining Console" design system
   Display:  Pixelify Sans  ·  Body: IBM Plex Mono
   ============================================================ */

:root {
	--bg: #101218;
	--bg-2: #0a0c10;
	--panel: #171a22;
	--panel-2: #1d212b;
	--line: #2a2f3b;
	--line-2: #3a4050;
	--text: #e3e6ee;
	--muted: #8b92a3;
	--dim: #565d6d;
	--green: #57d368;
	--green-dim: rgba(87, 211, 104, 0.12);
	--gold: #f0b94d;
	--gold-dim: rgba(240, 185, 77, 0.12);
	--red: #e35d4f;
	--red-dim: rgba(227, 93, 79, 0.12);
	--blue: #5cb8dd;
	--blue-dim: rgba(92, 184, 221, 0.1);
	--font-disp: "Pixelify Sans", "IBM Plex Mono", monospace;
	--font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
	--radius: 10px;
	--shadow-hard: 4px 4px 0 rgba(0, 0, 0, 0.45);
	--shadow-hard-lg: 8px 8px 0 rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 15px;
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a { color: var(--green); }
a:hover { text-decoration: none; }

/* ---------- Blueprint background ---------- */
.grid-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(1100px 560px at 85% -5%, var(--green-dim), transparent 62%),
		radial-gradient(900px 480px at 8% 108%, var(--blue-dim), transparent 60%),
		radial-gradient(700px 400px at 50% 45%, rgba(255, 255, 255, 0.02), transparent 65%),
		repeating-linear-gradient(0deg, transparent 0 47px, rgba(255, 255, 255, 0.025) 47px 48px),
		repeating-linear-gradient(90deg, transparent 0 47px, rgba(255, 255, 255, 0.025) 47px 48px),
		var(--bg);
}

/* ---------- Nav ---------- */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px clamp(16px, 4vw, 48px);
	background: rgba(16, 18, 24, 0.85);
	backdrop-filter: blur(8px);
	border-bottom: 2px solid var(--line);
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 44px;
	min-height: 44px;
	text-decoration: none;
	color: var(--text);
}
.nav-logo { height: 34px; width: 34px; image-rendering: pixelated; }
.nav-title {
	font-family: var(--font-disp);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 8px 14px;
	font-size: 13.5px;
	color: var(--muted);
	text-decoration: none;
	letter-spacing: 0.4px;
	transition: color 0.15s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--green); }
.nav-link.active::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 2px;
	height: 2px;
	background: var(--green);
}
.nav-github {
	border: 1px solid var(--line-2);
	border-radius: 6px;
}
.nav-github:hover { border-color: var(--green); }

.nav-toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 44px;
	min-height: 44px;
	background: none;
	border: 1px solid var(--line-2);
	border-radius: 6px;
	padding: 8px;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--text);
	transition: transform 0.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); }

/* ---------- Layout ---------- */
/* Keep grid/flex children shrinkable so nowrap content (snippets, tables)
   scrolls inside its card instead of pushing the page wider on mobile. */
.hero > *,
.console-grid > *,
.tools-grid > *,
.card { min-width: 0; }

.page {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(32px, 6vw, 88px) clamp(16px, 4vw, 48px) 96px;
	flex: 1;
}

.footer {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	justify-content: space-between;
	align-items: center;
	padding: 18px clamp(16px, 4vw, 48px);
	border-top: 2px solid var(--line);
	color: var(--dim);
	font-size: 12.5px;
	letter-spacing: 0.4px;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.footer-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: var(--muted);
	text-decoration: none;
	transition: color 0.15s ease;
}

.footer-links a:hover {
	color: var(--green);
}

.footer > span a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	font-family: var(--font-disp);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-decoration: none;
	color: var(--text);
	background: var(--panel-2);
	border: 2px solid var(--line-2);
	border-radius: 8px;
	padding: 10px 20px;
	cursor: pointer;
	box-shadow: var(--shadow-hard);
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-lg); border-color: var(--green); color: var(--green); }
.btn:active, .btn:disabled { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
	background: var(--green);
	border-color: var(--green);
	color: #0b0d11;
}
.btn-primary:hover { background: #6fe37e; color: #0b0d11; border-color: var(--green); }
.btn-ghost { background: transparent; }

.btn-block { display: block; width: 100%; text-align: center; }
.btn-wide { margin-top: 22px; }

/* ---------- Hero (home) ---------- */
.hero {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 48px;
	align-items: center;
	/* A tela inteira fica reservada para o herói, mas a linha do grid fica no
	   topo (align-content): o conteúdo não desce. Os 184px descontam o padding
	   do .page, o nav e o gap entre as seções, deixando o título Tools ~20px
	   abaixo da dobra: um único scroll o revela. */
	align-content: start;
	/* 98px = nav (70) + gap entre as seções (48) - 20 de folga abaixo da dobra;
	   o clamp repete o padding do .page para a conta valer em qualquer largura.
	   Resultado: o título Tools começa ~20px abaixo da dobra, então um único
	   scroll de roda o revela inteiro. */
	min-height: calc(100vh - 98px - clamp(32px, 6vw, 88px));
	margin-bottom: clamp(32px, 4vw, 48px);
}

.hero-copy { animation: rise 0.6s ease both; }

.hero-title {
	margin: 0;
	font-family: var(--font-disp);
	font-size: clamp(50px, 4vw, 99px);
	line-height: 0.95;
	font-weight: 700;
	letter-spacing: 1px;
}
.hero-accent { color: var(--green); }
.hero-sub {
	margin: 22px 0 28px;
	max-width: 46ch;
	color: var(--muted);
	font-size: 14.5px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* API status notice in the hero (temporary; the block in index.html is the switch).
   Amber panel like Bootstrap's alert-warning / GitHub's attention banner, drawn
   with the site tokens so it reads as one more console readout, not a popup. */
.hero-notice {
	margin-top: 22px;
	max-width: 62ch;
	padding: 10px 14px;
	border: 2px solid rgba(240, 185, 77, 0.4);
	border-radius: 8px;
	background: rgba(240, 185, 77, 0.14);
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--text);
}
.hero-notice-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	font-family: var(--font-disp);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.3px;
	color: var(--gold);
}
.hero-notice-title i {
	width: 7px;
	height: 7px;
	flex: none;
	border-radius: 50%;
	background: currentColor;
	animation: pulse 2s ease infinite;
}
.hero-notice-text { margin: 0; }

.cursor-block {
	display: inline-block;
	color: var(--green);
	animation: blink 1.1s steps(1) infinite;
}

/* Terminal window */
.hero-console { animation: rise 0.6s 0.12s ease both; }

.term {
	background: var(--bg-2);
	border: 2px solid var(--line-2);
	border-radius: var(--radius);
	box-shadow: var(--shadow-hard-lg);
	overflow: hidden;
	font-size: 13px;
	cursor: pointer;
	transition: border-color 0.15s ease;
}
.term-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 9px 12px;
	background: var(--panel-2);
	border-bottom: 1px solid var(--line);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.red { background: var(--red); }
.term-dot.yellow { background: var(--gold); }
.term-dot.green { background: var(--green); }
.term-name {
	margin-left: 8px;
	color: var(--dim);
	font-size: 11.5px;
	letter-spacing: 0.5px;
}
.term-body { padding: 18px 20px 22px; overflow-x: auto; }
.term-raw { margin-top: 8px; font-size: 12px; }
.term-raw a { color: var(--dim); }
.term:hover { border-color: var(--green); }
.t-prompt { color: var(--green); font-weight: 600; }
.t-out { color: var(--muted); }
.t-ok { color: var(--text); font-weight: 600; }
.t-dim { color: var(--dim); }
.t-url { color: var(--text); }
.t-result { animation: t-row-wave 0.45s ease-out both; }

/* Instagram-style "typing" wave: the dots bounce up one after the other */
.t-dots {
	display: inline-flex;
	gap: 3px;
	margin-left: 4px;
	vertical-align: middle;
}
.t-dots i {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--dim);
	animation: t-wave 0.6s ease-in-out infinite;
}
.t-dots i:nth-child(2) { animation-delay: 0.2s; }
.t-dots i:nth-child(3) { animation-delay: 0.4s; }
.t-cursor { display: inline-block; color: var(--green); animation: blink 1.1s steps(1) infinite; }

/* ---------- Tools section (home) ---------- */
.section-title {
	margin: 0 0 8px;
	font-family: var(--font-disp);
	font-size: clamp(28px, 4.5vw, 40px);
	letter-spacing: 0.5px;
}
.tools { animation: rise 0.6s 0.2s ease both; margin-top: clamp(32px, 4vw, 48px); }
#tools { scroll-margin-top: 88px; }
.tools .section-title { text-align: center; }

/* One tool per row — copy on the left, action on the right — so the section
   reads as a list of rows instead of three narrow columns of equal height. */
.tools-grid {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 20px auto 0;
	max-width: 940px;
}

.tools-grid .card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "copy";
	align-items: center;
	padding: 20px clamp(20px, 2.6vw, 28px);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.tools-grid .card:hover,
.tools-grid .card:focus-visible { border-color: var(--line-2); background: var(--panel-2); }
.tools-grid .card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Molde do preview: solte o arquivo em static/img/tools/<slug>.webp (1280x560, recorte central).
   Fechado ele não ocupa altura; o card cresce junto só no hover/focus. */
.tool-preview {
	margin-top: 0;
	/* largura do card inteira: sem faixa vazia dos lados; a imagem e' recortada pelo `cover` */
	width: 100%;
	height: 0;
	overflow: hidden;
	border: 0 solid var(--line);
	border-radius: 8px;
	/* mais escuro que o card (que clareia no hover): o crescimento aparece */
	background: var(--bg);
	transition:
		height 0.34s cubic-bezier(0.4, 0, 0.2, 1),
		margin-top 0.34s cubic-bezier(0.4, 0, 0.2, 1),
		border-width 0.22s ease;
}
.tools-grid .card:hover .tool-preview,
.tools-grid .card:focus-visible .tool-preview {
	height: 140px;
	margin-top: 14px;
	border-width: 1px;
}
.tool-preview img {
	display: block; width: 100%; height: 100%;
	object-fit: cover; object-position: center;
	/* blur permanente: o preview mostra a cara da ferramenta sem entregar a tela. O `scale`
	   come a borda transparente que o `filter` cria; o molde ja' tem overflow: hidden. */
	filter: blur(2px);
	transform: scale(1.05);
}

/* name + "where it runs" on the first line, description underneath. Block
   layout, not flex: as a flex item the description's max-width let it sit
   beside the title on wide cards instead of wrapping below it. */
.tools-grid .tool-copy {
	grid-area: copy;
	min-width: 0;
}
.tools-grid .card-name { display: inline-block; margin: 0 12px 0 0; vertical-align: middle; line-height: 1.15; }
.tools-grid .card-desc { margin: 8px 0 0; }
.tools-grid .card-snippet {
	display: inline-block;
	vertical-align: middle;
	margin: 0;
	padding: 1px 8px;
	border-radius: 4px;
	background: var(--bg-2);
	border: 1px solid var(--line);
	color: var(--muted);
	font-size: 11px;
	letter-spacing: 0.2px;
	white-space: nowrap;
}

.card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(20px, 3vw, 28px);
	position: relative;
}

/* "inventory slot" inner frame */
.slot::before {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1px dashed var(--line-2);
	border-radius: 6px;
	pointer-events: none;
}
.slot > * { position: relative; }

.card-name { margin: 0 0 4px; font-family: var(--font-disp); font-size: 24px; letter-spacing: 0.4px; }
.card-desc { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.card-snippet {
	padding: 10px 12px;
	background: var(--bg-2);
	border: 1px solid var(--line);
	border-radius: 6px;
	color: var(--blue);
	font-size: 12px;
	overflow-x: auto;
	white-space: nowrap;
	margin: 0 0 18px;
	position: relative;
}
.card-snippet::before {
	content: "$";
	position: absolute;
	left: -20px;
	color: var(--dim);
	display: none;
}

/* status chips */
.chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11.5px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	color: var(--muted);
	background: var(--bg-2);
	white-space: nowrap;
}
.chip i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}
.chip.ok { color: var(--green); border-color: rgba(87, 211, 104, 0.4); }
.chip.ok i { animation: pulse 2s ease infinite; }
.chip.soon { color: var(--gold); border-color: rgba(240, 185, 77, 0.4); }
.chip.bad { color: var(--red); border-color: rgba(227, 93, 79, 0.4); }

/* ---------- Console page (seedfinder) ---------- */
.console-head { margin-bottom: 32px; animation: rise 0.5s ease both; }

.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.head-actions .btn { align-self: flex-start; }

.breadcrumb {
	margin: 0 0 10px;
	font-size: 12.5px;
	color: var(--dim);
	letter-spacing: 0.4px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { margin: 0 6px; color: var(--line-2); }

.page-title { margin: 0 0 0px; font-family: var(--font-disp); font-size: clamp(34px, 5vw, 52px); letter-spacing: 0.5px; }
.page-sub { margin: 0 0 18px; max-width: 62ch; color: var(--muted); font-size: 14px; }

.console-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 24px;
	align-items: start;
}
/* 2 painéis + divisor só quando a página tem o splitter (seedfinder); o
   seedcracker usa .console-grid sem divisor e mantém 2 colunas. */
.console-grid:has(.split-handle) {
	grid-template-columns: var(--split-left, 1fr) 12px 1.1fr;
	gap: 0;
}
.split-handle {
	align-self: stretch; cursor: col-resize; touch-action: none;
	border-radius: 3px; background: var(--line);
	transition: background 0.15s ease;
}
.split-handle:hover, .split-handle:focus-visible { background: var(--green); outline: none; }

.panel { animation: rise 0.5s 0.08s ease both; }
.results-panel { animation-delay: 0.16s; min-height: 340px; }

.panel-title { margin: 0 0 20px; font-family: var(--font-disp); font-size: 22px; letter-spacing: 0.4px; }
.panel-subtitle { margin: 22px 0 10px; font-family: var(--font-disp); font-size: 17px; color: var(--gold); letter-spacing: 0.4px; }

.inputs-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }

.field label {
	font-size: 11px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--dim);
}

input[type="text"],
input[type="number"],
.field select {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	background: var(--bg-2);
	border: 1px solid var(--line-2);
	border-radius: 6px;
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus,
.field select:focus {
	outline: none;
	border-color: var(--green);
	box-shadow: 0 0 0 3px var(--green-dim);
}
.field select option { background: var(--panel); color: var(--text); }

/* structure type slots */
.types {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
.params-panel .panel-title,
.params-panel .field label,
.results-panel .panel-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.type-slot { min-width: 0; }
.type-slot > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.type-slot {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--bg-2);
	font-size: 12.5px;
	color: var(--muted);
	cursor: pointer;
	user-select: none;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.type-slot:hover { border-color: var(--line-2); color: var(--text); }
.type-slot input {
	appearance: none;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	border: 1px solid var(--line-2);
	border-radius: 3px;
	background: var(--panel);
	cursor: pointer;
	display: grid;
	place-items: center;
}
.type-slot input:checked { background: var(--green); border-color: var(--green); }
.type-slot input:checked::after {
	content: "✔";
	font-size: 9px;
	color: #0b0d11;
	font-weight: 700;
}
.type-slot:has(input:checked) { color: var(--text); border-color: rgba(87, 211, 104, 0.5); background: var(--green-dim); }
.type-id { color: var(--dim); font-size: 11px; min-width: 15px; }

/* ---------- API URL copy field ---------- */
.api-url-field { margin-top: 18px; }
.api-url-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--dim);
}
.api-url-box {
	position: relative;
	background: #fff;
	color: #101218;
	border: 1px solid #fff;
	border-radius: 0;
	min-height: 44px;
	padding: 10px 12px;
	font-family: var(--font-mono);
	font-size: 13px;
	white-space: nowrap;
	overflow-x: auto;
	/* o campo é de COPIAR (clique copia a URL inteira): a barra de rolagem
	   é ruído visual — some com o chrome, mantém o scroll funcional */
	scrollbar-width: none;
	cursor: pointer;
	user-select: none;
}
.api-url-box::-webkit-scrollbar { display: none; }
.api-url-box:hover { background: #f2f3f7; }
.api-url-box:focus-visible { outline: 2px solid var(--green); }
.api-url-copied {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	background: #57d368;
	color: #0b0d11;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	padding: 2px 8px;
	border-radius: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease;
}
.api-url-copied.show { opacity: 1; visibility: visible; }

/* toolbar do painel de resultados: campo da URL + botão Scan lado a lado,
   acima da lista (o campo fica com o mínimo de altura p/ não vazar espaço) */
.results-toolbar {
	display: flex;
	gap: 12px;
	align-items: flex-end;
	margin-bottom: 6px;
}
.results-toolbar .api-url-field { flex: 1; min-width: 0; margin-top: 0; }
.results-toolbar .btn { flex: none; }

/* ---------- Results ---------- */
.results { min-height: 180px; }
.results-empty, .results-error { color: var(--muted); font-size: 13.5px; }
.results-error { color: var(--red); }
.results-error span { color: var(--dim); font-size: 12.5px; }
/* Ações do estado vazio (Search wider / Show all / abrir o guia): botões em
   linha, com respiro, sem o margin de <p>. */
.results-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.results-actions .btn { font-size: 12.5px; padding: 8px 12px; }
.results-meta { color: var(--dim); font-size: 12px; margin: 14px 0 0; letter-spacing: 0.6px; text-transform: uppercase; }
.results-toggle { margin-top: 14px; width: 100%; }

.results-loading { display: flex; flex-direction: column; gap: 10px; }
.results-loading span {
	height: 16px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--panel-2) 25%, var(--line-2) 50%, var(--panel-2) 75%);
	background-size: 200% 100%;
	animation: shimmer 1.4s linear infinite;
}
.results-loading span:nth-child(2) { width: 70%; }
.results-loading p { color: var(--dim); font-size: 12px; margin: 4px 0 0; }

.result-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}
.result-table th {
	text-align: left;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--dim);
	padding: 0 0 8px;
	border-bottom: 2px solid var(--line);
}
.result-table td {
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
}
.result-table tr:last-child td { border-bottom: none; }
.rank { color: var(--dim); width: 1%; white-space: nowrap; }
.name { color: var(--text); font-weight: 500; }
.dist { color: var(--green); text-align: right; white-space: nowrap; }
.coord { color: var(--muted); text-align: right; white-space: nowrap; }
.coord-sep { color: var(--dim); margin: 0 3px; }
.coord-nether { display: block; color: var(--dim); font-size: 0.9em; }
.result-table tr.nearest .name { color: var(--green); }
.result-table tr.nearest .rank { color: var(--green); }
.result-table tr.nearest td:first-child { position: relative; }

/* ---------- Documentation ---------- */
.docs-toc { margin: -8px 0 28px; }
.docs-toc details {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 12px 16px;
	max-width: 460px;
}
.docs-toc summary {
	cursor: pointer;
	display: flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--font-disp);
	font-size: 16px;
	letter-spacing: 0.4px;
	color: var(--green);
}
.docs-toc ol { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 13.5px; }
.docs-toc li { margin-bottom: 6px; }
.docs-toc a { color: var(--muted); text-decoration: none; }
.docs-toc a:hover { color: var(--green); }

.docs { max-width: 860px; }
.docs > section { margin-bottom: 52px; scroll-margin-top: 90px; }
.docs h2 {
	margin: 0 0 18px;
	font-family: var(--font-disp);
	font-size: 26px;
	letter-spacing: 0.4px;
	color: var(--text);
	padding-bottom: 10px;
	border-bottom: 2px solid var(--line);
}
.docs h3 { font-family: var(--font-disp); font-size: 17px; margin: 24px 0 10px; color: var(--gold); letter-spacing: 0.4px; }
.docs p { color: var(--muted); }
.docs .doc-label {
	margin: 18px 0 8px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: var(--dim);
}

.code-inline, code.inline {
	background: var(--bg-2);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 1px 6px;
	font-family: var(--font-mono);
	font-size: 0.9em;
	color: var(--blue);
}

/* Secondary note next to a label, e.g. a localized command alias. */
.docs .dim { color: var(--dim); font-size: 0.9em; }

/* Pollenate host in the bot section: no min-height, so a failed widget leaves
   no hole. */
.bot-poll { margin: 16px 0 4px; }

/* ---------- Docs site layout (sidebar + content + on this page) ---------- */
.page-wide { max-width: 1400px; }
.docs-layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 200px;
	gap: 28px;
	align-items: start;
	margin-top: 8px;
}
/* The old docs column cap only applies outside the docs grid now. */
.docs-layout .docs { max-width: none; }
.docs-side, .docs-onpage {
	position: sticky;
	top: 84px;
	max-height: calc(100vh - 104px);
	overflow-y: auto;
}
.docs-side .side-group { margin-bottom: 22px; }
.docs-side .side-title,
.docs-onpage .side-title {
	margin: 0 0 8px;
	font-size: 11px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--dim);
}
.docs-side a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 4px 0 4px 10px;
	border-left: 2px solid var(--line);
	color: var(--muted);
	font-size: 13px;
	text-decoration: none;
}
.docs-side a:hover { color: var(--text); border-color: var(--line-2); }
.docs-side a.active { color: var(--green); border-color: var(--green); }
.docs-onpage a {
	display: block;
	padding: 3px 0;
	color: var(--muted);
	font-size: 12.5px;
	text-decoration: none;
}
.docs-onpage a:hover { color: var(--green); }
.docs-onpage a.lvl3 { padding-left: 12px; font-size: 12px; color: var(--dim); }
.docs h2[id], .docs h3[id] { scroll-margin-top: 90px; }
.docs .anchor {
	margin-left: 6px;
	color: var(--dim);
	text-decoration: none;
	opacity: 0;
	transition: opacity 0.15s ease;
}
.docs h2:hover .anchor, .docs h3:hover .anchor { opacity: 1; }
.docs h2:focus-within .anchor, .docs h3:focus-within .anchor, .docs .anchor:focus { opacity: 1; }
@media (max-width: 1180px) {
	.docs-layout { grid-template-columns: 220px minmax(0, 1fr); }
	.docs-onpage { display: none; }
}
@media (max-width: 900px) {
	.docs-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.docs-side {
		position: static; display: flex; flex-wrap: wrap; gap: 4px 18px;
		max-height: none; overflow-y: visible;
		border-bottom: 1px solid var(--line); padding-bottom: 10px;
	}
	.docs-side .side-group { margin: 0; display: contents; }
	.docs-side .side-title { width: 100%; margin: 6px 0 2px; }
	.docs-side a { border-left: none; padding: 4px 0; }
	/* Wide tables scroll inside the column instead of widening the page. */
	.docs .param-table { display: block; overflow-x: auto; }
}

/* code blocks — terminal chrome */
.code-block { position: relative; margin: 10px 0 18px; }
.code-block pre {
	background: var(--bg-2);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 16px 18px;
	overflow-x: auto;
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 1.6;
	margin: 0;
}
.code-block pre code { color: inherit; background: transparent; font: inherit; }

.copy-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	background: var(--panel-2);
	color: var(--muted);
	border: 1px solid var(--line-2);
	padding: 4px 10px;
	font-size: 11px;
	font-family: var(--font-mono);
	letter-spacing: 0.6px;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 5px;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover { color: var(--green); border-color: var(--green); }
.copy-btn.ok { color: var(--green); border-color: var(--green); }

.btn-copy-link { position: absolute; bottom: 10px; right: 10px; font-size: 13px; padding: 6px 12px; display: inline-flex; align-items: center; min-height: 44px; }

.lang-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 12px; }
.lang-tabs button {
	min-height: 44px;
	background: var(--panel);
	color: var(--muted);
	border: 1px solid var(--line-2);
	border-radius: 6px;
	padding: 7px 14px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.lang-tabs button:hover { color: var(--text); }
.lang-tabs button.active { background: var(--green); border-color: var(--green); color: #0b0d11; font-weight: 600; }

/* tables */
.param-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0 18px;
	font-size: 13.5px;
}
.param-table th,
.param-table td {
	border: 1px solid var(--line);
	padding: 9px 12px;
	text-align: left;
	vertical-align: top;
}
.param-table th {
	background: var(--panel-2);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--dim);
}
.param-table td { color: var(--muted); }

.guide-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--border, #ddd); }
.guide-table th { font-weight: 700; }

.note {
	background: var(--gold-dim);
	border-left: 3px solid var(--gold);
	border-radius: 0 8px 8px 0;
	padding: 12px 16px;
	margin: 14px 0 20px;
	font-size: 13px;
	color: #d9c99a;
}

/* ---------- Animations ---------- */
@keyframes rise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
	0%, 49% { opacity: 1; }
	50%, 100% { opacity: 0; }
}
@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}
@keyframes shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}
@keyframes t-wave {
	0%, 50%, 100% { opacity: 0.45; transform: translateY(0); }
	25% { opacity: 1; transform: translateY(-4px); }
}
@keyframes t-row-wave {
	0% { opacity: 0; transform: translateY(10px); }
	55% { opacity: 1; transform: translateY(-3px); }
	100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.hero { grid-template-columns: 1fr; gap: 36px; }
	.hero-console { max-width: 620px; }
	.console-grid, .console-grid:has(.split-handle) { grid-template-columns: 1fr; row-gap: 24px; }
	.split-handle { display: none; }
	.results-panel { min-height: 0; }
}

@media (max-width: 860px) {
	.nav-toggle { display: flex; }
	.nav-links {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		background: rgba(16, 18, 24, 0.97);
		border-bottom: 2px solid var(--line);
		padding: 8px 0;
	}
	.nav-links.open { display: flex; }
	.nav-link { padding: 12px 20px; }
	.nav-github { border: none; border-radius: 0; }
}

@media (max-width: 760px) {
	.tools-grid .card {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "copy";
		align-items: start;
	}
	.tools-grid .card-snippet {
		display: block;
		margin-top: 6px;
		min-width: 0;
		white-space: normal;
		padding: 0;
		border: 0;
		background: none;
		font-size: 11.5px;
	}
	.tools-grid .card .btn { width: 100%; min-width: 0; }
	.inputs-grid { grid-template-columns: 1fr; }
	.field-wide { grid-column: 1; }

	/* toolbar empilha: URL em cima, Scan em largura total embaixo */
	.results-toolbar { flex-wrap: wrap; }
	.results-toolbar .btn { width: 100%; text-align: center; }

	.hero-actions { flex-direction: column; }
	.hero-actions .btn { width: 100%; text-align: center; }

	.footer { justify-content: center; text-align: center; }

	/* wide tables scroll horizontally instead of overflowing the page */
	.result-table, .param-table, .guide-table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
	.hero-title { font-size: clamp(34px, 11.7vw, 50px); }
	.page { padding-bottom: 64px; }
	.nav-title { font-size: 19px; }
	.term-body { padding: 14px; }
	.type-slot { font-size: 12px; padding: 7px 8px; }
	.type-slot { min-height: 44px; }
	.type-slot > span:last-child {
		white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	/* Exceção deliberada: o preview das tools é o único movimento que o site
	   faz por escolha, e ele é o que mostra o que a ferramenta faz. Sob
	   reduced-motion ele continua crescendo, em 0.3s (a regra do * acima zera
	   tudo com !important; esta vence por especificidade). */
	.tool-preview { transition-duration: 0.3s !important; }
}

/* ---------- Screen-reader-only (SEO) ---------- */
.hero-features {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.hero-features li {
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.4px;
}
.hero-features li::before {
	content: "▸";
	color: var(--green);
	margin-right: 10px;
	font-weight: 700;
}

/* ---------- On-page SEO content blocks ---------- */
.seo-content {
	max-width: 860px;
	margin: 48px auto 0;
	padding: 0 clamp(16px, 4vw, 48px);
	animation: rise 0.6s 0.3s ease both;
}
.seo-content h2 {
	margin: 0 0 12px;
	font-family: var(--font-disp);
	font-size: clamp(22px, 3vw, 30px);
	letter-spacing: 0.4px;
}
.seo-content h3 {
	margin: 36px 0 8px;
	font-size: 16px;
	letter-spacing: 0.3px;
}
.seo-content p {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.7;
}
.seo-content a { color: var(--green); text-decoration: underline; }

.finder-links {
	list-style: none;
	padding: 0;
	margin: 8px 0 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
}
.finder-links a {
	color: var(--green);
}
.finder-links a:hover {
	text-decoration: underline;
}

.seo-faq {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 32px;
}
.seo-faq details {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 12px 16px;
}
.seo-faq summary {
	cursor: pointer;
	display: flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--font-disp);
	font-size: 15px;
	letter-spacing: 0.3px;
	color: var(--text);
}
.seo-faq p { margin: 10px 0 0; }
.seo-content p.seo-note { margin: 14px 0 0; }

/* ---------- AdSense ad slots ---------- */
.ad-slot {
	max-width: 728px;
	width: 100%;
	margin: 0 auto;
	text-align: center;
}
.ad-slot ins { display: block; margin: 0 auto; }
.ad-slot:has(ins[data-ad-status="filled"]) { margin: 28px auto; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
/* Seedcracker: no mobile (coluna única) o slot do meio fica ENTRE os painéis;
   no desktop vira uma faixa de largura total ABAIXO dos dois painéis — o
   posicionamento explícito mantém Structures | Results lado a lado. */
@media (min-width: 1081px) {
	.ad-slot-grid { grid-column: 1 / -1; grid-row: 2; }
	.console-grid:has(.ad-slot-grid) .results-panel { grid-column: 2; grid-row: 1; }
}

/* Modo tela cheia do mapa (seedfinder): o console vira overlay fixo cobrindo
   a página; não renderizar anúncio sob ele. */
body.map-full .ad-slot { display: none; }

/* ---------- Relatório de feedback (widget Pollenate do SeedCracker) ---------- */
/* Controles nossos injetados no painel do widget para 1-2 estrelas. As cores
   vêm das variáveis --pollenate-* que o widget define no próprio container. */
.msf-report { margin: 0 0 12px; font-size: 12px; line-height: 1.45; }
/* `hidden` precisa vencer o display:flex dos labels (regra do autor > UA). */
.msf-report[hidden], .msf-check[hidden], .msf-report-error[hidden] { display: none; }
.msf-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 8px;
	color: var(--pollenate-text, #cccccc);
	cursor: pointer;
}
.msf-check input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--pollenate-primary, #17a2b8); }
.msf-check span { min-width: 0; }
.msf-check a { color: var(--pollenate-primary, #17a2b8); white-space: nowrap; }
.msf-report-error { margin: 0 0 8px; color: #ff6b6b; }
/* Placeholder da caixa de feedback: um tom acima do fundo e abaixo do texto real
   (#cccccc no widget). O id ganha do seletor do widget (que clareia o próprio
   secondary) sem depender da ordem das folhas. */
#pollenate-widget .pollenate-comment::placeholder {
	color: var(--muted, #8b92a3);
	opacity: 1;
}
/* Ícone do site no botão flutuante (data-trigger-label injeta HTML). */
.pollenate-trigger img.msf-trigger-icon { display: block; width: 28px; height: 28px; }
/* Phones: a result row becomes a card, so no column (and no action) leaves
   the box. DOM order is unchanged; the labels come from td[data-label]. */
@media (max-width: 560px) {
	.result-table, .result-table thead, .result-table tbody,
	.result-table tr, .result-table td { display: block; width: 100%; }
	.result-table thead { display: none; }
	.result-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
	.result-table td { padding: 2px 0; white-space: normal; text-align: left; }
	.result-table td[data-label]::before {
		content: attr(data-label) ": ";
		color: var(--dim); font-size: 11px; text-transform: uppercase;
	}
	.result-table td.seed-actions { margin-top: 6px; }
	.result-table td .tip { max-width: 100%; }
}

/* Tap targets: the delete buttons and the result-row action links are sized by
   their icon or text in the markup, so the box is raised here. */
button.del {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}
.result-table .seed-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.result-table .seed-actions button { min-height: 44px; }
