/* Shared identity for the directory. Light mode keeps the same print inks and panel geometry. */
:root {
  --bg:#0a101a; --surface:#131e2c; --surface-soft:#111b2a; --rail:#0a121f;
  --header:#0b1220; --text:#edf6f9; --muted:#b6c4d4; --faint:#8e9fb3;
  --line:#304153; --field:#090f1a; --accent:#69eee6; --accent-fill:#eaff00;
  --accent-text:#131800; --active-bg:#172d34; --button:#202e3d; --focus:#66fff1;
  --cy-yellow:#eaff00; --cy-pink:#ff4c98; --cy-cyan:#60f6ef;
  --cy-rule:rgb(110 180 197 / .11); --cy-grid:rgb(111 164 197 / .048);
  --cy-void:#101623;
  --cy-type:"Barlow Condensed","Arial Narrow","Bahnschrift Condensed","Segoe UI","Microsoft JhengHei",sans-serif;
}
:root[data-theme="light"] {
  --bg:#edf2f4; --surface:#fff; --surface-soft:#f8fbfc; --rail:#e6eef1; --header:#f5fafb;
  --text:#162433; --muted:#405469; --faint:#597080; --line:#99aeb8; --field:#fff;
  --accent:#006f75; --accent-fill:#e1f500; --accent-text:#172106; --active-bg:#daebe8;
  --button:#dbe6e9; --focus:#00656d; --cy-rule:rgb(33 91 101 / .14); --cy-grid:rgb(33 91 101 / .055);
  --cy-void:#d9e5e9;
}
body.ybs-directory {
  background-color:var(--bg);
  background-image:radial-gradient(ellipse at 88% 7%,rgb(115 48 136 / .08),transparent 38%),
    linear-gradient(90deg,var(--cy-grid) 1px,transparent 1px), linear-gradient(var(--cy-grid) 1px,transparent 1px);
  background-size:auto,36px 36px,36px 36px;
}
.mast { background:var(--header); border-bottom-color:var(--line); gap:9px; }
.brand { gap:10px; min-width:0; }
.brand-mark {
  display:grid; width:41px; height:41px; background:var(--cy-yellow); border-radius:0;
  clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);
  padding:1px;
}
.brand-mark img {
  width:100%; height:100%; object-fit:cover; background:#101420;
  clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);
}
.brand-word { font-family:var(--cy-type); font-size:22px; font-weight:900; font-style:italic; letter-spacing:-1.15px; }
.brand-word small { font-size:11px; font-style:normal; font-weight:650; letter-spacing:.04em; }
.channel-nav a { font-size:13px; letter-spacing:.04em; }
.channel-nav a[aria-current]::after { height:2px; background:var(--accent); border-radius:0; }
.menu-trigger:hover { color:var(--accent); }
.rail { background-image:linear-gradient(160deg,transparent 62%,var(--cy-rule)); }
.section-nav { padding-top:17px; }
.page-body { padding-inline:clamp(16px,2.4vw,42px); }
.directory-section,.featured { margin-bottom:clamp(24px,3vw,40px); }
.section-title { gap:10px; letter-spacing:.06em; }
.section-title .ui-icon { color:var(--accent); }
.switch-tabs {
  border:0; border-radius:0; background:transparent;
  padding:0; gap:4px; margin-bottom:15px;
}
.switch-tabs button {
  min-height:32px; padding:5px 16px; font-weight:650; background:var(--button);
  border-radius:0; clip-path:polygon(6px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 6px);
}
.switch-tabs button[aria-pressed="true"] { background:var(--accent-fill); color:var(--accent-text); }
.switch-tabs button:focus-visible, .engines button:focus-visible { box-shadow:inset 0 0 0 2px var(--focus); }
.page-footer { border-top:1px solid var(--line); color:var(--muted); }
.page-tools .icon-btn { border-radius:0; border-color:var(--line); background:var(--surface); color:var(--text); }

