/*
 * Supported links page (supported-links/index.php).
 * Loaded through site_page page_css after style.css, so it reuses the shared
 * tokens, the .tray/.card trace look and the .bypass input bar.
 */

.sl-hero-art { width: 100%; height: auto; overflow: visible; }
.sl-hero-art-compact { display: none; }

/* ---------- Directory: filter column and domain grid ---------- */
.sl-directory {
  display: grid; grid-template-columns: 264px minmax(0, 1fr);
  gap: 48px; align-items: start; padding-top: 56px;
}

.sl-side { position: sticky; top: 12px; }
.sl-side-title { font-size: .95rem; font-weight: 500; color: var(--slate); letter-spacing: -.01em; padding: 0 14px 10px; }

.sl-filter { display: grid; gap: 4px; }
.sl-filter a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 10px 11px 14px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 500; font-size: .95rem; color: #33373f;
  transition: background-color .15s, border-color .15s, color .15s;
}
.sl-filter a > span { display: inline-flex; align-items: center; min-width: 0; white-space: pre; }
.sl-filter a:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
.sl-filter a[aria-current] { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: 0 10px 24px -18px rgba(23, 22, 28, .35); }
.sl-filter b {
  min-width: 34px; padding: 2px 8px; border-radius: 999px; text-align: center;
  background: var(--mist); color: var(--slate); font-weight: 500; font-size: .8rem; font-variant-numeric: tabular-nums;
}
.sl-filter a[aria-current] b { background: var(--ink); color: #fff; }
.sl-filter b.is-zero { opacity: .55; }
.sl-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-right: 10px; }
.sl-dot-violet { background: var(--violet); }
.sl-dot-mint { background: var(--mint-strong); }

.sl-popular { margin: 22px 0 0; padding: 20px 14px 0; border-top: 1px solid var(--line); }
.sl-popular h3 { font-size: .9rem; font-weight: 500; color: var(--slate); letter-spacing: -.01em; }
.sl-key { display: inline-block; vertical-align: -1px; width: 12px; height: 12px; margin-right: 8px; border-radius: 4px; background: linear-gradient(135deg, var(--violet) 50%, var(--mint-ink) 50%); }
.sl-popular ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sl-popular a,
.sl-empty-popular a {
  display: inline-block; padding: 6px 11px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font: 500 .82rem var(--mono); letter-spacing: -.02em; color: #33373f;
  transition: border-color .15s, color .15s;
}
.sl-empty-popular a:hover,
.sl-popular a:hover { border-color: var(--violet); color: var(--ink); }

.sl-main { min-width: 0; }

/* Search bar: shown by supported.js. The wrapper sticks at the very top on a
   mist band, so no tiles show above the bar while the list scrolls. */
