/*
Theme Name: Tool Corral
Description: A catalogue for desktop applications: searchable app listings with categories, screenshots, and Windows / macOS / Ubuntu downloads, plus How it works and Tool Request pages.
Version: 1.3.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: app-index
*/

/* ---------------------------------------------------------------------
   Tokens
   Pegboard workshop: masonite board, painted-steel plates, cobalt tools.
--------------------------------------------------------------------- */
:root {
	--ink: #1b2a41;
	--muted: #5a6678;
	--paper: #f4f6f9;
	--plate: #ffffff;
	--line: #dce2ea;
	--navy: #1b2a41;
	--rail: #3a5277;
	--link: #a85a12;
	--board: #f59a7f;
	--board-hole: #c9573d;
	--signal: #d9822b;
	--signal-dark: #c06f1d;
	--tag: #d9822b;
	--ok: #1d7a4a;
	--error: #b3261e;

	--font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1140px;
	--r-sm: 6px;
	--r-md: 10px;
	--r-lg: 18px;
}

/* ---------------------------------------------------------------------
   Base
--------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: #8a4a0e; }

h1, h2, h3 {
	font-family: var(--font-display);
	line-height: 1.12;
	letter-spacing: -0.015em;
	margin: 0 0 .5em;
}
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

:focus-visible {
	outline: 3px solid var(--tag);
	outline-offset: 2px;
	border-radius: 4px;
}

.wrap {
	width: min(100% - 2.5rem, var(--wrap));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 100;
	background: var(--plate); padding: .6rem 1rem;
}

/* ---------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 48px;
	padding: .7rem 1.4rem;
	border: 2px solid transparent;
	border-radius: var(--r-sm);
	font: 600 1rem/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--signal); color: var(--navy); }
.btn--primary:hover { background: var(--signal-dark); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------------------------------------------------------------------
   Header
--------------------------------------------------------------------- */
.site-header {
	background: var(--plate);
	border-bottom: 1px solid var(--line);
	position: relative;
	z-index: 10;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 68px;
	gap: 1rem;
}
.brand {
	display: flex;
	align-items: center;
	gap: .65rem;
	color: var(--ink);
	text-decoration: none;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.2rem;
}
.site-header .brand__logo { height: 58px !important; width: auto !important; max-width: none; }
/* A little pegboard square as the default mark */
.brand__mark {
	width: 30px; height: 30px;
	border-radius: 6px;
	background-color: var(--board);
	background-image: radial-gradient(circle, var(--board-hole) 2px, transparent 2.5px);
	background-size: 10px 10px;
	background-position: 0 0;
}

.nav-menu {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	align-items: center;
	gap: .35rem;
}
.nav-menu a {
	display: block;
	padding: .55rem .9rem;
	color: var(--ink);
	text-decoration: none;
	font-weight: 500;
	border-radius: var(--r-sm);
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a { background: var(--paper); }
.nav-menu .nav-cta a { background: var(--signal); color: var(--navy); font-weight: 600; }
.nav-menu .nav-cta a:hover { background: var(--signal-dark); }

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--plate);
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 20px; height: 2px;
	margin: 0 auto;
	background: var(--ink);
	position: relative;
	content: "";
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

@media (max-width: 760px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--plate);
		border-bottom: 1px solid var(--line);
		padding: .5rem 1.25rem 1rem;
	}
	.site-nav.is-open { display: block; }
	.nav-menu { flex-direction: column; align-items: stretch; }
}

/* ---------------------------------------------------------------------
   Corral hero: two fence rails like the logo; the plate hangs from them
--------------------------------------------------------------------- */
.fence {
	position: relative;
	background: var(--navy);
	overflow: hidden;
	isolation: isolate;
}
.fence::before,
.fence::after {
	content: "";
	position: absolute;
	left: 0; right: 0;
	height: 8px;
	background: var(--rail);
	border-radius: 4px;
	z-index: -1;
}
.fence::before { top: 36px; }
.fence::after { top: 66px; }

.hero { padding: 96px 0 clamp(3rem, 7vw, 5.5rem); }

.hero__plate {
	position: relative;
	max-width: 860px;
	margin-inline: auto;
	background: var(--plate);
	border-radius: var(--r-lg);
	border-top: 6px solid var(--signal);
	padding: clamp(1.75rem, 5vw, 3.5rem);
	text-align: center;
	box-shadow: 0 2px 0 rgba(0,0,0,.15), 0 26px 50px -20px rgba(0,0,0,.6);
}
/* Two hooks the plate hangs from */
.hero__plate::before,
.hero__plate::after {
	content: "";
	position: absolute;
	top: -68px;
	width: 12px; height: 68px;
	border: 3px solid var(--signal);
	border-bottom: 0;
	border-radius: 7px 7px 0 0;
}
.hero__plate::before { left: 48px; }
.hero__plate::after { right: 48px; }

.hero__plate--left { text-align: left; max-width: 900px; }

