/* Content Studio, the public side. The colours, fonts, cards and buttons are
   ScrollBoy's, so a new site looks like one of the family on the first day.
   --accent is written onto the html element per site, so one stylesheet
   serves every domain. */
:root{
  --chrome:#151a21; --bg:#0b0e13; --panel:#151a21; --border:#232a33;
  --accent:#e8471a; --accent2:#ff5a2a; --brandb:var(--accent);
  /* The header's controls, ScrollBoy's exact values: a flat chip, a raised
     button, the blue it turns under the pointer, the accent when it is on. */
  --ctl:#323d4c; --ctlflat:#28313d; --ctlhover:#3a6ea8; --ctlon:var(--accent);
  --sidefs:1rem; --mainpad:20px;
  --muted:#96a0ae; --text:#eaecef; --blue:#5b9cf5;
  --chip:#1b2330; --chip2:#222c3a; --chipbd:#2c3745;
  --font:'Inter','Inter fb',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --btnfont:'Open Sans','Open Sans fb',var(--font); --btnweight:300;
  --mono:ui-monospace,SFMono-Regular,'SF Mono',Menlo,Consolas,'Liberation Mono',monospace;
  --hdr:66px; --pad:20px; --sidew:300px;
  /* Set per site by the Look page. The values here are only what a page
     falls back to if that block never arrives. */
  --asp:3/4; --maxw:100%; --gap:14px; --rad:12px;
  --grid:repeat(auto-fill,minmax(200px,1fr));
  /* The alert bar's height, written on by its script while it is up, so the
     sticky header and rail come to rest under it instead of behind it. */
  --cs-bar:0px;
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--chrome);color:var(--text);font-family:var(--font);font-size:15px;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  min-height:100vh;display:flex;flex-direction:column;
}
/* The page runs to the width the Look page sets, middled on a wider screen. */
.top,.body,.foot{width:100%;max-width:var(--maxw);margin-left:auto;margin-right:auto}
img{max-width:100%}
a{color:var(--text);text-decoration:none}
a:hover{text-decoration:none}

