/* hallmark: custom direction | Everything Obsidian | dark knowledge-graph aggregator (A Violet, approved by Tatsu 2026-11-03) */
/* critique: the graph is the page; lists are its readable twin, so no section repeats the hero's idea */
:root {
  --bg: #0e0d14;
  --bg-2: #15131d;
  --bg-3: #1c1927;
  --line: #2a2736;
  --line-2: #3a3650;
  --tx: #edebf5;
  --tx-2: #a39fb7;
  --ac: #8b7cf6;
  --ac-2: #c4bcff;
  --ac-soft: rgba(139, 124, 246, 0.14);
  --use: #e9b7a4;
  --theme: #d9d4ff;
  --up: #9be3c1;
  --serif: "Shippori Mincho B1", "Noto Serif JP", serif;
  --sans: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --maxw: 1240px;
  --gut: clamp(20px, 4vw, 56px);
  --r: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  margin: 0; overflow-x: clip; background: var(--bg); color: var(--tx);
  font: 400 17px/1.75 var(--sans); -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ac-2); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

#graph { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; transition: opacity 0.5s var(--ease); }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gut); background: linear-gradient(var(--bg) 40%, transparent);
}
.brand { font: 800 19px/1 var(--serif); letter-spacing: 0.01em; margin-right: auto; }
.links { display: flex; gap: 26px; font-size: 15px; color: var(--tx-2); }
.links a { padding: 8px 2px; transition: color 0.25s var(--ease); }
.links a:hover { color: var(--tx); }
.search {
  display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--tx-2); font-size: 14px;
  background: rgba(14, 13, 20, 0.7); backdrop-filter: blur(8px);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.search:hover { border-color: var(--ac); color: var(--tx); transform: translateY(-1px); }
kbd { font: 500 12px/1 var(--sans); padding: 4px 7px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--tx-2); }

/* hero */
.hero { position: relative; z-index: 1; min-height: 100svh; display: grid; align-content: center; padding: 96px var(--gut) 72px; pointer-events: none; }
.hero-copy { max-width: 560px; pointer-events: auto; }
h1 {
  font: 800 clamp(38px, 5.4vw, 76px)/1.2 var(--serif); letter-spacing: 0.01em; min-width: 0;
}
h1 span { display: block; white-space: nowrap; }
.lede { word-break: auto-phrase; text-wrap: pretty; margin-top: 22px; max-width: 30em; color: var(--tx-2); font-size: 18px; line-height: 1.85; }
.actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-2); font-weight: 500; font-size: 15px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--ac-2); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--ac); border-color: var(--ac); color: #0e0d14; font-weight: 700; }
.btn.primary:hover { background: var(--ac-2); border-color: var(--ac-2); }

.inspector {
  position: absolute; right: var(--gut); bottom: 56px; width: 340px; padding: 20px 22px;
  background: rgba(21, 19, 29, 0.82); backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: var(--r);
  pointer-events: auto; transition: border-color 0.3s var(--ease);
}
.inspector[data-kind="plugin"] { border-color: rgba(139, 124, 246, 0.55); }
.inspector[data-kind="theme"] { border-color: rgba(217, 212, 255, 0.5); }
.inspector[data-kind="use"] { border-color: rgba(233, 183, 164, 0.55); }
.ins-kind { font-size: 13px; color: var(--tx-2); }
.ins-title { font: 800 24px/1.35 var(--serif); margin-top: 4px; overflow-wrap: anywhere; }
.ins-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: var(--tx-2); }
.ins-num { margin-top: 12px; font-size: 15px; color: var(--up); font-variant-numeric: tabular-nums; }
.ins-link { display: inline-block; margin-top: 12px; font-size: 14.5px; color: var(--ac-2); border-bottom: 1px solid transparent; transition: border-color 0.25s var(--ease); }
.ins-link:hover { border-color: var(--ac-2); }
.ins-link[hidden], .ins-num:empty, .ins-desc:empty { display: none; }

