/* hyperlinkdirectory.com — public styles (recreates the Gemini mockup at 1440px) */
@font-face {
  font-family: "Inter var";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0f1035;
  --ink: #16151f;
  --ink-2: #2b2a38;
  --muted: #6d6b78;
  --line: #e6e5ea;
  --line-2: #dedde3;
  --thead: #f0eff4;
  --zebra: #fafafc;
  --purple: #5e51dd;
  --cyan: #53bbd6;
  --radius: 10px;
  /* chips (featured categories) */
  --chip-violet: #bf66e3;
  --chip-coral: #fb6e74;
  --chip-blue: #45b1dc;
  --chip-orange: #fd983d;
  --chip-indigo: #717be3;
  --chip-green: #34b77d;
  --chip-pink: #ec6aa8;
  --chip-teal: #23a9a1;
  /* tags */
  --tag-lavender: #dccbf8;
  --tag-pink: #f9c6d3;
  --tag-yellow: #f9e8b0;
  --tag-mint: #bce9cc;
  --tag-sky: #b0dcfb;
  --tag-peach: #fcc8a0;
  --tag-grey: #e7e6ec;
  --up: #16a34a;
  --down: #dc2626;
  --star: #e8963f;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: "Inter var", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: #fbf2eb;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.ic { flex: none; vertical-align: -3px; }

/* soft pastel background: five colour blobs drifting slower than a lava lamp.
   Only transform is animated, so the browser moves ready-made layers on the GPU
   and never repaints the page. Each blob is drawn at half size and scaled 2x
   (soft gradients don't need the pixels). Motion stops for visitors who ask
   their system for reduced motion. */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, #fcf1eb 0%, #fbf2eb 55%, #f7f6f6 100%);
}
.bg:empty { /* pages without the blob elements keep the original still background */
  background:
    radial-gradient(42% 38% at 4% 52%, rgba(250, 196, 186, .62), transparent 70%),
    radial-gradient(30% 22% at 21% 33%, rgba(255, 214, 178, .70), transparent 72%),
    radial-gradient(34% 30% at 97% 18%, rgba(196, 234, 250, .95), transparent 70%),
    radial-gradient(36% 40% at 100% 70%, rgba(214, 243, 251, .9), transparent 72%),
    radial-gradient(26% 18% at 80% 2%, rgba(251, 222, 228, .8), transparent 72%),
    linear-gradient(180deg, #fcf1eb 0%, #fbf2eb 55%, #f7f6f6 100%);
}
.bg .blob {
  position: absolute; display: block;
  transform: scale(2); will-change: transform;
  animation: 80s ease-in-out infinite;
}
.bg .b1 { left: -17%; top: 33%; width: 42%; height: 38%; background: radial-gradient(50% 50% at 50% 50%, rgba(250, 196, 186, .62), transparent 70%); animation-name: hd-blob-1; animation-duration: 84s; }
.bg .b2 { left: 6%; top: 22%; width: 30%; height: 22%; background: radial-gradient(50% 50% at 50% 50%, rgba(255, 214, 178, .70), transparent 72%); animation-name: hd-blob-2; animation-duration: 68s; }
.bg .b3 { left: 80%; top: 3%; width: 34%; height: 30%; background: radial-gradient(50% 50% at 50% 50%, rgba(196, 234, 250, .95), transparent 70%); animation-name: hd-blob-3; animation-duration: 76s; }
.bg .b4 { left: 82%; top: 50%; width: 36%; height: 40%; background: radial-gradient(50% 50% at 50% 50%, rgba(214, 243, 251, .9), transparent 72%); animation-name: hd-blob-4; animation-duration: 90s; }
.bg .b5 { left: 67%; top: -7%; width: 26%; height: 18%; background: radial-gradient(50% 50% at 50% 50%, rgba(251, 222, 228, .8), transparent 72%); animation-name: hd-blob-5; animation-duration: 60s; }
@keyframes hd-blob-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(2); }
  25% { transform: translate(7vw, -5vh) rotate(4deg) scale(2.1); }
  50% { transform: translate(12vw, 5vh) rotate(-3deg) scale(1.95); }
  75% { transform: translate(4vw, 10vh) rotate(3deg) scale(2.08); }
}
@keyframes hd-blob-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(2); }
  25% { transform: translate(-5vw, 7vh) rotate(-4deg) scale(1.92); }
  50% { transform: translate(6vw, 10vh) rotate(6deg) scale(2.1); }
  75% { transform: translate(9vw, -4vh) rotate(-4deg) scale(2.04); }
}
@keyframes hd-blob-3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(2); }
  25% { transform: translate(-8vw, 6vh) rotate(-5deg) scale(2.1); }
  50% { transform: translate(-12vw, -2vh) rotate(2deg) scale(1.94); }
  75% { transform: translate(-3vw, 9vh) rotate(4deg) scale(2.06); }
}
@keyframes hd-blob-4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(2); }
  25% { transform: translate(-6vw, -8vh) rotate(4deg) scale(2.08); }
  50% { transform: translate(-10vw, 4vh) rotate(-3deg) scale(1.95); }
  75% { transform: translate(-2vw, -4vh) rotate(2deg) scale(2.12); }
}
@keyframes hd-blob-5 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(2); }
  25% { transform: translate(-9vw, 5vh) rotate(6deg) scale(2.1); }
  50% { transform: translate(-3vw, 9vh) rotate(0deg) scale(1.94); }
  75% { transform: translate(5vw, 3vh) rotate(-5deg) scale(2.05); }
}

