/* Cut — stylesheet. No frameworks, no external requests. Themes are CSS variables. */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('../fonts/figtree-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('../fonts/figtree-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  --max: 1160px;
  --gutter: 24px;
  --col: 62px; /* logo column: everything below the header aligns to the search box */

  --bg: #ffffff;
  --bg-2: #f4f4f4;
  --bg-3: #ebebeb;
  --line: #e4e4e4;
  --line-2: #cdcdcd;
  --text: #1f1f1f;
  --text-2: #4a4a4a;
  --text-3: #737373;
  --link: #1c46b3;
  --link-visited: #6a3aa7;
  --brand: #e0552b;
  --focus: #1c46b3;
  --green: #17803a;
  --red: #c42b2b;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  --scrim: rgba(0, 0, 0, 0.35);
  --glow: color-mix(in srgb, var(--brand) 24%, transparent);
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #1c1c1c;
  --bg-2: #262626;
  --bg-3: #303030;
  --line: #333333;
  --line-2: #4a4a4a;
  --text: #e4e4e4;
  --text-2: #b7b7b7;
  --text-3: #8f8f8f;
  --link: #8fb0ff;
  --link-visited: #bda4f0;
  --brand: #e8663e;
  --focus: #8fb0ff;
  --green: #5cc27a;
  --red: #f07474;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  --scrim: rgba(0, 0, 0, 0.55);
  --glow: color-mix(in srgb, var(--brand) 34%, transparent);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  [data-theme='system'] {
    --bg: #1c1c1c;
    --bg-2: #262626;
    --bg-3: #303030;
    --line: #333333;
    --line-2: #4a4a4a;
    --text: #e4e4e4;
    --text-2: #b7b7b7;
    --text-3: #8f8f8f;
    --link: #8fb0ff;
    --link-visited: #bda4f0;
    --brand: #e8663e;
    --focus: #8fb0ff;
    --green: #5cc27a;
    --red: #f07474;
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
    --scrim: rgba(0, 0, 0, 0.55);
  --glow: color-mix(in srgb, var(--brand) 34%, transparent);
    color-scheme: dark;
  }
}
[data-theme='midnight'] {
  --bg: #000000;
  --bg-2: #141414;
  --bg-3: #1d1d1d;
  --line: #262626;
  --line-2: #3d3d3d;
  --text: #e6e6e6;
  --text-2: #b0b0b0;
  --text-3: #888888;
  --link: #8fb0ff;
  --link-visited: #bda4f0;
  --brand: #e8663e;
  --focus: #8fb0ff;
  --green: #5cc27a;
  --red: #f07474;
  --shadow: 0 0 0 1px #333333;
  --scrim: rgba(0, 0, 0, 0.7);
  --glow: color-mix(in srgb, var(--brand) 34%, transparent);
  color-scheme: dark;
}
[data-theme='terminal'] {
  --font: var(--mono);
  --bg: #0a0e0a;
  --bg-2: #111a11;
  --bg-3: #172417;
  --line: #1c3320;
  --line-2: #2b5233;
  --text: #b4f5c2;
  --text-2: #7fd394;
  --text-3: #53a066;
  --link: #3ddc6a;
  --link-visited: #9fe8b1;
  --brand: #3ddc6a;
  --focus: #3ddc6a;
  --green: #3ddc6a;
  --red: #ff6a5c;
  --shadow: 0 0 0 1px #2b5233;
  --scrim: rgba(0, 0, 0, 0.7);
  --glow: color-mix(in srgb, var(--brand) 28%, transparent);
  color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 120px;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
::selection {
  background: color-mix(in srgb, var(--link) 22%, transparent);
}
code,
kbd,
pre {
  font-family: var(--mono);
}
code {
  font-size: 0.9em;
}
h1,
h2,
h3 {
  font-weight: 600;
}
input[type='radio'],
input[type='checkbox'],
input[type='range'] {
  accent-color: var(--brand);
}
.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.mono {
  font-family: var(--mono);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--text);
  color: var(--bg);
}
.skip:focus {
  top: 12px;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.logo-mark {
  display: block;
  color: var(--brand);
}
/* Soft halo behind the mark. */
.logo-glow {
  position: relative;
  display: inline-grid;
  place-items: center;
  isolation: isolate;
}
.logo-glow::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -55%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.logo-glow--sm::before {
  inset: -40%;
  opacity: 0.7;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
}
.btn:hover {
  background: var(--bg-2);
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.btn--primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--text);
  opacity: 0.88;
}
.btn--sm {
  height: 28px;
  padding: 0 10px;
  font-size: 13px;
}
.btn--more {
  width: 100%;
  height: 40px;
}
.btn.is-loading {
  color: var(--text-3);
  pointer-events: none;
}
.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text-2);
  cursor: pointer;
}
.iconbtn:hover {
  background: var(--bg-2);
  color: var(--text);
}
.iconbtn .i {
  width: 20px;
  height: 20px;
}
.iconbtn--sm {
  width: 28px;
  height: 28px;
}
.iconbtn--sm .i {
  width: 16px;
  height: 16px;
}
.iconbtn.is-done {
  color: var(--green);
}
.linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font-size: 0.9em;
  cursor: pointer;
}
.linkbtn:hover {
  text-decoration: underline;
}
.label {
  display: inline-block;
  margin-left: 8px;
  padding: 0 5px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--text-3);
  font-size: 11px;
  line-height: 16px;
  vertical-align: 1px;
}