.sl-sticky {
  position: sticky; top: 0; z-index: 4;
  margin-top: -12px; padding: 12px 0 8px;
}
/* The band only fills in once stuck, so it never covers the stage shadow. */
.sl-sticky.is-stuck { background: var(--mist); }
.sl-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, .86); border: 1px solid #e9eded;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px -28px rgba(23, 22, 28, .35);
}
.sl-status { color: var(--slate); font-size: .92rem; min-width: 0; }
.sl-status b { color: var(--ink); font-weight: 500; }
.sl-search {
  display: flex; align-items: center; gap: 8px; width: min(380px, 100%);
  padding: 0 10px 0 14px; border-radius: 12px;
  background: var(--mist); border: 1px solid transparent;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.sl-search svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.sl-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: 12px 4px; font: 500 .95rem var(--mono); letter-spacing: -.01em; color: var(--ink);
}
.sl-search input::placeholder { color: var(--faint-text); font-family: var(--sans); font-weight: 400; }
.sl-search input::-webkit-search-cancel-button { cursor: pointer; }
.sl-search:focus-within { background: #fff; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(123, 92, 240, .14); }
.sl-search:focus-within svg { color: var(--violet); }
.sl-search:focus-within .kbd { display: none; }

.sl-group { padding-top: 28px; scroll-margin-top: 80px; }
.sl-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; }
.sl-group-head h2 { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.sl-group-head h2 span {
  padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.sl-tone-violet .sl-group-head h2 span { background: var(--violet-soft); color: #4f36c4; }
.sl-tone-mint .sl-group-head h2 span { background: var(--mint-soft); color: var(--mint-ink); }
.sl-group-head p { color: var(--slate); font-size: .94rem; max-width: 62ch; text-wrap: pretty; }

.sl-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 16px; }
.sl-tile {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  padding: 8px 8px 8px 8px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.sl-mono {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: grid; place-items: center; font-weight: 600; font-size: .8rem;
}
.sl-tone-violet .sl-mono { background: var(--violet-soft); color: #4f36c4; }
.sl-tone-mint .sl-mono { background: var(--mint-soft); color: var(--mint-ink); }
.sl-domain {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 .86rem var(--mono); letter-spacing: -.02em; color: #2b2a33;
}
.sl-domain mark { background: var(--violet-soft); color: var(--ink); border-radius: 3px; padding: 0 1px; }
/* Most requested: a solid monogram instead of a badge, so long domains keep their room. */
.sl-tone-violet .is-popular .sl-mono { background: var(--violet); color: #fff; }
.sl-tone-mint .is-popular .sl-mono { background: var(--mint-ink); color: #fff; }
.sl-tile.is-popular { border-color: #d6dcdc; }
/* Show all / show fewer, added by supported.js when a group has more than 10 tiles. */
.sl-more {
  margin-top: 8px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .6); border: 1px solid var(--line);
  font-weight: 500; font-size: .92rem; color: var(--ink);
  transition: background-color .15s, border-color .15s, color .15s;
}
.sl-more:hover { background: #fff; border-color: var(--violet); color: var(--violet); }
.sl-more svg { width: 16px; height: 16px; transition: transform .2s; }
.sl-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.sl-tile:target { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(123, 92, 240, .14); }

.sl-empty {
  margin-top: 20px; display: grid; gap: 22px;
  padding: 28px; border-radius: var(--radius-md);
  background: #fff; border: 1px solid var(--line);
}
.sl-empty-head { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; align-items: center; }
.sl-empty-head svg { width: 52px; height: 52px; }
.sl-empty-bar { margin-top: 0; background: var(--mist); border-color: transparent; }
.sl-empty-bar:focus-within { background: #fff; }
.sl-empty-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.sl-empty-popular ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.sl-empty p { color: var(--slate); font-size: .94rem; text-wrap: pretty; }
.sl-empty .sl-empty-title { color: var(--ink); font-weight: 600; font-size: 1.08rem; letter-spacing: -.02em; margin-bottom: 2px; }

.sl-else {
  margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: center;
  padding: 28px 32px; border-radius: var(--radius-md);
  background: linear-gradient(180deg, #f0fbf7, #f7fbfa); border: 1px solid #d8efe7;
}
.sl-else h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.sl-else p { margin-top: 6px; color: var(--slate); font-size: .96rem; max-width: 78ch; text-wrap: pretty; }

/* ---------- Help: tips next to a bypass card ---------- */
.sl-help {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 64px; align-items: center; padding: 64px 40px 0;
}
.sl-h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -.04em; line-height: 1.1; font-weight: 600; max-width: 18ch; }
.sl-tips { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.sl-tips li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.sl-check { width: 30px; height: 30px; margin-top: 2px; }
.sl-tips strong { display: block; font-weight: 500; letter-spacing: -.01em; margin-top: 5px; }
.sl-tips span { display: block; margin-top: 2px; color: var(--slate); font-size: .95rem; max-width: 52ch; }

.sl-tray { max-width: 560px; padding-bottom: 14px; }
.sl-cta-card { min-height: 0; padding: 24px 26px 22px; }
.sl-cta-title { margin-top: 14px; font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.18; letter-spacing: -.035em; font-weight: 600; max-width: 20ch; }
.sl-bar { margin-top: 20px; max-width: none; box-shadow: none; }
.sl-bar input { padding: 14px 6px; font-size: .98rem; }
.sl-cta-card .time { font-family: var(--sans); font-size: .8rem; }
.sl-cta-aside { margin-top: 16px; color: var(--slate); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sl-directory { grid-template-columns: 228px minmax(0, 1fr); gap: 32px; }
  .sl-help { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sl-tray { justify-self: start; width: 100%; }
}

@media (max-width: 900px) {
  .sl-directory { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 40px; }
  .sl-side { position: static; }
  .sl-side-title { padding: 0 0 12px; }
  .sl-filter { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .sl-filter::-webkit-scrollbar { display: none; }
  .sl-filter { overflow: visible; margin: 0; padding: 0; flex-wrap: wrap; }
  .sl-filter a { flex: none; gap: 8px; background: #fff; border-color: var(--line); padding: 6px 6px 6px 13px; border-radius: 999px; font-size: .9rem; }
  .sl-filter-tail,
  .sl-filter .sl-dot { display: none; }
  .sl-filter a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
  .sl-filter a[aria-current] b { background: rgba(255, 255, 255, .16); }
  .sl-popular { margin-top: 14px; padding: 0; border: 0; }
  .sl-popular h3 { font-size: .86rem; }
  .sl-popular ul { margin-top: 8px; }
}

@media (max-width: 600px) {
  .sl-hero-art-full { display: none; }
  .sl-hero-art-compact { display: block; }
}

@media (max-width: 760px) {
  .sl-sticky { margin-top: -8px; padding: 8px 0 6px; }
  .sl-toolbar { flex-direction: column-reverse; align-items: stretch; gap: 6px; padding: 8px; border-radius: 16px; }
  .sl-status { padding: 0 6px 2px; font-size: .86rem; }
  .sl-search { width: 100%; }
  .sl-search .kbd { display: none; }
  .sl-search input { font-size: 1rem; }
  .sl-group { padding-top: 24px; }
  .sl-group-head h2 { font-size: 1.15rem; }
  .sl-group-head p { font-size: .9rem; }
  .sl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
  .sl-tile { gap: 8px; padding: 6px 8px 6px 6px; border-radius: 12px; }
  .sl-mono { width: 26px; height: 26px; border-radius: 8px; font-size: .74rem; }
  .sl-domain { font-size: .82rem; }
  .sl-tile.is-popular { border-color: #bfe9db; background: #f6fcfa; }
  .sl-empty { gap: 16px; padding: 20px; }
  .sl-empty-head { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
  .sl-empty-head svg { width: 40px; height: 40px; }
  .sl-else { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; margin-top: 24px; }
  .sl-else .btn-ink { justify-self: start; }
  .sl-help { padding: 40px 4px 0; gap: 28px; }
  .sl-tips { margin-top: 20px; }
  .sl-tray { padding: 10px; border-radius: 26px; }
  .sl-cta-card { padding: 18px 16px 16px; }
}