.picks { margin-top: 34px; display: grid; gap: 2px; max-width: 520px; }
.pick { display: grid; grid-template-columns: 12px 10em minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; text-align: left; border-radius: 10px; font-size: 14.5px; transition: background-color 0.25s var(--ease), transform 0.25s var(--ease); }
.pick:hover, .pick[aria-pressed="true"] { background: var(--ac-soft); transform: translateX(4px); }
.pick .k { width: 9px; height: 9px; }
.pick .lb { color: var(--tx-2); font-size: 13.5px; white-space: nowrap; }
.pick b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .v { color: var(--up); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.legend { position: absolute; left: var(--gut); bottom: 56px; display: flex; gap: 18px; font-size: 13.5px; color: var(--tx-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.k { width: 10px; height: 10px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 10px var(--ac); }
.k.theme { background: var(--theme); box-shadow: 0 0 10px var(--theme); }
.k.use { background: var(--use); box-shadow: 0 0 10px var(--use); }
.hint { position: absolute; left: var(--gut); bottom: 22px; font-size: 13.5px; color: var(--tx-2); }

/* sections */
.stream { position: relative; z-index: 1; }
.block { max-width: calc(var(--maxw) + var(--gut) * 2); margin: 0 auto; padding: 92px var(--gut) 24px; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.block h2 { font: 800 clamp(28px, 3.2vw, 40px)/1.3 var(--serif); }
.sub { margin-top: 8px; font-size: 14.5px; color: var(--tx-2); max-width: 46em; line-height: 1.7; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border: 1px solid var(--line-2); border-radius: 24px; background: rgba(14, 13, 20, 0.7); flex-wrap: wrap; }
.seg button { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; color: var(--tx-2); transition: color 0.25s var(--ease), background-color 0.25s var(--ease); }
.seg button:hover { color: var(--tx); }
.seg button[aria-pressed="true"] { background: var(--ac); color: #0e0d14; font-weight: 700; }

/* rank */
.rank { border-top: 1px solid var(--line); background: linear-gradient(rgba(14, 13, 20, 0.82), rgba(14, 13, 20, 0.82)); }
.row {
  display: grid; grid-template-columns: 44px minmax(0, 1.5fr) minmax(0, 1.4fr) 132px 120px; align-items: center; gap: 20px;
  padding: 18px 8px; border-bottom: 1px solid var(--line); transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.row:hover, .row.on { background: var(--ac-soft); transform: translateX(4px); }
.row .no { font: 800 22px/1 var(--serif); color: var(--ac-2); font-variant-numeric: tabular-nums; }
.row .nm { font-weight: 700; font-size: 17px; line-height: 1.4; }
.row .nm small { display: block; font-weight: 400; font-size: 13.5px; color: var(--tx-2); margin-top: 2px; }
.row .ds { font-size: 14.5px; color: var(--tx-2); line-height: 1.65; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row .sp { width: 132px; height: 40px; overflow: visible; }
.row .gain { text-align: right; font-variant-numeric: tabular-nums; line-height: 1.4; }
.row .gain b { display: block; font-size: 17px; color: var(--up); }
.row .gain span { font-size: 13px; color: var(--tx-2); }

/* themes */
.rail-wrap { --edge: max(var(--gut), calc((100vw - var(--maxw)) / 2)); position: relative; margin: 0 calc(50% - 50vw); }
.rail-wrap::before, .rail-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 72px; z-index: 2; pointer-events: none; transition: opacity 0.3s var(--ease); }
.rail-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); opacity: 0; }
.rail-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.rail-wrap.scrolled::before { opacity: 1; }
.rail-wrap.end::after { opacity: 0; }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px var(--edge) 22px; scroll-padding-inline: var(--edge); scrollbar-width: none; -ms-overflow-style: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > li { flex: 0 0 min(400px, 78vw); }
.tc { width: 100%; scroll-snap-align: start; display: block; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s var(--ease); }
.tc:hover { transform: translateY(-6px); border-color: rgba(217, 212, 255, 0.6); }
.tc .shot { aspect-ratio: 16 / 10; background: var(--bg-3); overflow: hidden; }
.tc img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; transition: transform 0.6s var(--ease); }
.tc:hover img { transform: scale(1.035); }
.tc .meta { padding: 14px 18px 18px; }
.tc .meta b { display: block; font-weight: 700; font-size: 17px; }
.tc .meta span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--tx-2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tc:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
.tc:hover, .tc:focus-visible { transform: translateY(-3px); border-color: rgba(217, 212, 255, 0.6); }
.tc .shot.shot-empty { display: grid; place-items: center; color: var(--tx-2); font-size: 14px; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; font-size: 18px; color: var(--tx-2); transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease); }
.arrows button:hover { transform: translateY(-2px); border-color: var(--ac-2); color: var(--tx); }
.arrows button[disabled] { opacity: 0.35; transform: none; cursor: default; }

/* uses */
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.uses > li { display: flex; }
.uc {
  flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 190px; padding: 22px 22px 20px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r); transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.uc:hover, .uc.on { transform: translateY(-5px); border-color: rgba(233, 183, 164, 0.6); background: var(--bg-3); }
.uc .tag { font-size: 13px; color: var(--use); }
.uc h3 { font: 700 18px/1.55 var(--sans); }
.uc .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.uc .chips span { font-size: 12.5px; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--tx-2); }
.uc .by { font-size: 13px; color: var(--tx-2); }
.news { display: block; margin-top: 18px; padding: 18px 22px; border: 1px dashed var(--line-2); border-radius: var(--r); font-size: 15px; color: var(--tx-2); transition: border-color 0.3s var(--ease), color 0.3s var(--ease); }
.news:hover { border-color: var(--ac-2); color: var(--tx); }
.news b { color: var(--tx); font-weight: 700; }

/* intents */
.intents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.it { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); transition: transform 0.35s var(--ease), border-color 0.35s var(--ease); }
.it:hover { transform: translateY(-5px); border-color: rgba(139, 124, 246, 0.6); }
.it h3 { font: 800 22px/1.4 var(--serif); }
.it p { margin-top: 6px; font-size: 14.5px; color: var(--tx-2); line-height: 1.7; }
.it ul { margin-top: 14px; border-top: 1px solid var(--line); }
.it li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; transition: color 0.25s var(--ease), padding-left 0.25s var(--ease); }
.it li a:hover { color: var(--ac-2); padding-left: 6px; }
.it li a span { color: var(--tx-2); font-size: 13px; font-variant-numeric: tabular-nums; }