.hero__title {
	font-size: clamp(2rem, 5.2vw, 3.6rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.03em;
	margin: 0 auto .7em;
	max-width: 18ch;
	text-wrap: balance;
}
.hero__plate--left .hero__title { margin-left: 0; max-width: 20ch; }

.hero__lead {
	font-size: 1.2rem;
	color: var(--muted);
	max-width: 56ch;
	margin: 0;
}
.hero__hint { color: var(--muted); font-size: .95rem; margin: .9rem 0 0; }

.hero__actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 1.75rem;
}

.hero--page { padding: 96px 0 clamp(2.5rem, 6vw, 4rem); }

/* ---------------------------------------------------------------------
   Search
--------------------------------------------------------------------- */
.app-search {
	display: flex;
	align-items: stretch;
	background: var(--plate);
	border: 2px solid var(--ink);
	border-radius: var(--r-md);
	overflow: hidden;
	max-width: 680px;
	margin-inline: auto;
}
.app-search:focus-within { border-color: var(--signal); box-shadow: 0 0 0 4px rgba(217,130,43,.28); }
.app-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--ink);
	padding: 0 1.1rem;
	outline: none;
}
.app-search button {
	border: 0;
	background: var(--signal);
	color: var(--navy);
	font: 600 1rem var(--font-body);
	padding: 0 1.5rem;
	cursor: pointer;
}
.app-search button:hover { background: var(--signal-dark); }

.app-search--large { min-height: 68px; }
.app-search--large input[type="search"] { font-size: 1.25rem; }
.app-search--large button { font-size: 1.1rem; padding: 0 2rem; }

.app-search--compact { min-height: 52px; margin: 1.25rem 0 0; max-width: 560px; }

@media (max-width: 520px) {
	.app-search--large input[type="search"] { font-size: 1.05rem; padding: 0 .85rem; }
	.app-search--large button { padding: 0 1.1rem; }
}

/* ---------------------------------------------------------------------
   Sections
--------------------------------------------------------------------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--tight { padding: 1.5rem 0 0; }
.section--alt { background: var(--plate); border-block: 1px solid var(--line); }
.section__title { margin-bottom: 1.25rem; }

.section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .5rem 1.5rem;
	margin-bottom: 1.5rem;
}
.section__head h2 { margin: 0; }
.section__note { margin: 0; color: var(--muted); font-size: .95rem; }
.section__more { font-weight: 600; }

/* Category chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.chip {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .45rem .9rem;
	background: var(--plate);
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--ink);
	text-decoration: none;
	font-weight: 500;
	font-size: .95rem;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip__count { color: var(--muted); font-size: .85em; }
.chip.is-current .chip__count { color: rgba(255,255,255,.7); }
.section--tight .chips { justify-content: center; margin-top: 0; }

/* ---------------------------------------------------------------------
   Random showcase
--------------------------------------------------------------------- */
.showcase__card {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	background: var(--plate);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
}
.showcase__media {
	background: #e9edf3;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 280px;
}
.showcase__media img { width: 100%; height: 100%; object-fit: cover; }
.showcase__iconbig img,
.showcase__iconbig .app-card__initial { width: 140px; height: 140px; font-size: 4rem; border-radius: 28px; }

.showcase__info { padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; align-items: flex-start; }
.showcase__titlerow { display: flex; gap: 1rem; align-items: center; margin-bottom: .75rem; }
.showcase__icon { width: 56px; height: 56px; border-radius: 14px; }
.showcase__title { font-size: 1.75rem; margin: 0; }
.showcase__cat { font-size: .9rem; color: var(--muted); }
.showcase__tagline { font-size: 1.15rem; font-weight: 500; }
.showcase__excerpt { color: var(--muted); }
.showcase__more { font-weight: 600; white-space: nowrap; text-decoration: none; }
.showcase__more:hover { text-decoration: underline; }
.showcase__os { font-size: .95rem; color: var(--muted); }
.showcase__info .btn { margin-top: auto; }

@media (max-width: 820px) {
	.showcase__card { grid-template-columns: 1fr; }
	.showcase__media { min-height: 200px; }
}

/* ---------------------------------------------------------------------
   App grid + cards
--------------------------------------------------------------------- */
.app-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1rem;
}
.app-card {
	display: flex;
	gap: 1rem;
	padding: 1.1rem;
	background: var(--plate);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	position: relative;
}
.app-card { border-left: 4px solid var(--line); }
.app-card:hover { border-color: var(--ink); border-left-color: var(--signal); }
.app-card__icon img,
.app-card__initial {
	width: 64px; height: 64px;
	border-radius: 16px;
	flex: none;
	object-fit: cover;
}
.app-card__initial {
	display: grid;
	place-items: center;
	background: var(--ink);
	color: var(--signal);
	font: 800 1.75rem var(--font-display);
}
.app-card__body { min-width: 0; }
.app-card__title { font-size: 1.15rem; margin: 0 0 .2rem; }
.app-card__title a { color: var(--ink); text-decoration: none; }
/* Whole card is clickable */
.app-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.app-card__tagline { color: var(--muted); font-size: .95rem; margin: 0 0 .6rem; }
.app-card__meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: .85rem; }
.app-card__cat {
	background: #fbeadb;
	color: #8a4a0e;
	padding: .15rem .55rem;
	border-radius: 4px;
	font-weight: 500;
}
.os-list { display: inline-flex; gap: .4rem; color: var(--muted); }
.os-list svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------------------------------------------------------------------
   Listing header
