/*
Theme Name: Hidra Site
Theme URI: https://hidra.chat/
Author: Nathan Meirion Roberts
Author URI: https://hidra.chat/
Description: The hidra.chat site: one page in thirteen languages, with its own fonts and nothing loaded from anywhere else. Where downloads, purchases and donations go is set in Appearance → Customize → Hidra.
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.4
Version: 1.1.6
Update URI: false
License: Proprietary
License URI: https://hidra.chat/licence/
Text Domain: hidra-site
*/

/* ---------------------------------------------------------------------------
   The fonts, served from this site: Saira for display, IBM Plex Sans for
   reading, IBM Plex Mono for labels. All three are under the SIL Open Font
   Licence; the licences are beside the files. Cyrillic is a file of its own,
   so a visitor reading English never downloads it. Chinese, Japanese and
   Korean use the fonts the visitor's system already has.
   ------------------------------------------------------------------------ */
@font-face {
	font-family: "Hidra Display";
	src: url("assets/fonts/saira.woff2") format("woff2");
	font-weight: 500 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-024F, U+02B0-02FF, U+0300-036F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-21FF, U+2212, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Hidra Display";
	src: url("assets/fonts/saira-italic.woff2") format("woff2");
	font-weight: 600 800;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-024F, U+02B0-02FF, U+0300-036F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-21FF, U+2212, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Hidra Sans";
	src: url("assets/fonts/plex-sans-latin.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-024F, U+02B0-02FF, U+0300-036F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-21FF, U+2212, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Hidra Sans";
	src: url("assets/fonts/plex-sans-cyrillic.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0400-04FF;
}
@font-face {
	font-family: "Hidra Mono";
	src: url("assets/fonts/plex-mono-latin.woff2") format("woff2");
	font-weight: 400 500;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-024F, U+02B0-02FF, U+0300-036F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-21FF, U+2212, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Hidra Mono";
	src: url("assets/fonts/plex-mono-cyrillic.woff2") format("woff2");
	font-weight: 400 500;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0400-04FF;
}

/* ---------------------------------------------------------------------------
   One visual world, chosen on purpose: the brand is light on black, the way
   the tin-can mark glows, so the site does not follow a light system theme.
   ------------------------------------------------------------------------ */
:root {
	color-scheme: dark;
	--ground: #090c0a;
	--ground-2: #0e1310;
	--panel: #131915;
	--panel-2: #19211c;
	--line: #26302a;
	--line-2: #3a4a41;
	--text: #e6ede8;
	--muted: #a3b1a8;
	--dim: #7f8c84;
	--green: #4ccf4c;
	--green-hi: #6ee06e;
	--green-ink: #04140a;
	--green-soft: rgba(76, 207, 76, 0.13);
	--blue: #3d8fff;
	--blue-hi: #6aa9ff;
	--blue-ink: #03122a;
	--blue-soft: rgba(61, 143, 255, 0.14);
	--cut: #e0564d;
	--heart: #ff7a8a;
	--veil: rgba(4, 6, 5, 0.9);
	--display: "Hidra Display", "Hidra Sans", "Segoe UI", system-ui, sans-serif;
	--body: "Hidra Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--mono: "Hidra Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
	--gutter: clamp(16px, 4vw, 40px);
	--admin-bar: 0px;
}
/* Russian: Saira has no Cyrillic, so the headings are set upright in Plex. */
html[lang="ru"] {
	--display: "Hidra Sans", "Segoe UI", system-ui, sans-serif;
}
html[lang="zh-Hans"] {
	--cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}
html[lang="ja"] {
	--cjk: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", sans-serif;
}
html[lang="ko"] {
	--cjk: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Source Han Sans KR", sans-serif;
}
html:is([lang="zh-Hans"], [lang="ja"], [lang="ko"]) {
	--display: "Hidra Display", var(--cjk);
	--body: "Hidra Sans", var(--cjk);
}
html:is([lang="ru"], [lang="zh-Hans"], [lang="ja"], [lang="ko"]) :is(h1, h2, h3, .tag) {
	font-style: normal;
}
html[lang="ja"] :is(h1, h2, h3) {
	word-break: auto-phrase;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(76px + var(--admin-bar)); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--ground);
	color: var(--text);
	font: 16px/1.6 var(--body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: calc(44rem + 2 * var(--gutter)); }

.skip {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	padding: 10px 16px; border-radius: 8px; background: var(--green); color: var(--green-ink);
	font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* WordPress's own bar, for whoever is signed in. */
body.admin-bar { --admin-bar: 32px; }
@media (max-width: 782px) { body.admin-bar { --admin-bar: 46px; } }
@media (max-width: 600px) { body.admin-bar { --admin-bar: 0px; } }

/* ---- buttons ------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 42px; padding: 8px 18px; border-radius: 10px; border: 1px solid transparent;
	font: 600 15px/1.15 var(--body); text-decoration: none; text-align: center;
	cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn.big { min-height: 52px; padding: 10px 22px; font-size: 16px; border-radius: 12px; }
.btn.primary { background: var(--green); color: var(--green-ink); box-shadow: 0 0 26px var(--green-soft); }
.btn.primary:hover { background: var(--green-hi); }
.btn.pro { background: var(--blue); color: var(--blue-ink); box-shadow: 0 0 26px var(--blue-soft); }
.btn.pro:hover { background: var(--blue-hi); }
.btn.ghost { background: rgba(255, 255, 255, 0.02); color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--green); }
.btn.try { gap: 10px; }
.btn.try .try-text { display: grid; gap: 2px; text-align: left; }
.btn.try .try-label { text-wrap: balance; }
.btn.try small { font: 500 11.5px var(--mono); color: var(--green); letter-spacing: .02em; }
.btn.primary.try small { color: inherit; opacity: .75; }
/* The Windows logo, straight after the word Windows, in the words' colour. */
.nowrap { white-space: nowrap; }

/* Hidra Pro, still to be announced. */
.tba {
	display: inline-block; padding: 4px 9px; border: 1px solid rgba(61, 143, 255, .55); border-radius: 999px;
	font: 600 11.5px/1.1 var(--mono); letter-spacing: .06em; color: var(--blue-hi); background: rgba(61, 143, 255, .08);
	white-space: nowrap;
}
.btn.heart { background: transparent; color: var(--text); border-color: rgba(255, 122, 138, 0.55); }
.btn.heart .icon { stroke: var(--heart); fill: rgba(255, 122, 138, 0.22); }
.btn.heart:hover { border-color: var(--heart); box-shadow: 0 0 24px rgba(255, 122, 138, 0.18); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---- the bar at the top ------------------------------------------------- */
.top {
	position: sticky; top: var(--admin-bar); z-index: 40;
	padding-top: env(safe-area-inset-top, 0px);
	background: rgba(9, 12, 10, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 22px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand .mark { width: 30px; height: 30px; }
.brand .word { width: auto; height: 24px; }
.links { display: flex; gap: 20px; flex: 1; font-size: 14.5px; }
.links a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.links a:hover { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
@media (max-width: 1060px) { .links { display: none; } }
@media (max-width: 460px) { .top-dl { display: none; } .top-row { gap: 12px; } }

/* The language menu: a <details>, so it opens with no script at all. */
.lang { position: relative; }
.lang > summary {
	display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: 9px; background: var(--panel);
	font: 500 14px var(--body); cursor: pointer; list-style: none; user-select: none;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover { border-color: var(--line-2); }
.lang .caret { fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .15s; }
.lang[open] .caret { transform: rotate(180deg); }
.flag { width: 22px; height: 11px; border-radius: 2px; flex: none; display: block; }
.lang ul {
	position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
	margin: 0; padding: 6px; list-style: none; min-width: 200px; max-height: min(70vh, 520px); overflow: auto;
	background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.lang li a {
	display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
	color: var(--text); font-size: 14px; text-decoration: none;
}
.lang li a:hover, .lang li a[aria-current] { background: var(--panel-2); }
.lang li a[aria-current]::after { content: "✓"; margin-left: auto; color: var(--green); }
@media (max-width: 460px) { .lang > summary span { display: none; } }

/* ---- the two editions, first thing on the page -------------------------- */
.pair { padding-block: 40px 6px; }
.pair-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .pair-row { grid-template-columns: 1fr; } }
.edition {
	display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center;
	padding: 22px 24px; border-radius: 18px; text-decoration: none;
	border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--ground-2));
	transition: border-color .2s, box-shadow .2s;
}
.edition.plus:hover { border-color: rgba(76, 207, 76, .6); box-shadow: 0 0 36px var(--green-soft); }
.edition.pro:hover { border-color: rgba(61, 143, 255, .6); box-shadow: 0 0 36px var(--blue-soft); }
.edition .mark { width: 84px; grid-row: span 2; }
.lockup { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 4px; }
.lockup img { width: auto; height: clamp(40px, 5.4vw, 62px); }
.lockup .tag { font: italic 800 clamp(26px, 3.4vw, 38px)/1 var(--display); margin-top: -2px; }
.plus .tag { color: var(--green); text-shadow: 0 0 14px rgba(76, 207, 76, .75); }
.pro .tag {
	color: var(--blue); font-style: normal; font-size: clamp(18px, 2.1vw, 24px); letter-spacing: .06em; margin-top: 6px;
	text-shadow: 0 0 14px rgba(61, 143, 255, .8);
}
/* The space before the badge belongs to PRO, so a badge wrapped to its own line starts flush. */
.pro .lockup .tag { margin-right: 6px; }
.lockup .tba { align-self: center; }
.ed-text { display: grid; gap: 6px; }
.ed-dev { color: var(--blue-hi); font-size: 13.5px; }
.ed-line { color: var(--muted); font-size: 15px; }
.go { font: 500 12.5px var(--mono); letter-spacing: .03em; }
.plus .go { color: var(--green); }
.pro .go { color: var(--blue); }
@media (max-width: 460px) {
	.edition { grid-template-columns: 1fr; padding: 18px; }
	.edition .mark { display: none; }
}

/* ---- what it is ------------------------------------------------------------ */
.hero { padding-block: 44px 76px; }
.hero-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-row { grid-template-columns: 1fr; } }
.hero h1 { font: italic 800 clamp(36px, 4.6vw, 58px)/1.04 var(--display); letter-spacing: -.01em; }
.hero h1 em { font-style: inherit; color: var(--green); text-shadow: 0 0 24px rgba(76, 207, 76, .35); }
html:is([lang="ru"], [lang="zh-Hans"], [lang="ja"], [lang="ko"]) .hero h1 { font-weight: 600; letter-spacing: 0; line-height: 1.15; }
.lede { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 34em; }
.cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* The two buttons one above the other, as wide as the wider: side by side they
   fit in only three of the thirteen languages. */
.hero .cta { display: inline-grid; }
.note { margin-top: 14px; font-size: 14px; color: var(--dim); max-width: 36em; }
.window {
	display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(76, 207, 76, .08), 0 0 60px var(--green-soft);
	cursor: zoom-in;
}
.window .bar { display: flex; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.window .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.window img { display: block; width: 100%; }

/* ---- sections --------------------------------------------------------------- */
.band { padding-block: 84px; border-top: 1px solid var(--line); }
.eyebrow { font: 500 12.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.band h2, .donate h2 { font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin-top: 10px; }
.intro { margin-top: 16px; font-size: 17.5px; color: var(--muted); max-width: 42em; }

/* Cut off one head. */
.heads { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .heads { grid-template-columns: 1fr; } }
.diagram { margin: 0; padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--ground-2); display: grid; gap: 10px; }
.d-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font: 500 13px var(--mono); color: var(--muted); letter-spacing: .03em; }
.state { color: var(--dim); }
.state.bad { color: var(--cut); }
.state.good { color: var(--green); }
.diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.diagram figcaption { color: var(--muted); font-size: 15px; }
#hub .spoke { stroke: var(--line-2); stroke-width: 1.6; transition: opacity .35s; }
#hub.cut .spoke { opacity: .18; }
#hub .person { fill: var(--panel); stroke: #34403a; stroke-width: 1.6; }
/* The middle is green while it carries everything, as a head is on the right, and red once it is cut. */
#hub .middle { fill: var(--panel); stroke: var(--green); stroke-width: 2; transition: stroke .3s; }
#hub.cut .middle { stroke: var(--cut); }
#hub .cross { fill: none; stroke: var(--cut); stroke-width: 2.6; stroke-linecap: round; opacity: 0; transition: opacity .3s; }
#hub.cut .cross { opacity: 1; }
#hub .dots circle { fill: #b9c4bd; }
#hub.cut .dots { opacity: 0; }
#mesh .edge { fill: none; stroke: var(--green); stroke-opacity: .45; stroke-width: 1.6; stroke-linecap: round; transition: stroke-opacity .35s; }
#mesh .edge.gone { stroke-opacity: .06; }
/* Lit, as the six are in the advert once there is no middle: every one of them is carrying messages. */
#mesh .head { fill: var(--panel); stroke: var(--green); stroke-width: 2; filter: drop-shadow(0 0 4px rgba(76, 207, 76, .55)); transition: stroke .3s, fill-opacity .3s, filter .3s; }
#mesh .head.gone { stroke: var(--cut); stroke-dasharray: 4 4; fill-opacity: .3; filter: none; }
#mesh .dots circle { fill: #b8f5b8; }
.story { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }
.story p { font-size: 17px; max-width: 36em; }

/* What you get. */
.features {
	margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
	background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--ground-2); padding: 24px 22px 26px; display: grid; gap: 10px; align-content: start; }
.feature svg { width: 30px; height: 30px; stroke: var(--green); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-weight: 600; font-size: 19px; line-height: 1.25; }
.feature p { color: var(--muted); font-size: 15px; }

/* Screenshots. */
.shots { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shot { display: grid; gap: 8px; align-content: start; }
.shot a { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); cursor: zoom-in; transition: border-color .2s, transform .2s; }
.shot a:hover { border-color: var(--green); transform: translateY(-2px); }
.shot.pro a:hover { border-color: var(--blue); }
.shot img { display: block; width: 100%; aspect-ratio: 64 / 39; object-fit: cover; object-position: top left; }
.shot p { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

#viewer {
	width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 28px 16px 20px;
	border: 0; background: var(--veil); color: var(--text);
}
#viewer[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
#viewer::backdrop { background: transparent; }
#viewer-img {
	max-width: min(1280px, 100%); max-height: calc(100vh - 120px); width: auto; height: auto;
	border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}
.viewer-bar { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.viewer-bar span { min-width: 14em; text-align: center; }
.vbtn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 18px; cursor: pointer; }
.vbtn:hover { border-color: var(--line-2); }
.vbtn.close { position: absolute; top: 14px; right: 16px; }

/* Editions. */
.table-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare tbody th, .compare tfoot th { text-align: left; font-weight: 400; color: var(--text); width: 42%; }
.compare thead th { background: var(--panel); padding-block: 18px; vertical-align: bottom; font-weight: 400; }
.compare thead .corner { text-align: left; font: 400 12.5px var(--mono); color: var(--muted); }
.compare thead img { display: block; width: 30px; height: 30px; margin: 0 auto 8px; }
.compare .name { display: block; font: 700 22px/1.1 var(--display); }
.compare .sub { display: block; margin-top: 4px; font: 400 12.5px var(--mono); color: var(--muted); }
.c-plus .name { color: var(--green); text-shadow: 0 0 12px rgba(76, 207, 76, .45); }
.c-pro .name { color: var(--blue); text-shadow: 0 0 12px rgba(61, 143, 255, .5); }
.compare tr.group th {
	text-align: left; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase;
	color: var(--dim); background: var(--ground-2); padding-top: 20px;
}
.compare td { color: var(--muted); }
.compare .yes { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.compare .col-pro .yes { stroke: var(--blue); }
.compare .no { color: var(--dim); }
.compare td.col-plus { background: rgba(76, 207, 76, .035); }
.compare td.col-pro { background: rgba(61, 143, 255, .045); }
.compare tr.get th { font-weight: 600; }
.compare tr.get td { border-bottom: 0; padding-block: 18px; }
.compare tr.get .btn { width: 100%; max-width: 190px; }
/* The three names in a line, whatever sits under one of them. */
.compare thead th:not(.corner) { vertical-align: top; }
.compare thead .tba { margin-top: 8px; }
.compare tr.get .tba { font-size: 13px; padding: 6px 12px; }
.compare .tba-note { display: block; max-width: 17em; margin: 8px auto 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.compare .price { display: block; margin-bottom: 8px; font: 700 20px var(--display); color: var(--text); }
.compare.focus-plus td.col-plus, .compare.focus-plus th.c-plus { box-shadow: inset 2px 0 0 var(--green), inset -2px 0 0 var(--green); }
.compare.focus-pro td.col-pro, .compare.focus-pro th.c-pro { box-shadow: inset 2px 0 0 var(--blue), inset -2px 0 0 var(--blue); }
/* A tablet: the table fits, but only just; a little less padding keeps each
   button's words on one line. */
@media (min-width: 801px) and (max-width: 1100px) {
	.compare tr.get td { padding-inline: 8px; }
	.compare tr.get .btn { padding-inline: 10px; font-size: 14px; }
}
/* A phone or a small tablet: four columns do not fit across, so each feature takes a line of its
   own with the three editions under it, and the edition names stay in view
   under the header while the rows go past. */
@media (max-width: 800px) {
	.table-wrap { overflow: visible; }
	.compare, .compare thead, .compare tbody, .compare tfoot { display: block; }
	.compare { min-width: 0; font-size: 14.5px; }
	.compare tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.compare thead { position: sticky; top: calc(var(--admin-bar) + 63px + env(safe-area-inset-top, 0px)); z-index: 2; box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .8); }
	.compare thead .corner { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
	.compare thead th { padding: 10px 4px; }
	.compare thead .c-free { border-top-left-radius: 15px; }
	.compare thead .c-pro { border-top-right-radius: 15px; }
	.compare thead img { width: 22px; height: 22px; margin-bottom: 5px; }
	.compare .name { font-size: 17px; }
	.compare .sub { font-size: 11px; }
	.compare thead .tba { max-width: 100%; margin-top: 6px; padding: 3px 6px; font-size: 10px; border-radius: 8px; white-space: normal; }
	.compare tr.group th, .compare tbody th, .compare tfoot th { grid-column: 1 / -1; width: auto; }
	.compare tbody th { padding: 12px 14px 0; border-bottom: 0; }
	.compare td { padding: 8px 4px 12px; }
	.compare tr.get { grid-template-columns: 1fr; }
	.compare tr.get th { padding: 16px 14px 4px; border-bottom: 0; }
	.compare tr.get td { background: none; padding: 6px 14px; }
	.compare tr.get td:last-child { padding-bottom: 18px; }
	.compare tr.get .btn { max-width: none; }
}
.small-note { margin-top: 14px; color: var(--muted); font-size: 14.5px; }

/* Who makes it. */
.who-intro { margin-top: 16px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; color: var(--muted); max-width: 40em; }
.people { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (max-width: 700px) { .people { grid-template-columns: 1fr; } }
.person-card { padding: 22px 24px; background: var(--panel); display: grid; gap: 8px; align-content: start; }
.person-card + .person-card { border-left: 1px solid var(--line); }
@media (max-width: 700px) { .person-card + .person-card { border-left: 0; border-top: 1px solid var(--line); } }
.person-name { font-weight: 700; font-size: 22px; }
.role { color: var(--green); font-weight: 600; }
.person-card p:last-child { color: var(--muted); }
.who-cols { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .who-cols { grid-template-columns: 1fr; } }
.who-cols h2, .who-cols h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; margin: 0 0 12px; }
.who-cols p + p { margin-top: 12px; }
/* Special thanks: the people who have given, by name, in the Donate band's colour. */
.thanks {
	margin-top: 40px; padding: 22px 24px; border: 1px solid rgba(255, 122, 138, .28); border-radius: 16px;
	background: linear-gradient(180deg, rgba(255, 122, 138, .06), transparent 75%), var(--panel);
}
.thanks h2, .thanks h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: clamp(22px, 2.2vw, 26px); font-weight: 700; }
.thanks .heart { width: 22px; height: 22px; flex: none; fill: rgba(255, 122, 138, .22); stroke: var(--heart); stroke-width: 1.8; stroke-linejoin: round; }
.thanks > p { color: var(--muted); max-width: 44em; }
.thanks-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.thanks-list li {
	padding: 6px 13px; border: 1px solid rgba(255, 122, 138, .3); border-radius: 999px;
	background: rgba(255, 122, 138, .06); color: var(--text); font-size: 14.5px; overflow-wrap: anywhere;
}
.thanks-note { color: var(--muted); }
.publisher { margin-top: 36px; font-size: 14.5px; color: var(--dim); max-width: 50em; }
.publisher a { color: var(--muted); }

/* A way to help. */
.donate { padding-block: 44px; border-top: 1px solid var(--line); background: linear-gradient(90deg, rgba(76, 207, 76, .05), rgba(255, 122, 138, .05) 60%, rgba(61, 143, 255, .05)); }
.donate-row { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.donate h2 { margin-top: 0; font-size: clamp(24px, 2.6vw, 32px); }
.donate p { margin-top: 6px; color: var(--muted); }

/* Coming soon, not found, and the Donate page. */
.soon, .give { padding-block: 72px 110px; }
.soon-card, .give-card { max-width: calc(44rem + 2 * var(--gutter)); }
.soon h1, .give h1 { font: italic 800 clamp(40px, 6vw, 72px)/1 var(--display); margin-top: 10px; }
.soon .soon-try { margin-top: 30px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.soon .soon-try p { color: var(--text); }
.soon.is-pro .eyebrow { color: var(--blue); }

/* The form is Donorbox's, and the line above it says so before anybody types
   into it. Until their script has drawn it, a panel holds its place. */
.give .eyebrow { color: var(--heart); }
.give-note { margin-top: 16px; font-size: 14.5px; color: var(--dim); max-width: 40em; }
.give-note a { color: var(--muted); }
.give-form { margin-top: 26px; max-width: 560px; }
.give-form dbox-widget { display: block; }
.give-form dbox-widget:not(:defined) { min-height: 420px; border: 1px dashed var(--line); border-radius: 14px; background: var(--panel); }

/* Pages of prose: the agreement, the privacy statement, the licence. */
.prose-page { padding-block: 56px 96px; }
.en-note { margin-bottom: 24px; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 8px; background: var(--panel); color: var(--muted); font-size: 14.5px; }
.page-title { font: 700 clamp(32px, 4vw, 48px)/1.1 var(--display); margin-bottom: 28px; }
.prose { font-size: 16.5px; line-height: 1.7; }
.prose :is(h2, h3, h4) { font-family: var(--display); line-height: 1.25; margin: 2em 0 .6em; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote { margin: 0 0 1em; }
.prose a { color: var(--green); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose code { font-family: var(--mono); font-size: .92em; background: var(--panel); padding: .1em .35em; border-radius: 5px; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose blockquote { border-left: 3px solid var(--line-2); padding-left: 1em; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose h2 a, .prose .page-title a { text-decoration: none; color: inherit; }

/* ---- the bottom, with the smoke under it --------------------------------- */
.site-foot {
	position: relative; overflow: hidden; border-top: 1px solid var(--line);
	/* The smoke, still, for anybody without the script. */
	background:
		radial-gradient(120% 90% at 0% 100%, rgba(76, 207, 76, .10), transparent 60%),
		radial-gradient(120% 90% at 100% 100%, rgba(61, 143, 255, .11), transparent 60%),
		var(--ground);
}
.fog { position: absolute; inset: 0; pointer-events: none; }
.fog canvas { width: 100%; height: 100%; display: block; filter: blur(14px); }
.foot-cols {
	position: relative; padding-block: 48px calc(170px + env(safe-area-inset-bottom, 0px));
	display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px;
}
@media (max-width: 860px) { .foot-cols { grid-template-columns: 1fr 1fr; padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)); } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-cols { grid-template-columns: 1fr; } }
.foot-about { display: grid; gap: 10px; align-content: start; font-size: 14.5px; color: var(--muted); }
.foot-about .fine { font-size: 13px; color: var(--dim); }
.foot-h { font: 500 12.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; }
.site-foot ul a { color: var(--muted); text-decoration: none; }
.site-foot ul a:hover { color: var(--text); }
.site-foot ul .tba { margin-left: 6px; padding: 2px 7px; font-size: 10.5px; vertical-align: 1px; }