.label--danger {
  border-color: color-mix(in srgb, var(--red) 55%, transparent);
  color: var(--red);
}
.label--warn {
  border-color: color-mix(in srgb, #b7791f 55%, transparent);
  color: #b7791f;
}
.warning {
  margin: 2px 0 4px;
  color: var(--red);
  font-size: 13.5px;
}
.result--danger .result__title a {
  color: var(--red);
}
.tile--danger {
  outline: 2px solid var(--red);
}
.textlist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 20px;
}
.textlist__meta {
  color: var(--text-3);
  font-size: 13px;
}

/* Security level "Safer" and "Safest" use the system font instead of a web font. */
html.sysfont {
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
html[data-theme='terminal'].sysfont {
  --font: var(--mono);
}
html[data-size='s'] body {
  zoom: 0.92;
}
html[data-size='l'] body {
  zoom: 1.12;
}
html[data-density='compact'] .results {
  gap: 14px;
}
html[data-density='compact'] .result__title {
  font-size: 16.5px;
}
html[data-density='compact'] .ttable td {
  padding-top: 5px;
  padding-bottom: 5px;
}
html[data-density='compact'] .story {
  padding: 9px 0;
}

/* ---------- Search box ---------- */

.search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 600px;
}
.search__box {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg);
}
.search__box:hover {
  border-color: var(--text-3);
}
.search__box:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 1px var(--focus);
}
.search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 8px 0 14px;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
}
.search__input::placeholder {
  color: var(--text-3);
}
.search__input::-webkit-search-cancel-button,
.search__input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.search__clear,
.search__go {
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-3);
  cursor: pointer;
}
.search__clear {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}
.search__clear:hover {
  color: var(--text);
}
.search__clear .i {
  width: 18px;
  height: 18px;
}
.search__go {
  width: 46px;
  height: 100%;
  margin-left: 4px;
  border-left: 1px solid var(--line);
  border-radius: 0 5px 5px 0;
  color: var(--text-2);
}
.search__go:hover {
  background: var(--bg-2);
  color: var(--text);
}
.search__go .i {
  width: 19px;
  height: 19px;
}

.ac {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: -1px;
  right: -1px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: var(--shadow);
}
.ac__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 14px;
  font-size: 15px;
  cursor: pointer;
}
.ac__item b {
  font-weight: 600;
}
.ac__item[aria-selected='true'],
.ac__item:hover {
  background: var(--bg-2);
}
.ac__bang {
  min-width: 56px;
  color: var(--text-2);
  font: 13px var(--mono);
}
.ac__meta {
  margin-left: auto;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- Header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.topbar__row {
  display: flex;
  align-items: center;
  height: 64px;
}
.topbar__brand {
  flex: none;
  width: var(--col);
}
.topbar__actions {
  margin-left: auto;
  padding-left: 12px;
}
.tabs {
  display: flex;
  gap: 24px;
  padding-left: calc(var(--gutter) + var(--col));
  font-size: 14px;
}
.tab {
  margin-bottom: -1px;
  padding: 9px 0 10px;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  white-space: nowrap;
}
.tab:hover {
  color: var(--text);
  text-decoration: none;
}
.tab.is-active {
  border-bottom-color: var(--brand);
  color: var(--text);
  font-weight: 500;
}
.tab--end {
  margin-left: auto;
}
.homebar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 12px 18px;
  font-size: 14px;
}
.homebar a:not(.iconbtn) {
  color: var(--text-2);
}
.homebar a:not(.iconbtn):hover {
  color: var(--text);
}