--------------------------------------------------------------------- */
.list-head {
	background: var(--plate);
	border-bottom: 1px solid var(--line);
	padding: clamp(2rem, 5vw, 3.25rem) 0 1.75rem;
}
.list-head__title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.list-head__intro { color: var(--muted); max-width: 64ch; margin-top: .6rem; }
.list-count { color: var(--muted); margin-bottom: 1rem; }

.empty {
	text-align: center;
	padding: 3rem 1.5rem;
	background: var(--plate);
	border: 2px dashed var(--line);
	border-radius: var(--r-lg);
}
.empty .app-search { margin: 1.5rem auto 0; }

.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers {
	padding: .5rem .9rem;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--plate);
	color: var(--ink);
	text-decoration: none;
}
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------------------------------------------------
   Single app
--------------------------------------------------------------------- */
.app-head { background: var(--plate); padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; }
.app-head__inner { display: flex; gap: 1.5rem; align-items: center; }
.app-head__icon img,
.app-head__icon .app-card__initial { width: 112px; height: 112px; border-radius: 26px; font-size: 3rem; }
.app-head__cats { margin: 0 0 .35rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.app-head__cats a { font-size: .9rem; font-weight: 500; }
.app-head__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.app-head__tagline { font-size: 1.2rem; color: var(--muted); margin: .35rem 0 0; }
.app-head__version { font-size: .9rem; color: var(--muted); margin: .5rem 0 0; }

@media (max-width: 560px) {
	.app-head__inner { flex-direction: column; align-items: flex-start; }
	.app-head__icon img,
	.app-head__icon .app-card__initial { width: 80px; height: 80px; border-radius: 20px; }
}

.downloads { background: var(--plate); padding: 0 0 2rem; border-bottom: 1px solid var(--line); }
.downloads__row { display: flex; flex-wrap: wrap; gap: .75rem; }
.downloads__note { color: var(--muted); margin: 1rem 0 0; }

.dl-btn {
	display: inline-flex;
	align-items: center;
	gap: .8rem;
	min-width: 210px;
	padding: .75rem 1.2rem;
	border: 2px solid var(--ink);
	border-radius: var(--r-md);
	color: var(--ink);
	background: var(--plate);
	text-decoration: none;
	transition: background-color .15s, color .15s;
}
.dl-btn svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.dl-btn__text { display: flex; flex-direction: column; line-height: 1.2; }
.dl-btn__small { font-size: .8rem; opacity: .75; }
.dl-btn__os { font-weight: 700; font-size: 1.1rem; font-family: var(--font-display); }
a.dl-btn:hover { background: var(--ink); color: #fff; }
.dl-btn.is-yours { background: var(--signal); border-color: var(--signal); color: var(--navy); }
.dl-btn.is-yours:hover { background: var(--signal-dark); border-color: var(--signal-dark); }
.dl-btn.is-unavailable { border-style: dashed; border-color: var(--line); color: var(--muted); cursor: not-allowed; }

@media (max-width: 560px) { .dl-btn { flex: 1 1 100%; } }

.shots { padding: clamp(2rem, 5vw, 3.5rem) 0 0; }
.shots__strip {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(280px, 46%);
	gap: 1rem;
	overflow-x: auto;
	padding-bottom: .75rem;
	scroll-snap-type: x mandatory;
}
.shots__item {
	scroll-snap-align: start;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--plate);
	cursor: zoom-in;
}
.shots__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.app-body { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.app-body__inner { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; }
.app-side {
	background: var(--plate);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: 1.5rem;
	position: sticky;
	top: 1.5rem;
}
.app-side__title { font-size: 1.2rem; }
.app-side p { color: var(--muted); }
@media (max-width: 860px) {
	.app-body__inner { grid-template-columns: 1fr; }
	.app-side { position: static; }
}

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose img { border-radius: var(--r-md); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }

/* Lightbox */
.lightbox {
	border: 0;
	padding: 0;
	background: transparent;
	max-width: 96vw;
	max-height: 94vh;
	overflow: visible;
}
.lightbox::backdrop { background: rgba(12, 20, 34, .9); }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: var(--r-md); margin: auto; }
.lightbox__close {
	position: fixed; top: 1rem; right: 1rem;
	background: #fff; color: var(--ink);
	border: 0; border-radius: var(--r-sm);
	padding: .55rem 1rem; font: 600 .95rem var(--font-body); cursor: pointer;
}
.lightbox__nav {
	position: fixed; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px;
	border: 0; border-radius: 50%;
	background: rgba(255,255,255,.92); color: var(--ink);
	font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

/* ---------------------------------------------------------------------
   How it works
--------------------------------------------------------------------- */
.steps {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 1rem;
	counter-reset: none;
}
.steps__item {
	background: var(--plate);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: 1.5rem;
}
.steps__num {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--tag);
	color: var(--ink);
	font: 800 1.25rem var(--font-display);
	margin-bottom: 1rem;
}
.steps__title { font-size: 1.15rem; }
.steps__item p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.splitbar {
	display: flex;
	height: 84px;
	border-radius: var(--r-md);
	overflow: hidden;
	margin-top: 1.5rem;
	font-size: 1rem;
}
.splitbar > div { display: flex; flex-direction: column; justify-content: center; padding: 0 1.1rem; }
.splitbar strong { font: 800 1.9rem/1 var(--font-display); }
.splitbar { border: 2px solid var(--navy); }
.splitbar__us { flex: 1; background: #fff; color: var(--navy); }
.splitbar__you { flex: 1; background: var(--signal); color: var(--navy); }

.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.checks li::before {
	content: "";
	position: absolute; left: 0; top: .35em;
	width: 1.05rem; height: .55rem;
	border-left: 3px solid var(--signal);
	border-bottom: 3px solid var(--signal);
	transform: rotate(-45deg);
}

.cta-band { background: var(--navy); color: #fff; border-top: 6px solid var(--signal); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.cta-band h2 { margin: 0; }

/* ---------------------------------------------------------------------
   Tool Request form
--------------------------------------------------------------------- */
.form-wrap { max-width: 720px; }
.request-form {
	background: var(--plate);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: clamp(1.5rem, 4vw, 2.5rem);
}
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; }
.field input,
.field textarea {
	width: 100%;
	font: inherit;
	color: var(--ink);
	background: var(--paper);
	border: 2px solid var(--line);
	border-radius: var(--r-sm);
	padding: .8rem .95rem;
}
.field textarea { resize: vertical; min-height: 200px; line-height: 1.55; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--signal); background: #fff; box-shadow: 0 0 0 4px rgba(217,130,43,.22); }
.field__help { color: var(--muted); font-size: .9rem; margin: .45rem 0 0; }
.hp { position: absolute; left: -9999px; }

.notice { padding: 1rem 1.25rem; border-radius: var(--r-md); margin-bottom: 1.25rem; font-weight: 500; }
.notice--ok { background: #e3f4ea; color: var(--ok); border: 1px solid #b7e0c7; }
.notice--error { background: #fbe9e7; color: var(--error); border: 1px solid #f2c4bf; }

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.site-footer { background: var(--plate); border-top: 1px solid var(--line); padding: 1.75rem 0 1.5rem; }
.site-footer__inner { display: flex; flex-direction: column; gap: 1.25rem; }
.site-footer p { margin: 0; }
/* Second row: copyright on the left edge, links ending on the right edge, one text size, one baseline. */
.site-footer__end {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
	gap: .75rem 2rem;
	padding-top: 1.25rem; border-top: 1px solid var(--line);
	font-size: .9rem; line-height: 1.5;
}
.site-footer__meta { color: var(--muted); font-size: inherit; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; }
.site-footer__links li { display: flex; align-items: baseline; }
.site-footer__links li + li::before { content: ""; width: 1px; height: .9em; background: var(--line); margin: 0 .9rem; align-self: center; }
.site-footer__links a { white-space: nowrap; color: var(--ink); text-decoration: none; }
.site-footer__links a:hover, .site-footer__links a:focus-visible { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
	.site-footer__end { flex-direction: column; align-items: flex-start; }
	.site-footer__links { gap: .55rem 1.4rem; }
	.site-footer__links li + li::before { display: none; }
}

/* Policy pages */
.policy-table { overflow-x: auto; margin: 1rem 0 1.5rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--paper); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------------
   Store
--------------------------------------------------------------------- */
.site-nav { margin-left: auto; }
.header-tools { order: 3; display: flex; align-items: center; gap: .5rem; }
.header-cart {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: var(--r-sm);
	color: var(--ink);
}
.header-cart:hover { background: var(--paper); color: var(--ink); }
.header-cart svg { width: 24px; height: 24px; fill: currentColor; }
.header-cart__count {
	position: absolute;
	top: 2px; right: 0;
	min-width: 20px; height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--signal);
	color: var(--navy);
	font: 700 .75rem/20px var(--font-body);
	text-align: center;
}

.app-card__price { font-weight: 700; color: var(--ink); }
.app-card__price.is-free { color: var(--ok); }
.showcase__price { font: 800 1.4rem var(--font-display); margin-bottom: 1rem; }

.btn--big { min-height: 56px; padding: .8rem 2rem; font-size: 1.1rem; }
.btn.is-disabled { background: var(--paper); color: var(--muted); border: 2px dashed var(--line); cursor: not-allowed; }

.buy {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem 2.5rem;
	align-items: center;
	padding: 1.5rem;
	border: 2px solid var(--ink);
	border-top: 6px solid var(--signal);
	border-radius: var(--r-md);
	max-width: 860px;
}
.buy__price { display: flex; flex-direction: column; }
.buy__amount { font: 800 2.4rem/1 var(--font-display); letter-spacing: -.02em; }
.buy__terms { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.buy__note { color: var(--muted); font-size: .9rem; margin: .6rem 0 0; }
.buy__os {
	grid-column: 1 / -1;
	list-style: none;
	margin: 0; padding: 1rem 0 0;
	border-top: 1px solid var(--line);
	display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
	font-weight: 600;
}
.buy__os li { display: inline-flex; align-items: center; gap: .45rem; }
.buy__os svg { width: 18px; height: 18px; fill: currentColor; }
.buy__os-state { font-weight: 400; font-size: .85rem; color: var(--muted); }
.buy__os .is-included .buy__os-state { color: var(--ok); }
.buy__os .is-missing { color: var(--muted); }
.buy__owned { font-size: 1.15rem; color: var(--ok); margin-bottom: 1rem; }
@media (max-width: 600px) {
	.buy { grid-template-columns: 1fr; }
	.buy .btn--big { width: 100%; }
}

/* WooCommerce cart, checkout and account pages */
.woocommerce-cart .prose,
.woocommerce-checkout .prose,
.woocommerce-account .prose { max-width: none; }

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background: var(--signal) !important;
	color: var(--navy) !important;
	border: 0 !important;
	border-radius: var(--r-sm) !important;
	font-weight: 600 !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--signal-dark) !important; }

/* WooCommerce notices: room on the left for the icon (the page's list styles were removing it). */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	padding: 1em 1.5em 1em 3.4em !important;
	margin: 0 0 1.5em !important;
	list-style: none !important;
	line-height: 1.55;
}
.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li { margin: 0; padding: 0; list-style: none; }
.woocommerce-error li + li { margin-top: .35em; }
.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before { left: 1.15em !important; top: 1.05em !important; }
.woocommerce-error:focus,
.woocommerce-message:focus,
.woocommerce-info:focus { outline: none; } /* focused by WooCommerce for screen readers, not by the visitor */
.woocommerce-message,
.woocommerce-info { border-top-color: var(--signal) !important; }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--signal) !important; }