/* footer, modal */
.foot { position: relative; z-index: 1; margin-top: 110px; padding: 48px var(--gut) 56px; border-top: 1px solid var(--line); background: var(--bg); display: grid; gap: 10px; }
.brand-line { font: 800 22px/1 var(--serif); }
.fine { font-size: 13.5px; color: var(--tx-2); max-width: 60em; line-height: 1.75; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: start center; padding: 14vh 20px 20px; background: rgba(8, 7, 12, 0.72); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-box { width: min(640px, 100%); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
#q { width: 100%; padding: 20px 22px; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--tx); font: 400 18px/1.4 var(--sans); outline: none; }
#q:focus-visible { outline: 2px solid var(--ac-2); outline-offset: -3px; border-radius: 16px 16px 0 0; }
.results { max-height: 52vh; overflow-y: auto; scrollbar-width: none; }
.results::-webkit-scrollbar { display: none; }
.results a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 22px; font-size: 15.5px; transition: background-color 0.2s var(--ease); }
.results a:hover, .results a:focus-visible { background: var(--ac-soft); }
.results small { color: var(--tx-2); font-size: 13px; }
.results .empty { padding: 20px 22px; color: var(--tx-2); font-size: 15px; }

@media (max-width: 1000px) {
  .links { display: none; }
  .row { grid-template-columns: 36px minmax(0, 1fr) 100px; }
  .row .ds, .row .sp { display: none; }
  .uses, .intents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .nav { gap: 12px; }
  .search span { display: none; }
  .hero { align-content: start; padding-top: 84px; min-height: 100svh; }
  h1 { font-size: 34px; line-height: 1.35; }
  h1 span { display: inline-block; }
  .lede { margin-top: 14px; font-size: 16px; line-height: 1.75; }
  .actions { margin-top: 20px; }
  .picks, .hint { display: none; }
  .inspector { left: var(--gut); right: var(--gut); width: auto; bottom: 56px; padding: 16px 18px; }
  .ins-title { font-size: 20px; }
  .ins-desc { display: none; }
  .legend { bottom: 18px; }
  .uses, .intents { grid-template-columns: minmax(0, 1fr); }
  .block { padding-top: 72px; }
  .row { padding: 16px 4px; gap: 14px; }
  .tc .meta { padding: 12px 14px 16px; }
  .tc .meta b { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .rail { scroll-behavior: auto; }
  .tc, .tc img { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

:root {
  color-scheme: dark;
  --bg: #111113;
  --bg-2: #19191D;
  --bg-3: #202024;
  --line: #333039;
  --line-2: #48434F;
  --tx: #EEEAE4;
  --tx-2: #B4AEBB;
  --ac: #A99AE8;
  --ac-2: #A99AE8;
  --ac-soft: rgba(169, 154, 232, 0.12);
  --use: #B4AEBB;
  --theme: #B4AEBB;
  --up: #A2CDB7;
}
body { background: var(--bg); }
:focus-visible { outline-color: var(--ac); outline-offset: 3px; }
.nav { background: linear-gradient(180deg, var(--bg) 70%, rgba(17,17,19,0)); }
.search { border-color: var(--line); background: var(--bg-2); backdrop-filter: none; }
.search:hover { border-color: var(--ac); color: var(--tx); }
.search kbd { border-color: var(--line); }
.hero { isolation: isolate; overflow: clip; }
#graph { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: auto; transition: none; }
#graph:focus-visible { outline: 2px solid var(--ac); outline-offset: -5px; }
.hero-copy, .inspector, .legend, .hint { z-index: 1; }
.hero-copy { position: relative; }
.inspector { background: rgba(25,25,29,.94); backdrop-filter: none; border-color: var(--line); }
.inspector[data-kind] { border-color: var(--line); }
.inspector[data-kind="plugin"] { border-color: rgba(169,154,232,.55); }
.ins-num { color: var(--up); }
.k { background: var(--ac); box-shadow: none; }
.k.theme, .k.use { background: var(--tx-2); box-shadow: none; }
.btn { border-color: var(--line); }
.btn.primary { background: var(--ac); border-color: var(--ac); color: #111113; }
.btn.primary:hover { background: #B8AAEF; border-color: #B8AAEF; }
.block { padding-top: 84px; }
.block-head { align-items: flex-end; margin-bottom: 24px; }
.block h2 { font-size: clamp(30px,3.2vw,38px); }
.sub { max-width: 52em; }
.seg { background: var(--bg-2); border-color: var(--line); gap: 3px; padding: 3px; flex-wrap: wrap; }
.seg button { min-height: 36px; padding: 0 13px; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--ac-soft); color: var(--ac); font-weight: 700; }
.rank-controls { display: grid; gap: 7px; justify-items: end; }
.rank-controls-label { margin: 0; color: var(--tx-2); font-size: 13px; }
.rank-method { margin: -2px 0 12px; color: var(--tx-2); font-size: 13px; line-height: 1.65; }
.rank-method summary { width: fit-content; cursor: pointer; color: var(--tx-2); }
.rank-method p { max-width: 70em; margin: 6px 0 0; }
.rank-link-note { margin: 0 0 12px; color: var(--tx-2); font-size: 12px; line-height: 1.6; }
.rank { border-top: 1px solid var(--line); background: var(--bg-2); }
.row {
  grid-template-columns: 42px minmax(190px,1fr) minmax(220px,1.8fr) minmax(150px,.8fr);
  gap: 18px; min-height: 88px; padding: 16px 10px;
  border-bottom-color: var(--line); background: var(--bg-2);
  transition: background-color .22s var(--ease), transform .22s var(--ease);
}
.row:hover, .row.on { background: #202024; transform: translateY(-1px); }
.row .no { grid-column: 1; color: var(--tx-2); font-size: 20px; }
.row:first-child .no { color: var(--ac); }
.row .nm { grid-column: 2; font-size: 16px; }
.row .nm small { font-size: 13px; margin-top: 4px; }
.row .ds { grid-column: 3; display: block; -webkit-line-clamp: unset; overflow: visible; color: var(--tx-2); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.row .ds-summary, .row .review-notice { display: block; }
.row .review-notice { margin-top: 5px; color: var(--tx); font-size: 12px; }
.row .review-checked-date { display: block; color: var(--tx-2); font-size: 11px; }
.row > .sp { display: none; }
.row .gain { grid-column: 4; text-align: right; }
.row .gain b { color: var(--up); font-size: 17px; }
.row .gain[data-sort="dl"] b { color: var(--tx); }
.row .gain span { display: block; color: var(--tx-2); font-size: 12px; line-height: 1.45; }
.row .nm, .row .nm small { overflow-wrap: anywhere; }
.row:focus-visible { outline: 2px solid var(--ac); outline-offset: -2px; }
.arrows button:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
.arrows button:disabled { opacity: .35; transform: none; cursor: default; }
.tc, .uc, .it { background: var(--bg-2); border-color: var(--line); }
.tc:hover, .uc:hover, .uc.on, .it:hover { background: #1D1D21; border-color: #514C58; }
.uc .tag, .uc:hover .tag { color: var(--tx-2); }
.it li a:hover { color: var(--ac); }
.arrows button { border-color: var(--line); }
.rail-wrap::before, .rail-wrap::after { width: 56px; }
.foot { background: var(--bg); border-top-color: var(--line); }
.modal {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; color: var(--tx); background: transparent;
  overflow: auto;
}
.modal:not([open]) { display: none; }
.modal::backdrop { background: rgba(7,7,9,.86); backdrop-filter: blur(5px); }
.modal-box {
  width: min(680px, calc(100vw - 32px)); margin: 16vh auto 20px; padding: 16px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2);
}
.query-row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.search-mark { color: var(--ac); font-size: 22px; line-height: 1; }
#q { flex: 1; min-width: 0; padding: 12px 0; border: 0; color: var(--tx); background: transparent; font: 400 16px/1.4 var(--sans); }
#q:focus-visible { outline: none; }
.close-search { flex: 0 0 auto; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--tx-2); font-size: 13px; }
.close-search:hover { color: var(--tx); border-color: var(--ac); }
.results { max-height: min(52vh, 430px); margin-top: 10px; overflow-y: auto; }
.results a { min-height: 43px; align-items: center; padding: 10px 12px; border-radius: 7px; font-size: 14px; }
.results a[aria-selected="true"], .results a:hover, .results a:focus-visible { background: rgba(169,154,232,.16); }
.results small { max-width: 50%; color: var(--tx-2); text-align: right; }
.search-status { min-height: 32px; margin-top: 10px; padding: 8px 12px 0; border-top: 1px solid var(--line); color: var(--tx-2); font-size: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1000px) {
  .block-head { align-items: flex-start; }
  .row { grid-template-columns: 36px minmax(120px,1fr) minmax(0,1.5fr) minmax(140px,.8fr); gap: 12px; }
  .row .nm { grid-column: 2; }
  .row .ds { grid-column: 3; }
  .row > .sp { display: none; }
  .row .gain { grid-column: 4; }
}
@media (min-width: 681px) and (max-width: 1000px) {
  .hero { padding-top: 280px; padding-bottom: 120px; align-content: start; }
  .inspector { position: relative; right: auto; bottom: auto; justify-self: end; width: min(420px, 100%); margin-top: 28px; }
}
@media (max-width: 680px) {
  .nav { padding-top: 12px; padding-bottom: 12px; }
  .search { min-width: 44px; justify-content: center; padding: 0 10px; }
  .search-label { display: inline !important; font-size: 13px; }
  .search kbd { display: none; }
  .hero { min-height: max(100svh, 760px); align-content: start; padding: 90px var(--gut) 52px; }
  h1 { font-size: clamp(34px, 9vw, 44px); line-height: 1.3; }
  h1 span { display: block; white-space: normal; }
  .lede { max-width: 32em; font-size: 15px; line-height: 1.7; }
  .actions { gap: 8px; margin-top: 22px; }
  .actions .btn { min-height: 44px; padding-inline: 13px; font-size: 13px; }
  .picks { position: relative; display: grid; gap: 2px; margin-top: 18px; max-width: 100%; }
  .pick { grid-template-columns: 9px minmax(0,1fr) auto; min-height: 34px; gap: 8px; padding: 0 6px; font-size: 12px; }
  .pick .lb { grid-column: 2; grid-row: 1; font-size: 11px; }
  .pick b { display: none; }
  .pick .v { grid-column: 3; grid-row: 1; font-size: 11px; }
  .inspector { left: var(--gut); right: var(--gut); bottom: 18px; width: auto; padding: 10px 12px; }
  .ins-title { font-size: 16px; }
  .ins-desc { display: none; }
  .ins-num { margin-top: 4px; font-size: 12px; }
  .legend, .hint { display: none; }
  .block { padding: 62px var(--gut) 12px; }
  .block h2 { font-size: 28px; }
  .block-head { align-items: flex-start; gap: 12px; margin-bottom: 16px; }
  .sub { font-size: 12.5px; line-height: 1.65; }
  #plugins .block-head { display: grid; }
  #plugins .rank-controls { justify-items: stretch; }
  #plugins .seg { width: 100%; }
  #plugins .seg button { flex: 1; min-width: 0; min-height: 42px; padding: 5px 6px; font-size: 12.5px; line-height: 1.35; white-space: normal; }
  .rank { display: grid; gap: 10px; border-top: 0; background: transparent; }
  .rank > li { min-width: 0; }
  .row {
    min-height: 0; grid-template-columns: 28px minmax(0,1fr); grid-template-rows: auto auto auto;
    gap: 4px 10px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2);
  }
  .row .no { grid-column: 1; grid-row: 1; align-self: start; padding-top: 2px; font-size: 14px; }
  .row .nm { grid-column: 2; grid-row: 1; font-size: 15px; }
  .row .nm small { margin-top: 2px; font-size: 12px; }
  .row .ds { grid-column: 2; grid-row: 2; font-size: 13px; line-height: 1.5; }
  .row .review-notice { font-size: 12px; }
  .row > .sp { display: none; }
  .row .gain { grid-column: 2; grid-row: 3; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; text-align: left; }
  .row .gain b { font-size: 14px; white-space: normal; }
  .row .gain span { font-size: 12px; text-align: right; }
  .tc .meta { padding: 12px 14px; }
  .results small { max-width: 46%; font-size: 11px; }
  .modal-box { margin-top: max(12vh, 70px); padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.more { margin-top: 22px; }
.more[hidden] { display: none; }
@media (min-width: 1001px) { .inspector { min-height: 258px; } }

/* use-case entry on the home page */
/* ---------- unified row feed (AlphaSignal-style rows) ---------- */
.feed .anchor { position: relative; top: -80px; display: block; height: 0; }
.feed-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 44px; align-items: start; }
.feed-side { position: sticky; top: 88px; }
.feed-label { margin: 0 0 10px; font: 700 12.5px/1.4 var(--sans); letter-spacing: 0.12em; color: var(--tx-2); }
.feed-cats-label { margin-top: 28px; }
.feed-cats-toggle { display: none; }
.feed-filters button { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--tx-2); text-align: left; transition: color 0.25s var(--ease), background-color 0.25s var(--ease); }
.feed-filters button:hover { color: var(--tx); background: var(--bg-2); }
.feed-filters button[aria-pressed="true"] { color: var(--tx); background: var(--bg-3); font-weight: 700; }
.feed-filters .n { font: 500 12.5px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; color: var(--tx-2); font-weight: 400; }
.feed-filters button:focus-visible, .feed-tabs button:focus-visible, .feed-cats-toggle:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }

.feed-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; min-height: 44px; border-bottom: 1px solid var(--line); }
.feed-tabs { display: flex; gap: 26px; }
.feed-tabs[hidden] { display: none; }
.feed-tabs button { position: relative; padding: 10px 0 12px; font-size: 15px; color: var(--tx-2); transition: color 0.25s var(--ease); }
.feed-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ac-2); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.feed-tabs button:hover { color: var(--tx); }
.feed-tabs button[aria-pressed="true"] { color: var(--tx); font-weight: 700; }
.feed-tabs button[aria-pressed="true"]::after { transform: scaleX(1); }
.feed-count { margin: 0 0 12px auto; font: 500 13px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; color: var(--tx-2); }
.feed .rank-method { margin: 12px 0 4px; }
.feed .rank-method[hidden] { display: none; }

.feed-rows > li { border-bottom: 1px solid var(--line); }
.feed-row {
  position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 20px; align-items: center; gap: 20px;
  padding: 22px 14px; margin: 0 -14px; border-radius: 14px;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feed-row:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.feed-score { display: flex; flex-direction: column; gap: 4px; font: 500 15px/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace; font-variant-numeric: tabular-nums; color: var(--tx); }
.feed-score i { font-style: normal; font-size: 12px; }
.feed-score.up i { color: var(--up); }
.feed-score.star i { color: var(--ac-2); }
.feed-score.src { font-size: 12.5px; letter-spacing: 0.08em; color: var(--tx-2); }
.guides .feed-score { color: var(--tx-2); }
.feed-body { min-width: 0; display: block; }
.feed-title { display: block; font-size: 20px; line-height: 1.5; font-weight: 700; color: var(--tx); }
.feed-title b { font-weight: 700; }
.feed-summary { font-weight: 400; color: var(--tx-2); }
.feed-row .review-notice { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; padding: 3px 10px; border: 1px solid rgba(233, 183, 164, 0.55); border-radius: 999px; font-size: 12.5px; color: var(--use); }
.feed-row .review-checked-date { color: var(--tx-2); }
.feed-meta {
  display: block; margin-top: 8px; overflow: hidden; white-space: nowrap; font-size: 13.5px; letter-spacing: 0.06em; color: var(--tx-2);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}
.feed-meta b { font-weight: 700; color: var(--ac-2); }
.feed-row.theme .feed-meta b { color: var(--theme); }
.feed-row.use .feed-meta b { color: var(--use); }
.feed-shot { display: block; width: 216px; aspect-ratio: 216 / 136; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-3); }
.feed-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; transition: transform 0.6s var(--ease); }
.feed-arrow { color: var(--ac-2); opacity: 0; transform: translateX(-6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.feed-row:focus-visible .feed-arrow { opacity: 1; transform: none; }
@media (hover: hover) {
  .feed-row:hover { background: var(--bg-2); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
  .feed-row:hover .feed-arrow { opacity: 1; transform: none; }
  .feed-row:hover .feed-shot img { transform: scale(1.03); }
}
.feed .more { margin-top: 22px; }
.feed .news { margin-top: 28px; }
#usecases .feed-rows { border-top: 1px solid var(--line); }

@media (max-width: 1000px) {
  .feed-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .feed-side { position: relative; top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .feed-side .feed-label { display: none; }
  .feed-types { flex: 1 1 100%; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); padding-right: 36px; }
  .feed-types::-webkit-scrollbar { display: none; }
  .feed-types button { flex: 0 0 auto; width: auto; }
  .feed-cats-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14.5px; color: var(--tx-2); }
  .feed-cats-toggle::after { content: "▾"; font-size: 11px; }
  .feed-cats-toggle[aria-expanded="true"] { color: var(--tx); border-color: var(--ac-2); }
  .feed-cats { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 6; padding: 8px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
  .feed-cats.open { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px; max-height: min(70vh, 560px); overflow-y: auto; scrollbar-width: none; }
  .feed-cats::-webkit-scrollbar { display: none; }
  .feed-tabs { gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .feed-tabs::-webkit-scrollbar { display: none; }
  .feed-tabs button { flex: 0 0 auto; font-size: 14px; }
}
@media (max-width: 680px) {
  .feed-row { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 18px 10px; margin: 0 -10px; align-items: start; }
  .feed-title { font-size: 18px; }
  .feed-meta { font-size: 12.5px; }
  .feed-shot { grid-column: 2; width: 100%; aspect-ratio: auto; height: 120px; }
  .feed-arrow { display: none; }
  .feed-score { font-size: 14px; padding-top: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .feed-row, .feed-arrow, .feed-shot img, .feed-tabs button::after { transition: none; }
  .feed-row:hover { transform: none; }
}

/* mobile hero: the graph gets its own band between the picks and the inspector instead of the leftover gap */
@media (max-width: 680px) {
  .hero { --graph-h: clamp(300px, 88vw, 380px); min-height: 0; padding-bottom: 28px; }
  .inspector { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin-top: var(--graph-h); }
}

/* shared chrome for every page: current section, footer entrances, static rows */
.links a[aria-current] { color: var(--tx); }
a.search { text-decoration: none; }
.foot-grid { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 18px 40px; margin-bottom: 8px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 15px; }
.foot-nav a { padding: 6px 0; color: var(--tx-2); transition: color 0.25s var(--ease), transform 0.25s var(--ease); }
.foot-nav a:hover, .foot-nav a:focus-visible { color: var(--tx); transform: translateX(2px); }
.feed-row.plain { grid-template-columns: 84px minmax(0, 1fr) 20px; }
.feed-rows.static { margin-top: 18px; border-top: 1px solid var(--line); }
.feed-rows.static .feed-score { flex-direction: row; align-items: baseline; gap: 6px; }
.feed-lead { display: block; margin-top: 4px; font-size: 15.5px; line-height: 1.7; color: var(--tx-2); }
.feed-exits { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 680px) {
  .feed-row.plain { grid-template-columns: 64px minmax(0, 1fr); }
  .feed-rows.static .feed-score { flex-direction: column; gap: 2px; }
  .foot-grid { flex-direction: column; }
}
.feed-rows.static .feed-score i { font-size: 13px; color: var(--ac-2); }
@media (max-width: 680px) {
  /* static rows show the whole meta line: it wraps instead of being cut at the edge */
  .feed-rows.static .feed-meta { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.7; }
}

.start-kicker { margin: 0 0 6px; font-size: 14px; color: var(--muted, inherit); letter-spacing: .04em; }