.wrap { width: 100%; max-width: 1346px; margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.site-header { display: flex; align-items: center; height: 74px; padding-top: 18px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark { flex: none; }
.brand-text {
  font-size: 24px; font-weight: 700; letter-spacing: -.012em; line-height: 1;
  background: linear-gradient(90deg, #5a4ec3 0%, #5967cf 42%, #4f9fd2 72%, #4dc3d9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav > a:not(.btn-submit) { font-size: 15px; color: #1b1830; text-decoration: none; padding: 6px 0; }
.nav > a:not(.btn-submit):hover, .nav > a[aria-current="page"] { color: var(--purple); }
.btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 18px;
  border-radius: 9px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: linear-gradient(90deg, #5e51dd 0%, #5589d3 55%, #53bbd6 100%); color: #fff; font-size: 15px; font-weight: 500;
  box-shadow: 0 8px 18px -8px rgba(94, 81, 221, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-submit:hover { filter: brightness(1.05); }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15.5px; }
.acct { position: relative; margin-left: -18px; }
.btn-account {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; position: relative;
  background: #e7e0f1; border: 1px solid #d9d0e8; color: #4f4a66;
}
.btn-account:hover { background: #ded5ee; }
.saved-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--purple); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.acct-menu {
  position: absolute; right: 0; top: 46px; min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 34px -12px rgba(40, 30, 70, .25); padding: 6px; z-index: 30;
}
.acct-menu a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 7px; text-decoration: none; font-size: 14px; }
.acct-menu a:hover { background: #f4f2f9; }
.saved-num { margin-left: auto; color: var(--muted); font-size: 12.5px; }

/* ---------- hero + search ---------- */
.hero { text-align: center; padding-top: 41px; }
.hero h1 { margin: 0; font-size: 41px; line-height: 1.15; font-weight: 800; letter-spacing: -.024em; color: var(--navy); }
.hero .sub { margin: 6px auto 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 760px; }
.crumbs ol { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b7b4c2; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--purple); }

.search {
  display: flex; align-items: center; gap: 9px; max-width: 718px; height: 45px; margin: 18px auto 0; padding: 0 7px 0 14px;
  background: #fff; border: 1px solid #e9e6ee; border-radius: 11px; box-shadow: 0 12px 30px -16px rgba(70, 50, 100, .28);
}
.search:focus-within { border-color: #c9c1ee; box-shadow: 0 0 0 3px rgba(94, 81, 221, .12), 0 12px 30px -16px rgba(70, 50, 100, .28); }
.search-ic { color: #7a7886; display: grid; place-items: center; }
.search input[type="search"] { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: #6d6d6f; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.filters { display: flex; gap: 9px; }
.sel { position: relative; display: inline-flex; align-items: center; height: 32px; border: 1px solid #e3e0ea; border-radius: 7px; background: #fff; }
.sel select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; height: 100%; padding: 0 30px 0 11px;
  font-size: 14px; color: #14131f; cursor: pointer; outline: 0;
}
.sel .chev { position: absolute; right: 9px; pointer-events: none; color: #3b3946; }
.sel:focus-within { border-color: #c9c1ee; box-shadow: 0 0 0 3px rgba(94, 81, 221, .12); }

/* ---------- results panel ---------- */
.panel {
  margin-top: 22px; margin-bottom: 40px; padding: 15px 20px 18px;
  background: rgba(255, 255, 255, .56); border: 1px solid rgba(255, 255, 255, .9); border-radius: 14px;
  box-shadow: 0 24px 60px -30px rgba(80, 60, 110, .28);
  /* no backdrop blur: blurring the moving background under this big panel on every
     frame would cost visitors' GPUs, and the soft blobs look the same without it */
}
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 8px; }
.count { font-size: 14.5px; font-weight: 500; color: #121020; }
.sep { width: 1px; height: 18px; background: #dcd8e0; margin: 0 6px; }
.showing { font-size: 14.5px; color: #2a2833; margin-right: 4px; }
.pager-mini { display: inline-flex; margin-left: 4px; border: 1px solid #e2dfe7; border-radius: 7px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.pager-mini a, .pager-mini .off { display: grid; place-items: center; width: 31px; height: 30px; color: #45434f; text-decoration: none; }
.pager-mini a + a, .pager-mini a + .off, .pager-mini .off + a, .pager-mini .off + .off { border-left: 1px solid #e2dfe7; }
.pager-mini a:hover { background: #f3f1f8; }
.pager-mini .off, .btn-ghost.off { color: #b4aeb8; cursor: default; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 7px; white-space: nowrap;
  border: 1px solid #e2dfe7; background: rgba(255, 255, 255, .75); color: #14131f; font-size: 14.5px; text-decoration: none; cursor: pointer;
}
a.btn-ghost:hover, button.btn-ghost:hover { background: #fff; border-color: #d4cfe0; }
.perpage { display: flex; }
.sel-show { height: 32px; background: rgba(255, 255, 255, .85); }
.sel-show > span:first-child { padding-left: 11px; font-size: 14.5px; color: #14131f; }
.sel-show select { padding-left: 5px; font-size: 14.5px; }
.sel-show:hover { border-color: #f0d2a6; box-shadow: 0 0 0 3px rgba(246, 210, 160, .45); }
.sel-show .tip {
  position: absolute; top: calc(100% + 10px); left: 104px; white-space: nowrap; background: #fce7ca; color: #2a1d0e; font-size: 14.5px;
  padding: 5px 11px; border-radius: 8px; box-shadow: 0 8px 18px -10px rgba(120, 80, 30, .35); opacity: 0; transform: translateY(-3px);
  transition: opacity .15s, transform .15s; pointer-events: none; z-index: 5;
}
.sel-show .tip::before { content: ""; position: absolute; top: -5px; left: 16px; width: 10px; height: 10px; background: #fce7ca; transform: rotate(45deg); border-radius: 2px; }
.sel-show:hover .tip, .sel-show:focus-within .tip { opacity: 1; transform: none; }

/* featured category chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 11px; border-radius: 14px; text-decoration: none;
  color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .005em; background: var(--chip-violet);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0));
  box-shadow: 0 4px 10px -6px rgba(60, 40, 90, .45);
}
.chip .emoji { font-size: 14px; line-height: 1; }
.chip:hover { filter: brightness(1.06); }
.chip.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(94, 81, 221, .55); }
.chip-violet { background-color: var(--chip-violet); }
.chip-coral { background-color: var(--chip-coral); }
.chip-blue { background-color: var(--chip-blue); }
.chip-orange { background-color: var(--chip-orange); }
.chip-indigo { background-color: var(--chip-indigo); }
.chip-green { background-color: var(--chip-green); }
.chip-pink { background-color: var(--chip-pink); }
.chip-teal { background-color: var(--chip-teal); }

/* ---------- the table ---------- */
.table-wrap { margin-top: 11px; background: #fff; border: 1px solid #e4e2e9; border-radius: 10px; overflow: hidden; }
table.dir { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dir th {
  height: 32px; padding: 0 9px; text-align: left; font-size: 14px; font-weight: 600; color: #13122a; background: var(--thead);
  border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.dir th a { text-decoration: none; }
.dir th a:hover { color: var(--purple); }
.dir td { height: 32px; padding: 3px 9px; border-bottom: 1px solid #e8e8eb; vertical-align: middle; font-size: 14px; }
.dir tbody tr:nth-child(even) td { background: var(--zebra); }
.dir tbody tr:last-child td { border-bottom: 0; }
.dir tbody tr:hover td { background: #f6f4fc; }
.dir .c-num { width: 65px; padding-left: 14px; color: #1a1930; font-variant-numeric: tabular-nums; }
.dir .c-name { width: auto; }
.dir .c-cat { width: auto; }
.dir .c-year { width: 106px; font-variant-numeric: tabular-nums; }
.dir .c-price { width: 222px; }
.dir .c-da { width: 104px; }
.dir .c-act { width: 72px; padding-right: 12px; }
.dir td.c-cat, .dir td.c-price { white-space: nowrap; overflow: hidden; }
/* name cell: name (shortened with … when long), then the open-in-new-tab icon, then the health flag */
.dir td.c-name { white-space: nowrap; }
.dir td.c-name .site { max-width: calc(100% - 26px); }
.dir td.c-name:has(.flag) .site { max-width: calc(100% - 48px); }
.go {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 3px; border-radius: 6px;
  color: #7c7989; vertical-align: middle; transition: color .15s, background-color .15s;
}
.go .ic { vertical-align: 0; }
.go:hover, .go:focus-visible { color: var(--purple); background: rgba(94, 81, 221, .09); }
.site { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; text-decoration: none; color: #121119; vertical-align: middle; }
.site span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site:hover span { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.fav { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; flex: none; display: inline-block; }
.fav-letter {
  display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, hsl(var(--h) 70% 58%), hsl(calc(var(--h) + 35) 70% 48%));
}
.flag { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #fde7e7; color: #c0262d; font-size: 11px; font-weight: 700; vertical-align: middle; }

.tag {
  display: inline-flex; align-items: center; height: 21px; padding: 0 9px; margin-right: 6px; border-radius: 11px; text-decoration: none;
  font-size: 12.5px; font-weight: 500; color: #221d33; white-space: nowrap; vertical-align: middle; background: var(--tag-lavender);
}
a.tag:hover { filter: brightness(.97); text-decoration: underline; text-underline-offset: 2px; }
.tag-lavender { background: var(--tag-lavender); color: #2a1f45; }
.tag-pink { background: var(--tag-pink); color: #451a2a; }
.tag-yellow { background: var(--tag-yellow); color: #3b2c06; }
.tag-mint { background: var(--tag-mint); color: #10372a; }
.tag-sky { background: var(--tag-sky); color: #0f2f4a; }
.tag-peach { background: var(--tag-peach); color: #45230a; }
.tag-grey { background: var(--tag-grey); color: #2b2a33; }
.t-free { background: var(--tag-mint); color: #10372a; }
.t-recip { background: var(--tag-sky); color: #0f2f4a; }
.t-paid { background: var(--tag-peach); color: #45230a; }
.t-none { background: #f1f0f4; color: #6d6b78; }

.da { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; color: #16151f; padding-left: 4px; }
.da svg { flex: none; }
.da-up svg { color: var(--up); }
.da-down svg { color: var(--down); }
.da-new svg { color: var(--star); }
.da-same svg { color: #a3a0ad; }
.da-none .da-n { color: var(--muted); }
.c-act { white-space: nowrap; text-align: right; }
.bm { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 6px; cursor: pointer; color: #15131e; vertical-align: middle; }
.bm:hover { background: #f1eff8; }
.bm[aria-pressed="true"] { color: var(--purple); }
.bm[aria-pressed="true"] svg { fill: currentColor; }
tr.empty td { text-align: center; padding: 28px 12px; color: var(--muted); }
tr.empty a { color: var(--purple); }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pager a, .pager span { min-width: 34px; height: 32px; display: grid; place-items: center; padding: 0 9px; border-radius: 7px; font-size: 14px; text-decoration: none; }
.pager a { border: 1px solid #e2dfe7; background: rgba(255, 255, 255, .8); }
.pager a:hover { border-color: #cfc8e6; background: #fff; }
.pager .cur { background: var(--purple); color: #fff; font-weight: 600; }
.pager .gap { color: var(--muted); }

/* ---------- categories page ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cat-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid #e8e6ee; text-decoration: none; transition: border-color .15s, transform .15s; }
.cat-card:hover { border-color: #cfc6f0; transform: translateY(-1px); }
.cat-emoji { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 20px; }
.cat-body { display: flex; flex-direction: column; gap: 2px; }
.cat-body strong { font-size: 15px; }
.cat-desc { color: var(--ink-2); font-size: 13px; margin-top: 4px; }

/* ---------- site page ---------- */
.hero-site { padding-top: 22px; }
.site-card { padding: 22px 24px 26px; }
.site-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-id { display: flex; align-items: center; gap: 14px; }
.site-id .fav { width: 56px; height: 56px; border-radius: 12px; }
.site-id .fav-letter { font-size: 24px; }
.site-id h1 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); }
.site-domain { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-domain:hover { color: var(--purple); }
.site-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bm-lg { width: auto; height: 38px; padding: 0 12px; gap: 6px; display: inline-flex; border: 1px solid #e2dfe7; background: #fff; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.stat { background: #fff; border: 1px solid #e8e6ee; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-height: 92px; }
.stat-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--navy); line-height: 1.2; display: flex; align-items: center; gap: 6px; }
.stat-value .da { font-size: 28px; padding: 0; }
.stat-sm { font-size: 16px; font-weight: 600; padding-top: 6px; }
.stat-note { font-size: 12.5px; color: var(--muted); }
.stat-tags { padding-top: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #c7c4cf; flex: none; }
.dot-up { background: var(--up); }
.dot-redirect, .dot-blocked { background: #e8963f; }
.dot-parked, .dot-down { background: var(--down); }
.site-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; margin-top: 22px; }
.site-main h2, .related h2, .side-box h2 { font-size: 16px; margin: 22px 0 8px; color: var(--navy); }
.site-main h2:first-child { margin-top: 0; }
.site-main p { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 0 0 12px; }
.facts { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts a { color: var(--purple); }
.spark-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
details.hist { margin-top: 6px; font-size: 13.5px; }
details.hist summary { cursor: pointer; color: var(--purple); }
table.mini { border-collapse: collapse; margin-top: 8px; min-width: 240px; }
table.mini th, table.mini td { text-align: left; padding: 4px 14px 4px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.side-box { background: #fff; border: 1px solid #e8e6ee; border-radius: 12px; padding: 16px; }
.side-box h2 { margin-top: 0; }
.side-box p { font-size: 13.5px; color: var(--ink-2); margin: 0 0 10px; }
.code { width: 100%; margin: 10px 0 8px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #faf9fc; resize: vertical; }
.related { margin-top: 26px; }
.rel-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.rel-list a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #e8e6ee; border-radius: 10px; background: #fff; text-decoration: none; }
.rel-list a:hover { border-color: #cfc6f0; }
.rel-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-da { color: var(--muted); font-size: 13px; }

/* ---------- forms ---------- */
.form-panel { max-width: 860px; padding: 22px 26px 26px; }
.center-panel { text-align: center; padding: 26px; max-width: 640px; }
.center-panel p { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 600; color: var(--navy); padding: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #dedbe6; border-radius: 9px; background: #fff; padding: 10px 12px; font-size: 15px; outline: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #b9aef0; box-shadow: 0 0 0 3px rgba(94, 81, 221, .12); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; margin-top: 4px; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--purple); }
.err { color: #c0262d; font-size: 13px; margin: 0; }
.notice { padding: 12px 14px; border-radius: 10px; background: #f4f2fb; border: 1px solid #e3def6; margin: 0 0 14px; }
.notice-err { background: #fdf0f0; border-color: #f4cfd1; color: #8d1f25; }
.notice-ok { background: #effaf3; border-color: #c9ead6; color: #14532d; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.prose { padding: 26px 30px; max-width: 860px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font-size: 19px; color: var(--navy); margin: 26px 0 8px; }
.prose a { color: var(--purple); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(20, 15, 40, .07); background: rgba(255, 255, 255, .45); margin-top: 10px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 28px; padding: 34px 0 20px; }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #4a4757; margin: 4px 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.site-footer a { text-decoration: none; color: #3b3946; font-size: 14px; }
.site-footer a:hover { color: var(--purple); }
.foot-about p { color: #4f4c5b; font-size: 13.5px; max-width: 360px; }
.brand-sm .brand-text { font-size: 18px; }
.moz-credit { font-size: 12.5px !important; color: var(--muted) !important; }
.moz-credit a { font-size: 12.5px; text-decoration: underline; }
.foot-bottom { padding: 14px 0 26px; font-size: 13px; color: var(--muted); border-top: 1px solid rgba(20, 15, 40, .06); }

/* ---------- responsive ---------- */
@media (max-width: 1386px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .panel.wrap { width: calc(100% - 40px); padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 1100px) {
  .dir .c-cat { width: auto; }
  .dir .c-price { width: 160px; }
  .dir .c-num { width: 48px; padding-left: 10px; }
  .dir .c-year { width: 66px; }
  .dir .c-da { width: 80px; }
  .dir .c-act { width: 70px; }
}
@media (max-width: 980px) {
  .toolbar { flex-wrap: wrap; }
  .tb-right { flex-wrap: wrap; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .site-body { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  /* table → cards */
  .table-wrap { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  table.dir, .dir tbody, .dir tr, .dir td { display: block; width: auto !important; }
  .dir thead { display: none; }
  .dir tr { position: relative; background: #fff; border: 1px solid #e6e4ec; border-radius: 12px; padding: 10px 12px 10px 12px; margin-bottom: 9px; }
  .dir tbody tr:nth-child(even) td, .dir tbody tr:hover td { background: transparent; }
  .dir td { border: 0; height: auto; padding: 2px 0; }
  .dir .c-num { position: absolute; top: 12px; right: 14px; padding: 0; color: var(--muted); font-size: 12.5px; }
  .dir .c-name { font-weight: 600; padding-right: 40px; }
  .dir td.c-cat, .dir td.c-price { white-space: normal; overflow: visible; }
  .dir td.c-cat { padding-top: 6px; }
  .dir .c-year::before { content: "Year "; color: var(--muted); }
  .dir .c-year, .dir .c-da { display: inline-block; margin-right: 16px; }
  .dir .c-da::before { content: "Moz DA"; color: var(--muted); margin-right: 2px; }
  .dir .c-act { text-align: left; padding-top: 6px; }
  tr.empty { text-align: center; }
}
@media (max-width: 720px) {
  .site-header { height: auto; flex-wrap: wrap; gap: 10px; padding-top: 14px; }
  .brand-text { font-size: 19px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav { gap: 14px; margin-left: 0; width: 100%; justify-content: space-between; }
  .nav > a:not(.btn-submit) { font-size: 14px; }
  .btn-submit { padding: 0 12px; font-size: 14px; }
  .acct { margin-left: 0; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 30px; }
  .hero .sub { font-size: 15.5px; }
  .search { flex-wrap: wrap; height: auto; padding: 8px; }
  .search input[type="search"] { height: 34px; flex-basis: calc(100% - 40px); }
  .filters { width: 100%; }
  .filters .sel { flex: 1; }
  .filters .sel select { width: 100%; }
  .showing { display: none; }
  .tb-right .btn-ghost:not(.off) { padding: 0 10px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .bg .blob { animation: none; }
}

/* Cloudflare Turnstile ("Verify you are human") */
.ts-box { margin: 4px 0 16px; min-height: 65px; }
.ts-box .err { margin-top: 6px; }