.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: .5rem 0; font-weight: 500; }
.woocommerce-MyAccount-navigation .is-active a { color: var(--ink); font-weight: 700; }

/* Disclaimer link + overlay */
.hero__disclaimer { margin-top: 1.2em; }
.disclaimer-link { color: var(--link); text-underline-offset: .18em; }
.disclaimer-link:hover { color: #8a4a0e; }
.disclaimer {
	border: 0;
	padding: 0;
	border-radius: var(--r-lg);
	width: min(100% - 2rem, 600px);
	background: var(--plate);
	color: var(--ink);
	box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.disclaimer::backdrop { background: rgba(12, 20, 34, .7); }
.disclaimer__box { padding: clamp(1.5rem, 5vw, 2.5rem); border-top: 6px solid var(--signal); }
.disclaimer__title { font-size: 1.6rem; }
.disclaimer p { color: var(--muted); }
.disclaimer .btn { margin-top: .5rem; }


/* ---------------------------------------------------------------------
   Account menu (header)
--------------------------------------------------------------------- */
.header-account { position: relative; }
.header-account--signin,
.header-account__button {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	min-height: 44px;
	padding: .45rem .8rem;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--plate);
	color: var(--ink);
	font: 500 1rem var(--font-body);
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.header-account--signin:hover,
.header-account__button:hover,
.header-account__button[aria-expanded="true"] { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.header-account svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.header-account svg path { fill: none; stroke: currentColor; stroke-width: 2; }
.header-account__caret { width: 12px !important; height: 12px !important; transition: transform .15s; }
.header-account__button[aria-expanded="true"] .header-account__caret { transform: rotate(180deg); }
.header-account__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 30;
	min-width: 210px;
	margin: 0;
	padding: .4rem 0;
	list-style: none;
	background: var(--plate);
	border: 1px solid var(--line);
	border-top: 4px solid var(--signal);
	border-radius: var(--r-md);
	box-shadow: 0 16px 32px -12px rgba(27, 42, 65, .35);
}
.header-account__menu[hidden] { display: none; }
.header-account__menu a {
	display: block;
	padding: .55rem 1.1rem;
	color: var(--ink);
	text-decoration: none;
	font-weight: 500;
}
.header-account__menu a:hover,
.header-account__menu a:focus-visible { background: var(--accent-soft); color: var(--ink); }
.header-account__menu a[aria-current="page"] { font-weight: 700; box-shadow: inset 3px 0 0 var(--signal); }
.header-account__menu .is-logout { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }
.header-account__menu .is-logout a { color: var(--muted); }
@media (max-width: 600px) {
	.header-account__text { display: none; }
	.header-account--signin, .header-account__button { padding: .45rem .6rem; }
}

/* ---------------------------------------------------------------------
   Sign in / Sign up / Lost password (WooCommerce account, signed out)
--------------------------------------------------------------------- */
.woocommerce-account .prose { max-width: none; }

.appidx-auth,
.woocommerce-account .woocommerce-ResetPassword {
	max-width: 440px;
	margin: 0 auto;
}
/* Before the script runs (or without it), both cards stack. */
.appidx-auth #customer_login.col2-set { display: grid; gap: 1.5rem; width: auto; }
.appidx-auth #customer_login .u-column1,
.appidx-auth #customer_login .u-column2 { float: none; width: auto; max-width: none; padding: 0; }
.appidx-auth.js-auth .u-column2 { display: none; }
.appidx-auth.js-auth.is-register .u-column1 { display: none; }
.appidx-auth.js-auth.is-register .u-column2 { display: block; }
/* The page heading already says "Sign in" / "Sign up". */
.appidx-auth.js-auth h2 { display: none; }
.appidx-auth h2 { font-size: 1.4rem; margin: 0 0 .75rem; }

.woocommerce-account form.woocommerce-form-login,
.woocommerce-account form.woocommerce-form-register,
.woocommerce-account form.woocommerce-ResetPassword {
	margin: 0;
	padding: clamp(1.5rem, 4vw, 2.25rem);
	background: var(--plate);
	border: 1px solid var(--line);
	border-top: 6px solid var(--signal);
	border-radius: var(--r-lg);
	box-shadow: 0 18px 36px -24px rgba(27, 42, 65, .45);
}
.woocommerce-account form.woocommerce-ResetPassword { max-width: 440px; margin: 0 auto; }
.woocommerce-account .woocommerce-form .form-row,
.woocommerce-account .woocommerce-ResetPassword .form-row { padding: 0; margin: 0 0 1.1rem; float: none; width: auto; }
.woocommerce-account .woocommerce-form label,
.woocommerce-account .woocommerce-ResetPassword label { display: block; font-weight: 600; margin-bottom: .4rem; line-height: 1.4; }
.woocommerce-account .woocommerce-form .required { color: var(--error, #b3261e); text-decoration: none; border: 0; }
.woocommerce-account .woocommerce-form .input-text,
.woocommerce-account .woocommerce-ResetPassword .input-text {
	width: 100%;
	min-height: 48px;
	padding: .7rem .9rem;
	font: inherit;
	color: var(--ink);
	background: var(--paper);
	border: 2px solid var(--line);
	border-radius: var(--r-sm);
	box-shadow: none;
}
.woocommerce-account .woocommerce-form .input-text:focus,
.woocommerce-account .woocommerce-ResetPassword .input-text:focus {
	outline: none;
	border-color: var(--signal);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(217, 130, 43, .2);
}
.woocommerce-account .woocommerce-form .password-input { display: block; position: relative; }
.woocommerce-account .woocommerce-form .show-password-input { top: 50%; transform: translateY(-50%); right: .8rem; }

/* Remember me, then a full-width button */
.woocommerce-account .woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) { display: flex; flex-direction: column; gap: 1rem; align-items: stretch; }
.woocommerce-account .woocommerce-form-login__rememberme { display: inline-flex !important; align-items: center; gap: .5rem; font-weight: 400 !important; margin: 0 !important; }
.woocommerce-account .woocommerce-form-login__rememberme input { width: 18px; height: 18px; accent-color: var(--signal); margin: 0; }
.woocommerce-account .woocommerce-form .woocommerce-button,
.woocommerce-account .woocommerce-ResetPassword .woocommerce-Button {
	width: 100%;
	min-height: 50px;
	margin: 0 !important;
	float: none !important;
	font-size: 1.05rem !important;
}
.woocommerce-account .woocommerce-LostPassword { margin: .25rem 0 0; text-align: center; font-size: .95rem; }
.woocommerce-account .woocommerce-privacy-policy-text { font-size: .85rem; color: var(--muted); }
.appidx-auth__switch {
	margin: 1.25rem 0 0;
	padding-top: 1.1rem;
	border-top: 1px solid var(--line);
	text-align: center;
	color: var(--muted);
}
.appidx-auth__switch a { font-weight: 600; }

/* ---------------------------------------------------------------------
   Account pages (signed in): menu on the left, content on the right
--------------------------------------------------------------------- */
.woocommerce-account.logged-in .woocommerce {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}
.woocommerce-account.logged-in .woocommerce::before,
.woocommerce-account.logged-in .woocommerce::after { display: none; }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: .4rem 0;
	background: var(--plate);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
}
.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: .6rem 1.1rem;
	color: var(--ink);
	text-decoration: none;
	font-weight: 500;
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--accent-soft); }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { font-weight: 700; box-shadow: inset 3px 0 0 var(--signal); }
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--muted); }
.woocommerce-account .woocommerce-MyAccount-content {
	background: var(--plate);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: clamp(1.25rem, 3vw, 2rem);
	min-width: 0;
}
.woocommerce-account .woocommerce-MyAccount-content > :first-child { margin-top: 0; }
@media (max-width: 760px) {
	.woocommerce-account.logged-in .woocommerce { grid-template-columns: 1fr; gap: 1rem; }
	.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; padding: .3rem; }
	.woocommerce-account .woocommerce-MyAccount-navigation a { padding: .45rem .7rem; }
	.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout { border-top: 0; margin: 0; padding: 0; }
}