/* ── The header, ScrollBoy's, rule for rule ──────────────────────────────── */
.top{
  position:sticky;top:var(--cs-bar);z-index:40;display:flex;align-items:center;gap:16px;
  height:var(--hdr);padding:0 16px 0 17px;background:var(--chrome);
}
.navtabs,.auth{flex:0 0 auto}
.navtabs{display:flex;gap:8px}
.navtabs a{
  background:#2b4d78;border:none;outline:none;color:#fff;border-radius:9px;
  padding:9px 15px;font:inherit;font-family:var(--btnfont);font-size:.84rem;font-weight:var(--btnweight);
  letter-spacing:.03em;cursor:pointer;display:flex;align-items:center;gap:7px;transition:background .12s;
}
.navtabs a:hover{background:var(--ctlhover)}
.navtabs a.on{background:var(--ctlon)}
.navtabs a.on:hover{background:var(--accent2)}
.navtabs svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.navtabs .navico{display:none}
.navcount{font-size:.7rem;font-weight:var(--btnweight);letter-spacing:0;background:rgba(0,0,0,.42);color:#fff;border-radius:20px;padding:0 7px 2px}
.navtabs a:focus-visible{outline:2px solid var(--brandb);outline-offset:2px}

/* The wordmark takes the rail's width and stands over it, so the brand is a
   block of its own rather than the first item in a row of controls. */
.brandblock{
  flex:0 0 calc(var(--sidew) + var(--mainpad) - 17px - 16px);
  min-width:0;display:flex;flex-direction:column;gap:0;padding-right:12px;
}
.brandlink{display:block;min-width:0;text-decoration:none}
/* The logo's letters start 16px down, as the header's buttons do: centred,
   the block stood 3px higher (the owner's eye, build 189). */
@media (min-width:1121px){.brandblock{position:relative;top:3px}}
.brandlink img{display:block;max-height:40px;width:auto}
/* The brand stands on the rail's own column: the rail's width less its
   padding either side and its scrollbar gutter, so the logo, the line under
   it and the search box share one left edge and one right edge. */
.wordmark,.tagline,.brandlink{max-width:calc(var(--sidew) - 46px)}
.wordmark{display:block;width:100%;height:auto;overflow:visible}
.wordmark text{font-family:'Faster One','Wordmark',Impact,'Haettenschweiler','Arial Black',sans-serif}
.wm-a{fill:var(--text)}
.wm-b{fill:var(--brandb)}
h1.tagline{padding:0}
.tagline{
  display:block;width:100%;margin:7px 0 0;
  font-family:var(--btnfont);font-size:12.5px;font-weight:var(--btnweight);line-height:1.15;letter-spacing:.08em;color:#c3cad4;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

/* The right-hand buttons: the same three shapes ScrollBoy's Log in, Register
   and Support have, filled with whatever the owner puts on the Sites page. */
.auth{margin-left:auto;display:flex;align-items:center;gap:10px}
.authbtn{
  font:inherit;font-family:var(--btnfont);font-size:.82rem;font-weight:var(--btnweight);letter-spacing:.03em;
  border:none;border-radius:10px;padding:9px 16px;cursor:pointer;color:#fff;
  display:flex;align-items:center;gap:8px;white-space:nowrap;text-decoration:none;transition:filter .15s,transform .05s;
}
.authbtn:hover{filter:brightness(1.1);text-decoration:none}
.authbtn:active{transform:translateY(1px)}
.authbtn.blue{background:linear-gradient(135deg,#47c2ff,#02507e);box-shadow:0 2px 12px rgba(2,132,199,.28)}
.authbtn.orange{background:linear-gradient(135deg,#ff7a3d,#c2340e);box-shadow:0 2px 12px rgba(232,71,26,.3)}
.authbtn.grey{background:#5b7191}
.authbtn.grey:hover{filter:brightness(1.16)}

/* Columns and Ratio: two rows of buttons behind one button, which opens to
   show them, or laid flat in the header when there is room for both. */
.viewset{display:flex;align-items:center;justify-content:safe center;flex:1;min-width:0}
.viewdrop{position:relative}
.viewbtn{
  display:flex;align-items:center;gap:9px;height:34px;padding:0 11px 0 12px;
  background:var(--ctl);border:none;border-radius:9px;color:#fff;font:inherit;font-family:var(--btnfont);font-size:.82rem;
  font-weight:var(--btnweight);letter-spacing:.03em;white-space:nowrap;cursor:pointer;transition:background .12s;
}
.viewbtn:hover,.viewdrop.open .viewbtn{background:var(--ctlhover)}
.viewbtn-ico{display:flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px}
.viewbtn-car{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.viewdrop.open .viewbtn-car{transform:rotate(180deg)}
.viewpanel{
  position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);z-index:70;
  display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:12px;
  background:var(--panel);box-shadow:0 16px 36px rgba(0,0,0,.55);
}
.viewpanel[hidden]{display:none}
.viewset.flat .viewbtn{display:none}
.viewset.flat .viewdrop{display:flex;justify-content:center;min-width:0}
.viewset.flat .viewpanel{position:static;transform:none;flex-direction:row;align-items:center;gap:16px;padding:0;background:none;box-shadow:none;z-index:auto}
.btnrow{display:flex;gap:5px;flex-shrink:0}
.rowlb{
  display:flex;align-items:center;height:34px;padding:0 12px;border-radius:9px;background:var(--ctlflat);color:#fff;
  font-family:var(--btnfont);font-size:.75rem;font-weight:var(--btnweight);letter-spacing:.03em;white-space:nowrap;user-select:none;
}
.btnrow button{
  width:34px;height:34px;flex:0 0 34px;padding:0;border-radius:9px;cursor:pointer;background:var(--ctl);border:none;color:#fff;
  font-family:var(--mono);font-size:.78rem;display:flex;align-items:center;justify-content:center;transition:background .12s;
}
.btnrow button:hover{background:var(--ctlhover)}
.btnrow button.on{background:var(--ctlon)}
.shapeico{display:block;background:currentColor;border-radius:2px}
.masonryico{display:block;width:18px;height:18px;fill:currentColor}
/* One and two columns are a phone's choices; the desk goes from three to nine. */
.headmenu #colrow button:nth-child(-n+3){display:none}
.viewbtn-n,.mtools,.burger,.drawerx,#scrim{display:none}
.headmenu{display:contents}

/* Narrow: the tabs, the panel and the buttons go behind a burger. */
.burger{
  flex:0 0 auto;width:38px;height:34px;border:none;border-radius:9px;background:var(--ctlflat);cursor:pointer;
  padding:0 9px;flex-direction:column;justify-content:center;gap:4px;
}
.burger span{display:block;height:2px;background:#fff;border-radius:2px;transition:transform .16s,opacity .16s}
body.menuopen .burger{background:var(--ctlon)}
body.menuopen .burger span:nth-child(1){transform:translateY(6px) rotate(45deg)}
body.menuopen .burger span:nth-child(2){opacity:0}
body.menuopen .burger span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
@media (max-width:1120px){
  .top{gap:12px;padding:0 14px}
  .burger{display:flex;margin-left:auto}
  .headmenu{display:none}
  body.menuopen .headmenu{
    display:flex;flex-direction:column;align-items:stretch;gap:10px;position:absolute;top:var(--hdr);left:0;right:0;z-index:60;
    background:var(--chrome);padding:14px 16px 18px;box-shadow:0 14px 30px rgba(0,0,0,.5);
  }
  body.menuopen #scrim{display:block;position:fixed;inset:0;z-index:35;background:rgba(0,0,0,.86)}
  .navtabs{flex-direction:column;gap:8px}
  .navtabs a{justify-content:flex-start;padding:17px 14px;font-size:.92rem}
  .navtabs .navico{display:flex}
  .auth{margin-left:0;flex-direction:column;align-items:stretch;gap:10px}
  .authbtn{justify-content:flex-start;padding:22px 16px}
  .authbtn.flat{height:auto;padding:17px 14px}
  .hsearch{height:46px}
  .hsearch input{flex:1;width:auto;font-size:1rem}
  .hsearch button{flex-basis:52px;width:52px}
  .viewset{flex:0 0 auto}
  .viewbtn{width:100%;justify-content:flex-start;height:44px}
  .viewpanel{position:static;transform:none;width:100%;box-shadow:none;background:var(--bg);margin-top:8px;align-items:center}
  .viewpanel .btnrow{flex-wrap:wrap;justify-content:center}
  .headmenu #colrow button:nth-child(-n+3){display:flex}
  .headmenu #colrow button:nth-child(10){display:none}
  .brandblock{flex:1 1 auto;padding-right:0}
  .wordmark,.tagline,.brandlink{max-width:220px}
}
@media (max-width:560px){
  .wordmark,.brandlink{max-width:150px}
  .tagline{display:none}
}

/* Header, then the rail and the results side by side under it. */
.body{display:flex;flex:1;min-height:0;align-items:flex-start}
/* With the rail: a grid of two columns, the rail down the whole of the left
   one and the results over the footer in the right, so the rail stays put
   under the header right down to the foot of the page (the owner, 20
   November 2026: it rose away over the banners when it stood beside the
   results alone). */
@media (min-width:861px){
  .body{display:grid;grid-template-columns:var(--sidew) minmax(0,1fr);grid-template-rows:1fr auto;align-items:start}
  .body > .side{grid-column:1;grid-row:1 / span 2;width:var(--sidew)}
  .body > .main,.body > .foot{grid-column:2}
  .side-right .body{grid-template-columns:minmax(0,1fr) var(--sidew)}
  .side-right .body > .side{grid-column:2}
  .side-right .body > .main,.side-right .body > .foot{grid-column:1}
}

/* ── The rail, ScrollBoy's, rule for rule ────────────────────────────────── */
.side{
  flex:0 0 var(--sidew);background:var(--chrome);font-size:var(--sidefs);
  padding:14px 17px 25px;display:flex;flex-direction:column;gap:14px;
  position:sticky;top:calc(var(--hdr) + var(--cs-bar));align-self:flex-start;
  height:calc(100vh - var(--hdr) - var(--cs-bar));overflow-y:auto;scrollbar-gutter:stable;
}
/* ScrollBoy's own rule (build 205): with a scrollbar colour set, Chrome and
   Firefox draw their own thin scrollbar in these colours, the rail's too,
   and the -webkit- rules under it are left for older browsers. */
html{scrollbar-width:thin;scrollbar-color:#3a4656 #0e1116}
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:#0e1116}
::-webkit-scrollbar-thumb{background:#3a4656;border-radius:10px;border:3px solid #0e1116}
::-webkit-scrollbar-thumb:hover{background:#4c5a6d}
/* The rail's own scrollbar shows only while the mouse is over the rail
   (build 254, his pick of three sketches: it was tall and ugly). It is thin,
   with no dark track behind it, and its room is kept (scrollbar-gutter), so
   nothing moves when it comes. */
.side{scrollbar-width:thin;scrollbar-color:transparent transparent}
.side:hover{scrollbar-color:#3a4656 transparent}
.side::-webkit-scrollbar-track{background:transparent}
.side::-webkit-scrollbar-thumb{background:transparent;border-color:var(--chrome)}
.side:hover::-webkit-scrollbar-thumb{background:#3a4656}

/* The search box and its button. */
.urow{display:flex;gap:8px;align-items:stretch}
.urow .sbox{position:relative;flex:1;min-width:0;display:flex}
.urow .sbox svg{position:absolute;left:12px;top:50%;width:15px;height:15px;margin-top:-7.5px;fill:none;stroke:#5c6675;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;transition:stroke .12s}
.urow .sbox:focus-within svg{stroke:var(--accent)}
.side .urow .sbox input[type=text]{padding-left:13px;width:100%}
.side input[type=text]{
  flex:1;background:#0d1015;border:1px solid var(--chipbd);border-radius:9px;color:var(--text);
  padding:11px 13px;font-size:.86rem;font-weight:500;outline:none;min-width:0;transition:border-color .12s;font-family:inherit;
}
.side input[type=text]::placeholder{color:#6f7a89;font-family:var(--mono);font-size:.66rem;letter-spacing:.14em;text-transform:uppercase}
.side input[type=text]:focus{border-color:var(--accent)}
.urow .btn{padding:11px 18px;font-family:var(--mono);font-size:.7rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;border-radius:9px}

/* A heading with a line either side, and the rows under it. */
.favs{display:flex;flex-direction:column;gap:9px}
.favgroup{display:flex;align-items:center;gap:7px;margin:18px 0 8px;padding:0 2px;user-select:none}
.favgroup::before,.favgroup::after{content:'';flex:1 1 0;min-width:8px;height:1px}
.favgroup::before{background:linear-gradient(90deg,transparent,#929aa3)}
.favgroup::after{background:linear-gradient(90deg,#929aa3,transparent)}
.favgname{color:#b4bcc8;letter-spacing:.06em;font-size:.66em;text-transform:uppercase;font-weight:700}
.favgn{font-family:var(--mono);font-size:.62em;color:var(--muted)}
.favgroup.static{margin:14px 0 5px}
.favlist{display:flex;flex-direction:column;gap:5px}
.favrow{
  display:flex;align-items:center;gap:9px;background:var(--chip);border:1px solid transparent;
  border-radius:9px;padding:8px 11px 8px 12px;transition:background .12s;text-decoration:none;
}
.favrow:hover{background:var(--blue)}
.favrow.on{background:var(--accent)}
.favdot{flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:var(--secline,var(--muted))}
.favrow:hover .favdot,.favrow.on .favdot{background:#fff}
.favname{
  flex:1;font-family:var(--btnfont);font-size:.75em;font-weight:var(--btnweight);line-height:1.2;letter-spacing:.03em;
  color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.favrow:hover .favname,.favrow.on .favname{color:#fff}
.favcnt{font-family:var(--mono);font-size:.64em;color:var(--muted)}
.favrow:hover .favcnt,.favrow.on .favcnt{color:rgba(255,255,255,.75)}
.addsub{
  display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-bottom:4px;
  background:rgba(91,156,245,.08);border:none;color:#fff;border-radius:9px;padding:11px;
  font:inherit;font-family:var(--btnfont);font-size:.8em;font-weight:var(--btnweight);letter-spacing:.03em;cursor:pointer;text-decoration:none;transition:.12s;
}
.addsub:hover{background:rgba(91,156,245,.18);color:#fff;text-decoration:none}
.addsub svg{width:15px;height:15px;flex:0 0 15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Latest posts in the rail: a row each, as the categories, the thumb where
   the dot is. */
.lrow{padding:6px 11px 6px 6px}
.lthumb{flex:0 0 38px;width:38px;height:38px;border-radius:7px;overflow:hidden;background:#0d1015}
.lthumb img{display:block;width:100%;height:100%;object-fit:cover}
.lstat{display:inline-flex;align-items:center;gap:4px;flex:none;font-variant-numeric:tabular-nums}
.lstat svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lstat svg path[d^="M12 3.5"]{fill:var(--accent);stroke:none}
.lrow .favname{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25}

/* More sites: a row each, the site's favicon where the dot is, an arrow out. */
.nfav{flex:0 0 18px;width:18px;height:18px;border-radius:4px;overflow:hidden;background:#0d1015;display:flex}
.nfav img{display:block;width:100%;height:100%;object-fit:contain}
.nout{flex:0 0 13px;width:13px;height:13px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.favrow:hover .nout{stroke:#fff}


/* The handle that folded the rail away is gone since build 253: the rail is always there. */

/* The results: full width, the rail's own panel colour behind the pictures. */
.main{flex:1;min-width:0;padding:var(--mainpad);background:var(--bg)}
/* The corners where the rail meets the results are rounded, 18px (back in
   build 262, his asking: they were squared in build 203 because the rail's
   scrollbar stood beside them, and it only shows under the mouse since
   build 254). At the top the results scroll away under the header, so the
   rounding is not theirs: it is a little piece hung under the sticky
   header, the chrome's colour outside the curve and clear inside it, which
   stays put while the page scrolls. At the foot, where the rail and the
   footer meet, the corner never hides under anything, so it is the
   results' own. On a phone the rail is a drawer, so there is no corner. */
@media (min-width:861px){
  .top::after{
    content:"";position:absolute;top:100%;left:var(--sidew);width:18px;height:18px;pointer-events:none;
    background:radial-gradient(circle at 100% 100%,transparent 17.5px,var(--chrome) 18px);
  }
  .main{border-bottom-left-radius:18px}
}


/* The Contact button on the right of the header. */
.authbtn.flat{background:#3a6ea8;height:34px;padding:0 14px;border-radius:9px;transition:background .12s;font-size:.76rem}
.authbtn.flat:hover{background:#4a82c0;filter:none}

/* ── The ad buttons after the logo, each with its list of sites ──────────── */
.ads{display:flex;gap:10px;flex:0 0 auto;margin-left:4px}
/* Three ad buttons and Columns and Ratio laid flat fit at 1920 since the
   search field is 160px (build 197); the air came back with it. */
.ads + .viewset{justify-content:safe center;margin:0 22px}
.adw{position:relative}
.adb{height:34px;padding:0 13px;border-radius:9px;font-size:.76rem;transition:background .12s}
.adb.orange{background:#e8471a;box-shadow:none}
.adb.orange:hover,.adw.open .adb.orange{background:#ff5a2a;filter:none}
.adb.blue{background:#3a6ea8;box-shadow:none}
.adb.blue:hover,.adw.open .adb.blue{background:#4a82c0;filter:none}
.adb.grey{background:#5b7191;box-shadow:none}
.adb.grey:hover,.adw.open .adb.grey{background:#6b82a3;filter:none}
.adb .car{width:14px;height:14px;flex:0 0 14px;margin-left:2px;opacity:.85;transition:transform .15s}
.adw.open .adb .car{transform:rotate(180deg)}
/* The list hangs 8px under its button, the gap bridged so the mouse can
   travel down to it without the list closing. */
.addd{display:none;position:absolute;top:100%;left:0;min-width:100%;padding-top:8px;z-index:80}
.adw.open .addd{display:block}
@media (hover:hover) and (min-width:1121px){.adw:hover .addd{display:block}}
.adl{display:flex;flex-direction:column;gap:4px;padding:8px;border-radius:12px;background:var(--panel);box-shadow:0 16px 36px rgba(0,0,0,.55)}
.adl a{
  display:flex;align-items:center;gap:10px;padding:8px 12px 8px 9px;border-radius:8px;background:var(--chip);color:#fff;white-space:nowrap;
  font-family:var(--btnfont);font-weight:var(--btnweight);font-size:.76rem;letter-spacing:.03em;transition:background .12s;
}
.adl a:hover{background:var(--ctlhover)}
/* The site's favicon before its name, round and edge to edge (a white tile
   round them was tried and struck, build 194); the button's own icon on a
   round of the header's button colour where a site has none. */
.adfav{flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:var(--ctl);display:flex;align-items:center;justify-content:center;overflow:hidden}
.adfav img{display:block;width:100%;height:100%;object-fit:cover}
/* A favicon with clear parts shows white through them, not the dark round
   (build 208, his asking: SubRedds' has holes). Still edge to edge, no tile.
   The white stops 1.5px inside the round (build 210): painted to the edge it
   bled through the soft rim as a grainy light ring round a dark icon. */
.adfav:has(img){background:radial-gradient(circle closest-side,#fff calc(100% - 1.5px),transparent calc(100% - .5px))}
.adfav svg{width:13px;height:13px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* In the burger's menu the buttons are rows and a list opens under its
   button, pushing the rest down. After the rules above, so it wins. */
@media (max-width:1120px){
  .ads{flex-direction:column;gap:10px;margin-left:0}
  .adb{width:100%;height:auto;padding:17px 14px;justify-content:flex-start;font-size:.92rem}
  .adb .car{margin-left:auto}
  .addd{position:static;padding-top:6px}
  .ads + .viewset{margin-left:0}
}
/* The search before it: a white field with a button in the site's colour,
   a magnifier, as its right end. */
.hsearch{display:flex;height:34px;flex:0 0 auto}
.hsearch input{
  width:160px;min-width:0;background:#fff;border:1px solid #fff;border-right:none;border-radius:9px 0 0 9px;color:#151a21;
  padding:0 13px;font:inherit;font-family:var(--btnfont);font-size:.76rem;font-weight:var(--btnweight);letter-spacing:.03em;outline:none;transition:border-color .12s;
}
.hsearch input::placeholder{color:#8a93a0}
.hsearch input:focus{border-color:var(--accent)}
/* The button is the right end of the box itself, as sketch C had it. */
.hsearch button{
  flex:0 0 40px;width:40px;padding:0;border:none;border-radius:0 9px 9px 0;background:var(--accent);color:#fff;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:background .12s;
}
.hsearch button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.hsearch button:hover{background:var(--accent2)}
.authbtn svg{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* The hero across the top of the front page. */
/* The box takes the picture's own shape, but never taller than a banner:
   a picture that is not banner-shaped is cropped to one rather than taking
   the whole screen before the first row of cards. */
.hbanner{aspect-ratio:var(--ar,2000/462);max-height:420px;border-radius:14px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.6);background:rgba(0,0,0,.35);margin:0 0 22px}
.hbanner a,.hbanner img{display:block;width:100%;height:100%}
.hbanner img{object-fit:cover}
@media (max-width:860px){.hbanner{max-height:220px;border-radius:10px;margin-bottom:14px}}

/* Narrow: the rail becomes a drawer that slides in over the page. */
@media (max-width:860px){
  .body{flex-direction:column}
  .side{
    position:fixed;top:0;left:0;bottom:0;z-index:80;width:min(86vw,340px);height:100vh;
    padding-top:58px;transform:translateX(-100%);transition:transform .2s ease;box-shadow:none;
  }
  .side-right .side{left:auto;right:0;transform:translateX(100%)}
  body.drawer .side{transform:none;box-shadow:0 0 40px rgba(0,0,0,.6)}
  .drawerx{
    display:flex;align-items:center;justify-content:center;position:absolute;top:10px;right:10px;
    width:34px;height:34px;border:none;border-radius:9px;background:var(--ctlflat);color:#fff;cursor:pointer;
  }
  .drawerx svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
  .mtools{display:flex;align-items:center;gap:8px;flex:0 0 auto}
  .mbtn{
    height:34px;padding:0 11px;border:none;border-radius:9px;background:var(--ctlflat);color:#fff;cursor:pointer;
    font-family:var(--btnfont);font-size:.8rem;font-weight:var(--btnweight);letter-spacing:.03em;display:flex;align-items:center;gap:7px;
  }
  .mbtn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  body.drawer #scrim{display:block;position:fixed;inset:0;z-index:75;background:rgba(0,0,0,.55)}
  .main{padding:12px}
  :root{--mainpad:12px}
}


h1{font-size:1.5rem;font-weight:700;margin:0 0 4px;text-wrap:balance;line-height:1.25}
.sub{color:var(--muted);font-size:.84rem;margin:0 0 18px}

/* The TGP grid: picture, title under it. */
.grid{display:grid;grid-template-columns:var(--grid);gap:var(--gap)}
/* Masonry: the cards keep their pictures' own heights and flow in columns. */
.grid.masonry{display:block;column-count:var(--mcols,5);column-gap:var(--gap)}
.grid.masonry .card{break-inside:avoid;margin:0 0 var(--gap);display:inline-flex;width:100%}
.grid.masonry .media{aspect-ratio:auto}
.grid.masonry .media img{height:auto;object-fit:contain}
/* Before the script runs, the root carries the reader's own choice: masonry
   over a fixed grid, or a fixed shape over masonry, so nothing jumps. */
.masonry-early .grid{display:block;column-count:var(--mcols,5);column-gap:var(--gap)}
.masonry-early .grid .card{break-inside:avoid;margin:0 0 var(--gap);display:inline-flex;width:100%}
.masonry-early .grid .media{aspect-ratio:auto}
.masonry-early .grid .media img{height:auto;object-fit:contain}
.shape-early .grid.masonry{display:grid;grid-template-columns:var(--grid);column-count:auto}
.shape-early .grid.masonry .card{margin:0;display:flex;width:auto}
.shape-early .grid.masonry .media{aspect-ratio:var(--asp,1)}
.shape-early .grid.masonry .media img{height:100%;object-fit:cover}
/* Masonry dealt across by the page (build 261, csDeal in the head): a
   column a div, each card in the column that was shortest when it came. */
.grid.masonry.dealt{display:flex;align-items:flex-start;gap:var(--gap);column-count:auto}
.grid.dealt>.mcol{flex:1 1 0;min-width:0;display:flex;flex-direction:column}
/* A feed card for one device is hidden on the other from the start, so
   masonry measures what is shown. */
@media (max-width:860px){.grid .card[data-dev="d"]{display:none}}
@media (min-width:861px){.grid .card[data-dev="m"]{display:none}}
/* The switches in the rail: a kind hidden is hidden, nothing moves. */
/* A row of six is six on a desk and nonsense on a phone, so a narrow screen
   always goes back to as many as fit, whatever the Look page says. */
@media (max-width:860px){
  .grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
}
.card{
  background:var(--panel);border:1px solid transparent;border-radius:var(--rad);
  overflow:hidden;display:flex;flex-direction:column;position:relative;
  transition:border-color .12s,transform .14s,box-shadow .14s;
}
/* An ad in the grid is a card in shape only: it does not light up, because
   there is nothing of ours behind it to open. */
.adcard{padding:10px;align-items:center;justify-content:center;min-height:180px}
.adcard,.adcard:hover{border-color:transparent}
.adcard img{display:block;height:auto;margin:0 auto}
.media{
  position:relative;background:#0a0d11;aspect-ratio:var(--asp,1);
  overflow:hidden;display:flex;align-items:center;justify-content:center;
}
.media img{width:100%;height:100%;object-fit:cover;display:block}
/* How many pictures are inside, always on: it is the reason to click. */
.count{
  position:absolute;top:8px;right:8px;display:flex;align-items:center;gap:4px;
  background:rgba(0,0,0,.62);color:#dfe4ea;border-radius:6px;padding:3px 7px;
  font-family:var(--mono);font-size:.64rem;font-variant-numeric:tabular-nums;
}
.count svg{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2}
/* A feed card's tag (Promo Suite, Feed Cards; "Sponsored" unless he writes
   another): a badge in the site's colour in the upper right corner, 11px
   in (builds 225 and 226; a feed card has no gallery count). Its link fills the picture. */
.promotag{
  position:absolute;top:11px;right:11px;z-index:3;pointer-events:none;
  background:var(--accent);color:#fff;border-radius:6px;padding:4px 8px;
  font:600 .68rem/1 var(--font);letter-spacing:.02em;box-shadow:0 1px 4px rgba(0,0,0,.35);
}
.promocard .media > a{display:block;width:100%;height:100%;align-self:stretch}
/* A feed card with no text under its title (he leaves it empty) has room
   under the title, so the title does not touch the card's foot (build 227; 7px since build 228, 12 was too much). */
.promocard .under:not(:has(.sub)){padding-bottom:7px}
/* The title lies on the picture under a scrim, and waits for the pointer, so
   a wall of thumbnails is pictures and not a wall of text. */
/* The title. Where it sits is the Look page's call, so the same markup
   serves all of it: on the picture under a scrim, or in its own strip
   under the picture. */
.scrim{
  position:absolute;left:0;right:0;bottom:0;z-index:2;
  padding:10px 11px 9px;
  background:rgba(9,12,17,.72);
  transition:opacity .14s ease;pointer-events:none;
}
.ttl{
  margin:0;color:#fff;font-size:.84rem;font-weight:400;line-height:1.3;
  text-shadow:0 1px 3px rgba(0,0,0,.7);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
/* Waiting for the pointer: a wall of thumbnails is pictures, not text. */
.ttl-hover .scrim{opacity:0}
.ttl-hover .card:hover .scrim,.ttl-hover .card:focus-within .scrim{opacity:1}
/* No pointer to wait for on a phone: there the cards are the pictures alone. */
@media (hover:none){
  .ttl-hover .scrim{display:none}
}
/* The switch in the rail: off hides the title wherever the Look put it. */
body.ttl-off .scrim,body.ttl-off .under{display:none}
/* Under the picture: no scrim, no shadow, just a line of text on the card. */
.under{padding:9px 11px 0}
.under .ttl{
  color:var(--text);text-shadow:none;font-size:.8rem;font-weight:400;
}

/* Under the picture: when it went out, and how many have seen it. */
.cmeta{
  display:flex;align-items:center;gap:14px;justify-content:space-between;
  padding:8px 10px 10px;
  font-family:var(--mono);font-size:.62rem;letter-spacing:.02em;color:var(--muted);
}
.cmeta .ago,.cmeta .views{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.cmeta svg{width:12px;height:12px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
.cmeta .views{font-variant-numeric:tabular-nums;flex:none}
.cmeta .rated{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-variant-numeric:tabular-nums;margin-left:auto}
.cmeta .rated svg{fill:var(--accent);stroke:none;opacity:1}
.cmeta .rated + .views{margin-left:12px}
.card:hover .cmeta{color:#b6bdc7}
/* On the picture, under the title, inside the band. */
.scrim .cmeta{padding:6px 0 0;color:#c3cad4}

/* Paging */
.pager{display:flex;gap:8px;justify-content:center;align-items:center;margin:26px 0 6px;flex-wrap:wrap}
.pager a,.pager span{
  background:var(--chip);border:1px solid var(--chipbd);border-radius:9px;
  padding:8px 14px;font-family:var(--btnfont);font-size:.84rem;font-weight:var(--btnweight);
  color:var(--text);
}
.pager a:hover{background:var(--chip2)}
.pager .now{background:var(--accent);border-color:var(--accent);color:#fff}

/* The post page */
/* The whole width of the results, everything from the left edge: the title,
   the line under it, the picture and the stars stand in one line down
   (build 263, his asking; it was a 1100px column in the middle, the picture
   centred in it and so out of line with the title). */
.post{max-width:none;margin:0}
/* The frame shrinks to the picture, so a portrait does not sit in a wide
   box with empty panel either side of it. */
.shot{
  background:var(--panel);border:1px solid var(--border);border-radius:var(--rad);
  overflow:hidden;margin:0 0 14px;width:fit-content;max-width:100%;
  line-height:0;
}
/* Never wider than the picture really is: a 900px photograph blown up to fill
   a 1100px column is soft, and softness reads as a cheap site. */
.shot img{max-width:100%;width:auto;height:auto;display:block}

/* The stars under the first picture: a click votes, a click on one's own
   takes the vote back. Filled in the site's colour; the mouse lights them up
   to where it rests. */
/* In a box as wide as the picture (build 268): its name at the left, the
   stars after it, and the figures as badges at the right. The box is the
   blue of the admin's number badges, #325576, with white stars and the
   badges in the site's colour (build 271, his pick of ten sketches: the
   panel's own dark fill ran into the page). */
.rate{display:flex;align-items:center;justify-content:flex-start;gap:10px 16px;margin:0 0 18px;flex-wrap:wrap;
  background:#325576;border:1px solid #325576;border-radius:var(--rad);padding:10px 16px;--rstar-off:#5a7ea3}
/* Rate this post: white, a size up, a colon after it and no star before it
   (build 269, his asking). */
.rlab{font-family:var(--mono);font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:#fff;white-space:nowrap;position:relative;top:1px}
/* More room under the post before More like this (build 269). */
.postcol + .sectsep{margin-top:56px}
.rtxt{margin-left:auto;display:flex;flex-wrap:wrap;gap:8px}
.rpill{display:inline-flex;align-items:center;gap:7px;background:var(--accent);border-radius:999px;padding:8px 13px 6px;line-height:1;
  font-family:var(--mono);font-size:.64rem;letter-spacing:.1em;text-transform:uppercase;color:#fff;white-space:nowrap}
.rpill b{font-weight:400;color:inherit;font-size:inherit;margin:0}
/* The reader's own vote is the white one. */
.rpill.mine{background:#fff;color:#14181f}
/* Each star is a box cut to a star's shape and filled from the left as far
   as its --fill says, so an average of 4.3 shows as four stars and three
   tenths of the fifth (build 270). The script sets --fill. */
.rstars{display:flex;gap:6px;
  --star:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3.5 3.5 17 16.2'%3E%3Cpath d='M12 3.5l2.6 5.4 5.9.8-4.3 4.1 1 5.9L12 16.9l-5.2 2.8 1-5.9-4.3-4.1 5.9-.8z'/%3E%3C/svg%3E")}
.rstars button{width:27px;height:26px;padding:0;border:none;cursor:pointer;transition:transform .1s;
  background:linear-gradient(90deg,#fff var(--fill,0%),var(--rstar-off,#3a4656) var(--fill,0%));
  -webkit-mask:var(--star) center/100% 100% no-repeat;mask:var(--star) center/100% 100% no-repeat}
.rstars button svg{display:none}
.rstars button:hover{transform:scale(1.12)}

.rate.busy{opacity:.6;pointer-events:none}
/* The post's own column (build 268): as wide as its picture, and the head
   over it and the rating box under it take that width without adding to it
   (a width of 0 that then grows to 100%), so the three line up at both
   edges. Never narrower than 560px where there is room, for a small picture. */
.postcol{width:fit-content;max-width:100%;min-width:min(100%,560px)}
.postcol > .phead,.postcol > .slot{width:0;min-width:100%;box-sizing:border-box}
/* The rating box is not held to the picture's width (build 310, his asking:
   under a narrow picture the badges broke onto a second line once he had
   voted). It takes the room its one line needs, and the column with it; never
   less than the picture, and on a narrow screen it still wraps. */
.postcol > .rate{box-sizing:border-box}
/* The badges stand after the title, on its line (build 269, his asking);
   a long title sends them to a line of their own under it. */
.phead{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:0 0 14px}
.phead h1{font-size:1.7rem;line-height:1.2;margin:0;text-wrap:pretty}
.phead .meta{margin:0}
/* The line under a post's title is a row of badges: an icon in the site's
   colour, the word, and the value in white (builds 267 and 268). */
.meta{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  font-family:var(--mono);font-size:.64rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);margin:0 0 16px;
}
/* The capitals of the mono font stand high in a line of their own height:
   measured, the words' middle was 2px over the icon's. The badge's room is
   2px lower for them and the icon is put back up by as much, so the two
   stand level (build 272, his eye). */
.meta span{display:inline-flex;align-items:center;gap:7px;background:var(--chip);border-radius:999px;padding:9px 13px 5px;line-height:1}
.meta svg{width:13px;height:13px;flex:none;fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;position:relative;top:-2px}
.meta b{font-weight:400;color:#fff}
.meta a{color:inherit;text-decoration:none}
.meta a:hover b{color:var(--accent)}
.sect{
  font-family:var(--mono);font-size:.64rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);margin:30px 0 12px;
}
/* A line across a page with its words in a badge in the middle (More like
   this on a post page, build 263), made as the one in his sound app is
   (build 264, his screenshot): the badge a pill in the site's colour with
   white capitals, and the line growing straight out of it on both sides,
   4px thick, fading out at the far ends. */
.sectsep{display:flex;align-items:center;margin:34px 0 18px}
.sectsep::before,.sectsep::after{content:"";flex:1;height:4px}
/* One thickness all the way, only fading (build 266: the thinning of build
   264 was cut with a clip-path, which made the edge jagged, and his own has
   none). */
/* One quiet colour on every site, not the site's own (build 267: the
   bright line cut the eye, his words), and since build 270 a dark navy,
   darker than the grey slate of 267, which he did not like. */
.sectsep{--sep:#172438}
.sectsep::before{background:linear-gradient(90deg,transparent,var(--sep) 55%)}
.sectsep::after{background:linear-gradient(90deg,var(--sep) 45%,transparent)}
/* The badge's lettering is his sound app's own (build 265, the figures he
   read off it): Jost, 10.5px, semibold, capitals .16em apart, white, 16px
   of room either side, in this site's colour and not that app's green. */
.sectsep span{
  flex:none;background:var(--sep);color:#b8c4d6;border-radius:999px;padding:8px 16px 6px;
  font-family:'Jost',var(--btnfont);font-weight:600;font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;line-height:1;
}
/* More like this: six by two in 3:4, fixed. Not a .grid, so the reader's
   Columns and Ratio, the head script and masonry leave it alone. Twelve
   cards fall into whole rows at every width: 6, 4, 3 or 2 across. */
.relgrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--gap)}
.relgrid .media{aspect-ratio:3/4}
.relgrid .media img{width:100%;height:100%;object-fit:cover}
@media (max-width:1200px){.relgrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:860px){.relgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:600px){.relgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.btn{
  background:var(--accent);color:#fff;border:none;border-radius:9px;
  padding:9px 16px;font-family:var(--font);font-weight:500;font-size:.9rem;
  cursor:pointer;transition:background .12s;display:inline-block;
}
.btn:hover{background:var(--accent2)}

/* An ad slot shows its own outline while it holds nothing, so an empty one is
   obvious in the admin's preview and invisible on the live page. */
.slot{margin:18px 0}
.slot:empty{display:none}

/* A stand-in for a post while a site has none (build 303): the ads show at
   their places around these numbers. */
.phcard .media{background:#141a22}
.phcard .phnum{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#3d4a5c;font-family:var(--mono);font-size:1.5rem;font-variant-numeric:tabular-nums;pointer-events:none}
.phcard .phnum small{font-size:.6rem;letter-spacing:.16em;text-transform:uppercase}
.empty{
  border:1px dashed var(--chipbd);border-radius:12px;padding:40px 20px;
  text-align:center;color:var(--muted);
}
.foot{
  padding:26px var(--pad) 34px;text-align:center;color:var(--muted);font-size:.78rem;
}
/* The footer's banners (cs_foot_ads()): five in a row (seven until build
   221, when he made bigger banners), in the results' own column (the footer
   is the second row of .body) with their padding and the grid's gap. A
   banner keeps its own shape; a placeholder has the shape of his own, 360 × 540. On a phone they
   are a strip that scrolls sideways. */
.footads{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--gap);
  margin:0 calc(var(--mainpad) - var(--pad));text-align:center}
.foot .fad{display:block;min-width:0;color:#d7dce3;text-decoration:none}
.fadline{display:block;margin-top:8px;font-family:'Josefin Sans',var(--font);font-size:.94rem;font-weight:500;line-height:1.35}
.fadline em{font-style:normal;color:#4f9be8}
.foot .fad em,.foot .fad b,.foot .fad i{text-decoration:none}

/* The spots of the Promo Suite (build 206): a picture as wide as its place
   in its own shape, a network's code centred, and until a spot is filled a
   placeholder in the shape its place wants, with its name and size. */
.spotpic{display:block;width:100%;height:auto;border-radius:var(--rad)}
.spotph{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px;color:#fff;
  font:900 1.15rem/1.05 Impact,'Arial Black',sans-serif;text-transform:uppercase;text-align:center}
.spotph i{font:400 .64rem var(--mono);opacity:.6;margin-top:8px;text-transform:none}
.ph-foot{aspect-ratio:2/3}
.ph-side{aspect-ratio:6/5;border-radius:10px}
.ph-feed{aspect-ratio:4/1;font-size:clamp(1.2rem,3vw,2.6rem)}
.spotcode{display:flex;justify-content:center;overflow:hidden;max-width:100%}
.spotcode iframe{display:block;border:0;max-width:100%}
/* A cam widget's mat (build 211), the look of his custom CSS on ScrollBoy:
   white, 12px round the cams, rounded, with a blue glow, which the spot
   lets out. */
.spotcode:has(.spotmat){overflow:visible}
.spotmat{display:inline-block;line-height:0;max-width:100%;border-radius:14px;box-shadow:0 0 28px rgba(91,156,245,.28);background:#fff;padding:12px}
.spotwin{overflow:hidden;line-height:0;max-width:100%}
.spotwin > iframe{max-width:none}
.sidespot{flex:0 0 auto;margin-top:9px}
/* 23px on both sides of a spot (build 209; 28 in build 207): the rail's
   14px gap and 9px over it, and under it the gap and the heading's own top
   margin brought down to 9px. */
.sidespot + .favs > .favgroup.static{margin-top:9px}
.sidespot .spotpic{border-radius:10px}
/* A break across the grid: the grid above it is shut and opened again
   under it. 24px over and under every break, the Mega banner's and the cam
   mat's alike (build 215; 28 in builds 212 and 213): over it the last
   cards' own gap and 10px, under it the gap and 10px; a grid that is not
   masonry has no gap under its cards, so the break gives it. */
.feedbreak{margin:10px 0 calc(var(--gap) + 10px)}
.grid:not(.masonry) + .feedbreak{margin-top:calc(var(--gap) + 10px)}
@media (max-width:860px){
  .footads{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px}
  .fad{flex:0 0 42%;scroll-snap-align:start}
}
.foot a{color:var(--muted);text-decoration:underline}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}
}

/* ── What the Look page switches ──────────────────────────────────────────
   One class per choice on the body. The markup is the same whichever way it
   goes, so a site can be turned from one look to another without anything
   being written twice. */

/* The name in the middle of the header. */
.head-mid .top{justify-content:center;text-align:center}
.head-mid .navtabs{margin-left:0}

/* The card: a panel, an outline only, or nothing at all behind the picture. */
.card-framed .card{border-color:var(--border)}
.card-outline .card{background:transparent;border-color:var(--border)}
.card-flat .card{background:transparent;border-color:transparent}
.card-flat .cmeta{padding-left:2px;padding-right:2px}
.card-flat .under{padding-left:2px;padding-right:2px}

/* What it does under the pointer. */
.hov-glow .card:hover{border-color:var(--accent)}
.hov-lift .card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.4)}
.hov-zoom .media img{transition:transform .24s ease}
.hov-zoom .card:hover .media img{transform:scale(1.06)}
.hov-none .card:hover{border-color:var(--border)}
@media (prefers-reduced-motion:reduce){
  .card,.media img{transition:none}
  .hov-lift .card:hover{transform:none}
  .hov-zoom .card:hover .media img{transform:none}
}

/* The card's foot, when it carries only one of the two or neither. */
.meta-off .cmeta{display:none}
.meta-off .under{padding-bottom:10px}
.meta-date .cmeta .views,.meta-views .cmeta .ago{display:none}
.meta-views .cmeta{justify-content:flex-end}

/* Read by a screen reader and a crawler, drawn for nobody. */
.vh{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;
}