/* Keep the directory searchable while allowing both the city and the live canvas to be seen. */
.search-hero {
  --hero-cut:18px;
  position:relative; isolation:isolate; overflow:hidden; display:grid;
  place-items:center start; margin:clamp(14px,1.7vw,29px) clamp(16px,2.4vw,42px) clamp(25px,2.6vw,40px);
  min-height:clamp(286px,25vw,425px); padding:clamp(26px,3.4vw,62px);
  background:#091621; color:#f3fafe;
  clip-path:polygon(var(--hero-cut) 0,calc(100% - var(--hero-cut)) 0,100% var(--hero-cut),100% calc(100% - var(--hero-cut)),calc(100% - var(--hero-cut)) 100%,var(--hero-cut) 100%,0 calc(100% - var(--hero-cut)),0 var(--hero-cut));
}
.cy-hero-picture {
  position:absolute; z-index:-4; pointer-events:none; inset:-1.5% 0;
  width:100%; height:103%; object-fit:cover; object-position:72% 50%;
}
.search-hero > .directory-backdrop {
  z-index:-3; opacity:.5; mix-blend-mode:screen;
  mask-image:linear-gradient(95deg,#000 0%,rgb(0 0 0 / .85) 18%,rgb(0 0 0 / .38) 48%,transparent 76%);
}
.search-hero > .directory-backdrop:is([data-scene="colors"],[data-scene="orbits"],[data-scene="sunset"]) { opacity:.32; }
.search-hero::before {
  content:""; position:absolute; inset:0; z-index:-2; pointer-events:none;
  background:linear-gradient(90deg,rgb(3 10 18 / .47),rgb(3 10 18 / .12) 56%,transparent 75%),
    linear-gradient(0deg,rgb(3 10 18 / .52),transparent 28%);
}
.search-hero::after {
  content:""; pointer-events:none; position:absolute; inset:0; border-block:1px solid rgb(109 243 235 / .48);
  background:linear-gradient(118deg,transparent 42%,var(--cy-yellow) 44% 57%,transparent 59%) left 24px bottom / 9px 3px no-repeat,
    linear-gradient(90deg,var(--cy-yellow),var(--cy-yellow)) left 33px bottom / 40px 3px no-repeat,
    linear-gradient(90deg,var(--cy-pink),transparent) right 24px top / 110px 2px no-repeat;
}
.search-hero .search-box { width:min(63%,760px); min-width:0; position:relative; z-index:1; }
.cy-hero-title {
  margin:0 0 clamp(13px,1.4vw,24px); color:#f2f9fa; font-family:var(--cy-type);
  font-weight:900; line-height:.98; letter-spacing:-.04em; font-size:clamp(38px,5vw,86px);
}
.cy-hero-title span {
  display:inline-block; text-transform:uppercase; color:var(--cy-yellow); font-style:italic;
  font-family:"Archivo Black","Arial Black",var(--cy-type); letter-spacing:-.075em;
  text-shadow:2px 2px 0 #143340;
}
.cy-hero-title b { display:inline-block; font-size:.5em; font-weight:850; letter-spacing:.02em; }
.cy-channel-title { font-size:clamp(27px,3.2vw,55px); letter-spacing:.015em; }
.search-hero .search-tabs, .search-hero .engines { justify-content:flex-start; gap:clamp(4px,.8vw,15px); }
.search-hero .search-tabs button { min-height:29px; padding:2px 4px 7px; font-size:clamp(12px,.95vw,15px); }
.search-hero .search-tabs button[aria-pressed="true"] { color:var(--cy-yellow); }
.search-hero .search-tabs button[aria-pressed="true"]::after { height:2px; left:3px; right:3px; bottom:1px; border-radius:0; background:var(--cy-yellow); }
.search-hero .search-form {
  border:1px solid rgb(114 234 232 / .77); border-left:3px solid var(--cy-cyan); border-radius:1px;
  background:rgb(4 14 26 / .94); margin:8px 0 3px; box-shadow:0 4px 17px rgb(0 0 0 / .25);
}
.search-hero .search-form input { height:49px; padding-left:15px; color:#f1ffff; font-size:14px; }
.search-hero .search-form input::placeholder { color:#b7c9d4; }
.search-hero .search-form button {
  width:53px; height:39px; margin:4px; background:var(--cy-yellow); color:#101720; border-radius:0;
  clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);
}
.search-hero .search-form button:hover { background:#fff; color:#0e282c; }
.search-hero .engines { gap:3px; }
.search-hero .engines button { border-radius:1px; }
.search-hero .engines button[aria-pressed="true"] { color:var(--cy-cyan); background:rgb(4 21 34 / .86); }
@media (max-width:1000px) {
  .search-hero .search-box { width:69%; }
  .cy-hero-picture { object-position:73% 50%; }
}
@media (max-width:800px) {
  .brand { flex:0 0 auto; padding:0 8px 0 13px; }
  .brand-mark { width:33px; height:33px; }
  .brand-word { font-size:19px; }
  .channel-nav { gap:0; }
  .search-hero { min-height:273px; padding:26px; }
  .search-hero .search-box { width:68%; }
}
@media (max-width:600px) {
  .search-hero {
    margin:11px 11px 22px; min-height:285px; padding:20px 15px 13px;
    place-items:end start; --hero-cut:12px;
  }
  .cy-hero-picture { object-position:80% 24%; }
  .search-hero::before { background:linear-gradient(0deg,#07111e 0%,rgb(6 15 29 / .86) 25%,rgb(3 12 20 / .12) 70%),linear-gradient(90deg,rgb(4 14 25 / .54),transparent 76%); }
  .search-hero .search-box { width:100%; }
  .cy-hero-title { font-size:clamp(36px,9vw,49px); margin-bottom:11px; }
  .cy-channel-title { font-size:30px; }
  .search-hero .search-form input { height:42px; }
  .search-hero .search-form button { width:45px; height:34px; }
  .search-hero .search-tabs { justify-content:space-between; gap:3px; }
  .search-hero .search-tabs button { flex:none; font-size:12px; min-height:26px; padding-inline:2px; }
  .search-hero .engine-groups { min-height:26px; }
  .search-hero .engines { justify-content:flex-start; }
  .page-body { padding-inline:12px; }
}