/* ---------------------------------------------------------------------
   My apps (account) and "You own this app" on the app page
--------------------------------------------------------------------- */
.my-apps { display: grid; gap: 1.25rem; }
.owned {
	border: 2px solid var(--ink);
	border-top: 6px solid var(--signal);
	border-radius: var(--r-md);
	padding: 1.25rem 1.4rem;
	background: var(--plate);
	scroll-margin-top: 90px;
}
.owned--page { border: 0; padding: 0; background: none; max-width: 860px; }
.owned__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.owned__icon img, .owned__icon .app-card__initial { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; object-fit: cover; }
.owned__title { margin: 0; font-size: 1.25rem; }
.owned__title a { color: var(--ink); text-decoration: none; }
.owned__version { margin: .15rem 0 0; color: var(--muted); }
.owned__version strong { color: var(--ink); }
.owned__tag { display: inline-block; margin-left: .4rem; padding: .05rem .55rem; border-radius: 999px; background: #e3f3ea; color: var(--ok); font-size: .8rem; font-weight: 600; }
.owned__notice { background: #e3f3ea; color: var(--ok); border-radius: var(--r-sm); padding: .6rem .9rem; font-weight: 600; margin: 0 0 1rem; }
.owned__note { color: var(--muted); margin: 0; }
.owned__update {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem;
	margin-top: 1.1rem; padding: .9rem 1.1rem;
	background: #fdf3e8; border: 1px solid #f1cfa8; border-radius: var(--r-sm);
}
.owned__update div { display: flex; flex-direction: column; gap: .15rem; max-width: 520px; }
.owned__update span { color: var(--muted); font-size: .92rem; }
.owned__update .btn { white-space: nowrap; }
.owned .dl-btn { min-width: 190px; }
.my-apps__link { margin: 1.25rem 0; }
@media (max-width: 560px) { .owned__update .btn { width: 100%; } }

/* ---------------------------------------------------------------------
   Cookie banner and settings
--------------------------------------------------------------------- */
.cc-banner {
	position: fixed; z-index: 9990; left: 16px; right: 16px; bottom: 16px;
	max-width: 1100px; margin: 0 auto;
	display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
	padding: 1.1rem 1.3rem;
	background: var(--navy); color: #fff;
	border-radius: var(--r-md); border-top: 4px solid var(--signal);
	box-shadow: 0 12px 40px rgba(16, 26, 42, .35);
}
.cc-banner[hidden] { display: none; }
.cc-banner__text { flex: 1 1 420px; font-size: .95rem; line-height: 1.5; }
.cc-banner__text strong { font-family: var(--font-display); font-size: 1.1rem; }
.cc-banner__text p { margin: .3rem 0 0; color: #dbe2ec; }
.cc-banner__text a { color: #f6b56f; }
.cc-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cc-banner .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.cc-banner .btn--ghost:hover { background: #fff; color: var(--navy); }
.cc-btn { min-width: 120px; }
html.has-cc-banner body { padding-bottom: 170px; }
@media (max-width: 600px) {
	.cc-banner { left: 8px; right: 8px; bottom: 8px; padding: 1rem; }
	.cc-banner__actions { width: 100%; }
	.cc-banner__actions .btn { flex: 1 1 30%; min-width: 0; padding-left: .5rem; padding-right: .5rem; }
	html.has-cc-banner body { padding-bottom: 300px; }
}

.cc-dialog {
	width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
	padding: 0; border: 0; border-radius: var(--r-lg); overflow: auto;
	box-shadow: 0 24px 60px rgba(16, 26, 42, .4); color: var(--ink);
}
.cc-dialog::backdrop { background: rgba(16, 26, 42, .55); }
.cc-dialog__inner { padding: 1.5rem 1.6rem 1.3rem; }
.cc-dialog h2 { margin: 0 0 .4rem; font-size: 1.5rem; }
.cc-dialog__intro { color: var(--muted); margin: 0 0 1rem; }
.cc-gpc { background: #e3f3ea; color: var(--ok); padding: .6rem .8rem; border-radius: var(--r-sm); font-size: .92rem; }
.cc-cat { border-top: 1px solid var(--line); padding: .9rem 0 .6rem; }
.cc-cat p { margin: .35rem 0 .4rem; color: var(--muted); font-size: .93rem; }
.cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cc-cat__name { font-weight: 700; font-family: var(--font-display); font-size: 1.1rem; }
.cc-cat__always { font-size: .85rem; color: var(--ok); font-weight: 600; }
.cc-cat details summary { cursor: pointer; font-size: .9rem; color: var(--link); }
.cc-switch { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc-switch__ui { width: 42px; height: 24px; border-radius: 999px; background: #c5ccd6; position: relative; transition: background .15s; flex: none; }
.cc-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.cc-switch input:checked + .cc-switch__ui { background: var(--signal); }
.cc-switch input:checked + .cc-switch__ui::after { transform: translateX(18px); }
.cc-switch input:disabled + .cc-switch__ui { opacity: .6; }
.cc-switch input:focus-visible + .cc-switch__ui { outline: 3px solid var(--rail); outline-offset: 2px; }
.cc-table { overflow-x: auto; margin: .5rem 0; }
.cc-table table, .prose .cc-table table { border-collapse: collapse; width: 100%; font-size: .85rem; }
.cc-table th, .cc-table td { border: 1px solid var(--line); padding: .4rem .55rem; text-align: left; vertical-align: top; }
.cc-table th { background: var(--paper); }
.cc-table code { font-size: .8rem; word-break: break-word; }
.cc-none { font-style: italic; }
.cc-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .5rem; }
@media (max-width: 600px) { .cc-dialog__actions .btn { flex: 1 1 100%; } }

/* ---------------------------------------------------------------------
   Buying, one card per system (here on ToolCorral, or another store)
--------------------------------------------------------------------- */
.buy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; max-width: 900px; }
.buy-card {
	display: flex; flex-direction: column; gap: .6rem;
	padding: 1.1rem 1.2rem 1.2rem;
	border: 2px solid var(--ink); border-top: 6px solid var(--signal);
	border-radius: var(--r-md); background: var(--plate);
}
.buy-card--store { border-top-color: var(--rail); }
.buy-card__os { display: flex; align-items: center; gap: .55rem; font: 700 1.2rem/1.2 var(--font-display); }
.buy-card__os svg { width: 24px; height: 24px; fill: currentColor; }
.buy-card__where { margin: 0; color: var(--muted); font-size: .92rem; min-height: 1.5em; }
.buy-card__price { font: 800 1.35rem/1 var(--font-display); color: var(--ink); margin-right: .2rem; }
.buy-card__btn { margin-top: auto; justify-content: center; text-align: center; gap: .45rem; display: inline-flex; align-items: center; }
.buy-card__ext { width: 14px; height: 14px; flex: none; }
.buy-card .btn.is-disabled { width: 100%; }
.buy__note { max-width: 900px; }
.dl-btn--store .dl-btn__small { opacity: .8; }

.owned__stores { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1rem; font-size: .95rem; }
.owned__stores-label { color: var(--muted); }
.owned__stores a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.owned__stores svg { width: 16px; height: 16px; fill: currentColor; }
.buy-grid + .buy__note { margin-top: 1rem; }

.buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin: 0 0 1.1rem; }
.buy-price__amount { font: 800 2.4rem/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.buy-price__terms { color: var(--muted); font-size: .95rem; }

/* Contact form */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field select {
	width: 100%; padding: .8rem .95rem; font: inherit; color: var(--ink);
	border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
}
.field select:focus { outline: none; border-color: var(--signal); background: #fff; box-shadow: 0 0 0 4px rgba(217,130,43,.22); }
.contact-intro { margin-bottom: 1.5rem; }
.contact-privacy { margin-top: .9rem; }
.owned__help { margin: .9rem 0 0; font-size: .92rem; }

/* App icons: always a fixed square, whatever the uploaded image's shape (wide text never squeezes them). */
.app-card__icon, .app-head__icon, .showcase__iconbig, .owned__icon, .showcase__titlerow > img, .showcase__titlerow > span { flex: none; }
.app-card__icon img, .app-head__icon img, .showcase__iconbig img, .owned__icon img, img.showcase__icon { max-width: none; object-fit: cover; aspect-ratio: 1 / 1; display: block; }

/* "How to install on Ubuntu" */
.howto-btn {
	display: inline-flex; align-items: center; gap: .5rem; align-self: center;
	padding: .55rem 1rem; border: 2px dashed var(--rail); border-radius: var(--r-md);
	background: transparent; color: var(--rail); font: 600 .95rem var(--font-body); cursor: pointer;
}
.howto-btn svg { width: 18px; height: 18px; fill: currentColor; }
.howto-btn:hover { background: var(--rail); color: #fff; border-style: solid; }
.howto {
	width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
	padding: 0; border: 0; border-radius: var(--r-lg); color: var(--ink);
	box-shadow: 0 24px 60px rgba(16, 26, 42, .4);
}
.howto::backdrop { background: rgba(16, 26, 42, .6); }
.howto__inner { position: relative; padding: 1.6rem 1.8rem 1.4rem; }
.howto__close { position: absolute; top: .6rem; right: .8rem; border: 0; background: none; font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; }
.howto__close:hover { color: var(--ink); }
.howto h2 { margin: 0 2rem .4rem 0; font-size: 1.6rem; }
.howto__intro { color: var(--muted); margin: 0 0 1rem; }
.howto__part { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.howto h3 { font-size: 1.25rem; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; }
.howto h3 code { font-size: .8rem; font-weight: 500; color: var(--muted); background: var(--paper); padding: .1rem .45rem; border-radius: 4px; word-break: break-all; }
.howto h4 { font-size: 1rem; margin: 1.1rem 0 .35rem; }
.howto p { margin: .3rem 0 .5rem; }
.howto__note { color: var(--muted); font-size: .9rem; }
.howto__label { font-weight: 600; font-size: .92rem; margin-bottom: .2rem; }
.howto__cmd { position: relative; margin: .4rem 0 .6rem; }
.howto__cmd pre { margin: 0; padding: .8rem 4.5rem .8rem 1rem; background: var(--navy); color: #e7edf5; border-radius: var(--r-sm); overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.howto__copy { position: absolute; top: .45rem; right: .45rem; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 4px; padding: .2rem .6rem; font-size: .8rem; cursor: pointer; }
.howto__copy:hover { background: rgba(255,255,255,.15); }
.howto__help { margin-top: 1.2rem !important; padding: .8rem 1rem; background: #fdf3e8; border: 1px solid #f1cfa8; border-radius: var(--r-sm); }