/* ---------- Filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  padding-top: 12px;
  padding-left: calc(var(--gutter) + var(--col));
  font-size: 13px;
}
.filters__reset {
  color: var(--text-3);
}
.dd {
  position: relative;
}
.dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 0;
  color: var(--text-2);
  list-style: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.dd__btn::-webkit-details-marker {
  display: none;
}
.dd__btn:hover,
.dd[open] > .dd__btn {
  color: var(--text);
}
.dd.is-active > .dd__btn {
  color: var(--text);
  font-weight: 600;
}
.dd__label {
  font-weight: 400;
}
.dd__caret {
  width: 14px;
  height: 14px;
}
.dd__menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: -10px;
  min-width: 180px;
  max-height: min(380px, 60vh);
  overflow: auto;
  padding: 4px 0;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
}
.dd__item {
  display: block;
  padding: 6px 14px;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
}
.dd__item:hover,
.dd__item:focus-visible {
  background: var(--bg-2);
  text-decoration: none;
}
.dd__item.is-on {
  font-weight: 600;
}
.dd__search {
  position: sticky;
  top: -4px;
  margin-top: -4px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.dd__search input {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg);
  font-size: 14px;
  outline: none;
}
.dd__search input:focus {
  border-color: var(--focus);
}

/* ---------- Results layout ---------- */

.serp {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 340px);
  column-gap: 60px;
  align-items: start;
  padding-top: 20px;
  padding-bottom: 64px;
  padding-left: calc(var(--gutter) + var(--col));
}
.serp--images,
.serp--videos,
.serp--news,
.serp--torrents {
  grid-template-columns: minmax(0, 1fr);
}
.serp--news .serp__main {
  max-width: 700px;
}
.serp__main,
.serp__side {
  min-width: 0;
}

/* Streaming placeholder, hidden as soon as results arrive. */
.loading {
  opacity: 0;
  animation: appear 0.01s 0.25s forwards;
}
.serp__main:has(> .serp__content) > .loading {
  display: none;
}
.sk {
  display: block;
  border-radius: 3px;
  background: var(--bg-2);
  animation: pulse 1.1s ease-in-out infinite alternate;
}
.sk-list {
  display: grid;
  gap: 26px;
}
.sk-row {
  display: grid;
  gap: 8px;
}
.sk-a {
  width: 30%;
  height: 11px;
}
.sk-b {
  width: 62%;
  height: 17px;
}
.sk-c {
  width: 92%;
  height: 12px;
}
.sk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.sk-block {
  height: 150px;
}

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

/* A notice above the results, such as an API key an engine turned down. */
.serp__content > .notice {
  margin: 0 0 24px;
}
.results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.result {
  position: relative;
}
.result.is-selected::before,
.story.is-selected::before {
  content: '';
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: -14px;
  width: 3px;
  border-radius: 2px;
  background: var(--brand);
}
.result__url {
  overflow: hidden;
  color: var(--text-3);
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.favicon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border-radius: 2px;
  vertical-align: -3px;
}
[data-theme='dark'] .favicon,
[data-theme='midnight'] .favicon {
  padding: 1px;
  background: #e8e8e8;
}
@media (prefers-color-scheme: dark) {
  [data-theme='system'] .favicon {
    padding: 1px;
    background: #e8e8e8;
  }
}
.result__host {
  color: var(--text);
}
.result__title {
  margin: 2px 0 3px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}
.result__title a:visited,
.story__title a:visited {
  color: var(--link-visited);
}
.result__snippet {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.result__snippet b,
.story__excerpt b {
  color: var(--text);
  font-weight: 600;
}

/* Onion sites: Tor's layered mark where a site icon would be. */
.result__onion {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  color: #8b5cf6;
  vertical-align: -3px;
}
.result__seen {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 13px;
}
.onion-note {
  margin: 0 0 20px;
  color: var(--text-3);
  font-size: 13.5px;
}

.more {
  margin-top: 32px;
}
.related {
  margin-top: 40px;
}
.related__title {
  margin: 0 0 10px;
  font-size: 15px;
}
.related__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.related__list b {
  font-weight: 600;
}
.empty {
  padding: 8px 0 24px;
}
.empty p {
  margin: 0 0 8px;
}
.empty__hint {
  color: var(--text-3);
  font-size: 14px;
}

/* ---------- Instant answers ---------- */

.answer {
  position: relative;
  margin: 0 0 28px;
  padding: 14px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.answer p {
  margin: 0;
}
.answer__copy {
  position: absolute;
  top: 8px;
  right: 8px;
}
.answer__caption {
  margin-bottom: 4px !important;
  color: var(--text-3);
  font-size: 13px;
}
.answer__sub {
  color: var(--text-3);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.answer__big {
  margin-top: 2px !important;
  padding-right: 24px;
  font-size: 30px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.answer__big.mono {
  font-size: 24px;
}
.answer__wrap {
  word-break: break-all;
}
.answer__unit {
  color: var(--text-2);
  font-size: 20px;
}
.answer__foot {
  margin-top: 12px !important;
  color: var(--text-3);
  font-size: 12.5px;
}
.answer .btn {
  margin-top: 12px;
}
.answer__code {
  margin: 2px 32px 0 0;
  padding: 10px 12px;
  border-radius: 4px;
  background: var(--bg-2);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wx__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.wx__place {
  margin: 0;
  font-size: 15px;
}
.wx__units button {
  padding: 2px 4px;
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 13px;
  cursor: pointer;
}
.wx__units button[aria-pressed='true'] {
  color: var(--text);
  font-weight: 600;
}
.wx__now {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 16px;
}
.wx__icon .i {
  width: 40px;
  height: 40px;
  color: var(--text-2);
  stroke-width: 1.5;
}
.wx__temp {
  font-size: 44px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wx__detail {
  color: var(--text-3);
  font-size: 13px;
}
.wx__days {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.wx__days th {
  padding-bottom: 4px;
  color: var(--text-2);
  font-weight: 500;
}
.wx__days td {
  padding: 2px 0;
}
.wx__days .i {
  width: 20px;
  height: 20px;
  color: var(--text-2);
  stroke-width: 1.7;
}
.wx__days b {
  font-weight: 600;
}
.wx__rain td {
  color: var(--text-3);
  font-size: 12px;
}
.dict__word {
  margin: 0;
  font-size: 22px;
}
.dict__pos {
  margin: 10px 0 2px !important;
  color: var(--text-3);
  font-size: 14px;
  font-style: italic;
}
.dict__defs {
  margin: 0;
  padding-left: 20px;
}
.dict__defs li + li {
  margin-top: 4px;
}
.dict__ex {
  display: block;
  color: var(--text-3);
  font-size: 14px;
}
.color {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.color__swatch {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.color__values {
  border-collapse: collapse;
  font-size: 14px;
}
.color__values th {
  padding: 2px 16px 2px 0;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}
.color__values td {
  padding: 2px 12px 2px 0;
}
.dice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 6px !important;
}
.die {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-size: 19px;
  font-weight: 600;
}
.pwopts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 14px;
}
.pwopts label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pwopts output {
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}
.pwopts .btn {
  margin-top: 0;
}
.watch.is-done .answer__big {
  color: var(--red);
}
.watch__laps {
  margin: 8px 0 0;
  padding-left: 22px;
  color: var(--text-2);
  font: 14px/1.7 var(--mono);
}
.lorem p {
  margin-bottom: 8px !important;
  color: var(--text-2);
  line-height: 1.6;
}

/* ---------- Information panel ---------- */

.infobox {
  overflow: hidden;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.infobox__media {
  margin: -16px -18px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.infobox__media img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: center 20%;
}
.infobox__media--logo {
  padding: 20px;
  background: #ffffff;
}
.infobox__media--logo img {
  width: auto;
  max-width: 70%;
  max-height: 100px;
  margin: 0 auto;
  object-fit: contain;
}
.infobox__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}
.infobox__subtitle {
  margin: 2px 0 0;
  color: var(--text-3);
  font-size: 14px;
}
.infobox__text {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}
.infobox__facts {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.infobox__facts th,
.infobox__facts td {
  padding: 6px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.infobox__facts th {
  width: 38%;
  padding-right: 12px;
  color: var(--text-3);
  font-weight: 400;
}
.infobox__facts td {
  overflow-wrap: anywhere;
}
.infobox__links {
  margin: 14px 0 0;
  font-size: 13.5px;
}

/* ---------- Torrents ---------- */

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 16px;
  font-size: 14px;
}
.cat {
  padding: 3px 0;
  color: var(--text-2);
}
.cat:hover {
  color: var(--text);
  text-decoration: none;
}
.cat.is-on {
  box-shadow: inset 0 -2px 0 var(--brand);
  color: var(--text);
  font-weight: 500;
}
.cat__n {
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 400;
}
.ttable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ttable th {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line-2);
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.ttable th a {
  color: inherit;
}
.ttable th a:hover,
.ttable th[aria-sort] a {
  color: var(--text);
  text-decoration: none;
}
.ttable td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.ttable th:first-child,
.ttable td:first-child {
  padding-left: 0;
}
.ttable tbody tr:hover td,
.torrent.is-selected td {
  background: var(--bg-2);
}
.tt-name {
  width: 100%;
}
.tt-size,
.tt-age {
  color: var(--text-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ttable .tt-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.seeds {
  color: var(--green);
  font-weight: 600;
}
.peers {
  color: var(--red);
}
.tt-na {
  color: var(--text-3);
  font-size: 13px;
}
.tt-act {
  padding-top: 3px !important;
  padding-bottom: 3px !important;
  white-space: nowrap;
}
.torrent__details summary {
  list-style: none;
  cursor: pointer;
}
.torrent__details summary::-webkit-details-marker {
  display: none;
}
.torrent__title {
  color: var(--text);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.torrent__details summary:hover .torrent__title {
  color: var(--link);
  text-decoration: underline;
}
.tt-sub {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 12.5px;
}
.tinfo {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 14px;
  margin: 8px 0 6px;
  padding: 10px 12px;
  border-radius: 4px;
  background: var(--bg-3);
  font-size: 13px;
}
.tinfo dt {
  color: var(--text-3);
}
.tinfo dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.tinfo code {
  font-size: 12px;
}

/* ---------- Images ---------- */

.igrid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.igrid::after {
  content: '';
  flex-grow: 1000000;
}
.tile {
  --h: 180px;
  position: relative;
  display: block;
  height: var(--h);
  flex-grow: var(--g, 15);
  flex-basis: calc(var(--g, 15) * var(--h) / 10);
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-2);
}
.tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
}
.tile:hover .tile__cap,
.tile:focus-visible .tile__cap,
.tile.is-selected .tile__cap {
  opacity: 1;
}
.tile.is-selected {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.r5 { --g: 5; }
.r6 { --g: 6; }
.r7 { --g: 7; }
.r8 { --g: 8; }
.r9 { --g: 9; }
.r10 { --g: 10; }
.r11 { --g: 11; }
.r12 { --g: 12; }
.r13 { --g: 13; }
.r14 { --g: 14; }
.r15 { --g: 15; }
.r16 { --g: 16; }
.r17 { --g: 17; }
.r18 { --g: 18; }
.r19 { --g: 19; }
.r20 { --g: 20; }
.r21 { --g: 21; }
.r22 { --g: 22; }
.r23 { --g: 23; }
.r24 { --g: 24; }
.r25 { --g: 25; }

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 10, 10, 0.94);
  color: #e6e6e6;
}
.lightbox[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}
.lightbox::backdrop {
  background: transparent;
}
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 24px 64px;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #cccccc;
  transform: translateY(-50%);
  cursor: pointer;
}
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.lightbox__nav .i {
  width: 26px;
  height: 26px;
}
.lightbox__nav--prev {
  left: 12px;
}
.lightbox__nav--next {
  right: 12px;
}
.lightbox__info {
  position: relative;
  padding: 52px 20px 20px;
  border-left: 1px solid #2c2c2c;
  background: #171717;
  font-size: 14px;
}
.lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #cccccc;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.lightbox__title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.lightbox__meta {
  margin: 0 0 12px;
  color: #999999;
}
.lightbox__links {
  margin: 0;
}
.lightbox__links a {
  color: #9dbaff;
}

/* ---------- News ---------- */

.news {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.story:first-child {
  padding-top: 0;
}
.story__meta {
  color: var(--text-3);
  font-size: 13px;
}
.story__source {
  color: var(--text);
}
.story__title {
  margin: 2px 0 3px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}
.story__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.story__thumb {
  display: block;
  width: 120px;
  height: 80px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-2);
}
.story__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Videos ---------- */

.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vcard__link {
  display: block;
}
.vcard__link:hover {
  text-decoration: none;
}
.vcard__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-2);
}
.vcard__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vcard.is-selected .vcard__thumb {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.vcard__dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 0 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 12px;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}
.vcard__title {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.vcard__link:hover .vcard__title {
  text-decoration: underline;
}
.vcard__meta {
  margin: 3px 0 0;
  color: var(--text-3);
  font-size: 12.5px;
}

/* ---------- Home ---------- */

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 17vh 24px 48px;
}
.home__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.home__brand-product {
  font-weight: 500;
  color: var(--text-2);
}
.home__tag {
  margin: 12px 0 28px;
  color: var(--text-3);
  font-size: 15px;
}
.search--hero {
  width: 100%;
  max-width: 580px;
}
.search--hero .search__box {
  height: 46px;
}
.modes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  font-size: 14px;
}
.mode {
  position: relative;
}
.mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mode span {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  cursor: pointer;
}
.mode span:hover {
  color: var(--text);
}
.mode input:checked + span {
  border-bottom-color: var(--brand);
  color: var(--text);
}
.mode input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- Menu, dialogs, toast ---------- */

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(300px, 88vw);
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}
.drawer::backdrop,
.modal::backdrop {
  background: var(--scrim);
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer__title {
  font-weight: 600;
}
.drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.drawer__nav a,
.drawer__nav button {
  display: block;
  width: 100%;
  padding: 8px 20px;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.drawer__nav a:hover,
.drawer__nav button:hover {
  background: var(--bg-2);
  text-decoration: none;
}
.drawer__themes {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}
.drawer__label {
  padding: 0 20px 4px;
  color: var(--text-3);
  font-size: 13px;
}
.drawer__theme {
  padding: 6px 20px;
  border: 0;
  background: none;
  color: var(--text-2);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.drawer__theme:hover {
  background: var(--bg-2);
}
.drawer__theme.is-on {
  color: var(--text);
  font-weight: 600;
}
.modal {
  width: min(440px, 92vw);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow);
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 4px 20px;
}
.modal__head h2 {
  margin: 0;
  font-size: 16px;
}
.keys {
  width: 100%;
  margin: 0 0 14px;
  border-collapse: collapse;
  font-size: 14px;
}
.keys td {
  padding: 5px 20px;
  color: var(--text-2);
}
.keys td:first-child {
  width: 42%;
  white-space: nowrap;
}
kbd {
  padding: 1px 5px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: var(--bg-2);
  color: var(--text);
  font-size: 12px;
}
.howto {
  padding: 0 20px 18px;
  font-size: 14px;
}
.howto h3 {
  margin: 12px 0 2px;
  font-size: 14px;
}
.howto p {
  margin: 0;
  color: var(--text-2);
}
.howto__url {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 3px 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
}
.howto__url code {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 20px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  transform: translateX(-50%);
}

/* ---------- Documents: settings, privacy, bangs, errors ---------- */

.doc {
  max-width: 700px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}
.doc h1 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.doc h2 {
  margin: 32px 0 10px;
  font-size: 16px;
}
.doc__lead {
  margin: 0;
  color: var(--text-2);
  line-height: 1.6;
}
.doc__note {
  margin: 6px 0 0;
  color: var(--text-3);
  font-size: 14px;
}
.notice {
  margin: 16px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg-2);
  font-size: 14px;
}
/* Settings */
.prefs {
  display: grid;
  grid-template-columns: 210px minmax(0, 720px);
  gap: 48px;
  padding-top: 28px;
  padding-bottom: 96px;
}
.prefs__side {
  position: sticky;
  top: 88px;
  align-self: start;
}
.prefs__find {
  width: 100%;
  height: 34px;
  margin-bottom: 14px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg);
  font-size: 14px;
  outline: none;
}
.prefs__find:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 1px var(--focus);
}
.prefs__nav {
  display: flex;
  flex-direction: column;
}
.prefs__nav a {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 14px;
}
.prefs__nav a:hover,
.prefs__nav a.is-on {
  background: var(--bg-2);
  color: var(--text);
  text-decoration: none;
}
.prefs__nav a.is-on {
  font-weight: 600;
}
.prefs__main {
  min-width: 0;
}
.prefs__empty {
  color: var(--text-3);
}
.pane {
  scroll-margin-top: 90px;
  padding-bottom: 12px;
}
.pane + .pane,
form + .pane {
  margin-top: 40px;
}
.pane__title {
  margin: 0 0 4px;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.group {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.group:last-child {
  border-bottom: 0;
}
.group__title {
  margin: 0 0 4px;
  font-size: 16px;
}
.group__desc {
  margin: 0 0 10px;
  color: var(--text-3);
  font-size: 14px;
}
.group > p {
  margin: 10px 0 0;
}
.row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
}
.row--check {
  cursor: pointer;
}
.row--field {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.row--area {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.row--area p {
  margin: 4px 0 0;
}
.row--frontend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
}
.row__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.row__label {
  font-weight: 500;
}
.row__desc {
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.45;
}
.group > .row__desc {
  display: block;
  margin: 8px 0 0;
}
.row input[type='checkbox'],
.radio input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
}
.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  min-width: 0;
  margin: 0;
  padding: 7px 0;
  border: 0;
}
.radios > legend {
  float: left;
  width: 100%;
  margin-bottom: 4px;
  padding: 0;
}
.radios--stacked {
  flex-direction: column;
}
.radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 3px 0;
  cursor: pointer;
}
.subrows {
  margin: 4px 0 6px 26px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
}
.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 10px;
}
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.choice input {
  position: absolute;
  top: 13px;
  right: 12px;
  margin: 0;
}
.choice__title {
  font-weight: 600;
}
.choice__desc {
  padding-right: 18px;
  color: var(--text-2);
  font-size: 13.5px;
}
.choice__list {
  margin: 6px 0 0;
  padding-left: 16px;
  color: var(--text-3);
  font-size: 13px;
}
.fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 6px 0;
}
.fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-2);
  font-size: 13px;
}
.fields__grow {
  flex: 1 1 180px;
}
input[type='text'],
input[type='url'],
input[type='password'],
input[type='number'],
input:not([type]),
textarea,
select {
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg);
  font-size: 14px;
  outline: none;
}
select {
  min-width: 170px;
}
textarea {
  height: auto;
  padding: 7px 8px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 1px var(--focus);
}
input.port {
  width: 96px;
}
fieldset:disabled {
  opacity: 0.6;
}
.netform__body {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
/* Only show the fields for the chosen connection type / protection level. */
.netform:not(:has(input[name='mode'][value='manual']:checked)) [data-mode-panel='manual'],
.netform:not(:has(input[name='mode'][value='tor']:checked)) [data-mode-panel='tor'],
.group:not(:has(input[name='etp'][value='custom']:checked)) [data-etp-custom],
.row--check:not(:has(input:checked)) + [data-engine-key] {
  display: none;
}
[data-engine-key] input {
  max-width: 420px;
}
.prefs__bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
}
.actions__status {
  color: var(--text-3);
  font-size: 14px;
}
.actions__status.is-good {
  color: var(--green);
}
.actions__status.is-bad {
  color: var(--red);
}
.notice--quiet {
  border-color: var(--line);
  background: none;
}
.notice--warn {
  border-color: color-mix(in srgb, var(--red) 45%, var(--line));
  color: var(--red);
}
.notice--error {
  padding-left: 28px;
  border-color: color-mix(in srgb, var(--red) 45%, var(--line));
  color: var(--red);
}
pre.cookie {
  margin: 0;
  padding: 10px 12px;
  overflow-x: auto;
  border-radius: 4px;
  background: var(--bg-2);
  font-size: 12.5px;
  line-height: 1.6;
}
.prose h2 {
  margin-top: 30px;
}
.prose p,
.prose li {
  color: var(--text-2);
  line-height: 1.7;
}
.prose ul {
  padding-left: 20px;
}
.prose li + li {
  margin-top: 6px;
}
.bang-filter {
  width: 100%;
  max-width: 320px;
  height: 36px;
  margin-top: 12px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg);
  font-size: 14px;
  outline: none;
}
.bang-filter:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 1px var(--focus);
}
.bangs {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bangs td {
  padding: 5px 12px 5px 0;
  border-bottom: 1px solid var(--line);
}
.bangs__trigger {
  width: 34%;
  color: var(--text-2);
  font: 13px var(--mono);
}
.bangs__domain {
  color: var(--text-3);
  font-size: 13px;
  text-align: right;
}

/* ---------- Motion ---------- */

@keyframes appear {
  to {
    opacity: 1;
  }
}
@keyframes pulse {
  to {
    opacity: 0.45;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .serp {
    grid-template-columns: minmax(0, 620px);
  }
  .serp__side {
    grid-row: 1;
    margin-bottom: 24px;
  }
  .serp__side:empty {
    display: none;
  }
  .infobox {
    display: flow-root;
  }
  .infobox__media {
    float: right;
    width: 110px;
    height: 110px;
    margin: 0 0 8px 16px;
    border: 0;
    border-radius: 4px;
  }
  .infobox__media img {
    height: 100%;
    max-height: none;
  }
  .infobox__media--logo {
    padding: 10px;
  }
  .infobox__media--logo img {
    max-width: 100%;
  }
  .infobox__text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
  }
  .infobox__facts {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 14px;
    --col: 0px;
  }
  .topbar__row {
    gap: 10px;
    height: 58px;
  }
  .topbar__brand {
    width: auto;
  }
  .tabs {
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar,
  .filters::-webkit-scrollbar {
    display: none;
  }
  .tab--end {
    display: none;
  }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .dd {
    position: static;
  }
  .dd__menu {
    position: fixed;
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-height: 60vh;
  }
  .serp {
    padding-top: 16px;
  }
  .result__title {
    font-size: 17px;
  }
  .related__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .tt-age,
  .tt-leech {
    display: none;
  }
  .tile {
    --h: 120px;
  }
  .story__thumb {
    width: 88px;
    height: 64px;
  }
  .vgrid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .lightbox[open] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .lightbox__stage {
    padding: 48px 8px 8px;
  }
  .lightbox__img {
    max-height: calc(100vh - 220px);
  }
  .lightbox__info {
    position: static;
    padding: 14px 16px;
    border-top: 1px solid #2c2c2c;
    border-left: 0;
  }
  .lightbox__close {
    top: 6px;
    right: 6px;
  }
  .home {
    padding-top: 12vh;
  }
  .homebar {
    gap: 16px;
  }
  .answer__big {
    font-size: 26px;
  }
  .wx__temp {
    font-size: 38px;
  }
  .prefs {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-top: 12px;
  }
  .prefs__side {
    position: static;
  }
  .prefs__nav {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .prefs__nav a {
    flex: none;
  }
  .choices {
    grid-template-columns: minmax(0, 1fr);
  }
  .row--frontend {
    grid-template-columns: minmax(0, 1fr);
  }
  .subrows {
    margin-left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sk {
    animation: none;
  }
}

@media print {
  .topbar,
  .filters,
  .more,
  .serp__side,
  .loading {
    display: none !important;
  }
}
