/* RJNav additions for the webstack theme (v1.7.1).
   The upstream WebStack-Hugo stylesheets (MIT, reused verbatim) carry the
   whole nav chrome; this file only styles RJNav-specific pieces: simple
   pages (login/register/unlock/transit/404), the hero text layer on
   #search-bg, tag filters, empty states and ad slots. Dark variants key
   on body.io-black-mode, the upstream mode class. */
body{--rj-card:#fff;--rj-border:#e5e7eb;--rj-text:#1f2937;--rj-muted:#6b7280;--rj-accent:#3f51b5;--rj-input-bg:#fff}
body.io-black-mode{--rj-card:#23242c;--rj-border:#3a3b46;--rj-text:#e5e7eb;--rj-muted:#9ca3af;--rj-accent:#7986cb;--rj-input-bg:#1b1c22}

/* ---------- hero layer on the upstream #search-bg block ---------- */
#search-bg.ws-hero-on{position:relative;overflow:hidden}
.ws-hero-decor{position:absolute;inset:0;pointer-events:none}
.ws-hero-decor i{position:absolute;border-radius:50%;background:rgba(255,255,255,.13)}
.ws-hero-decor i:nth-child(1){width:120px;height:120px;right:6%;top:-40px}
.ws-hero-decor i:nth-child(2){width:64px;height:64px;right:16%;bottom:-18px}
.ws-hero-decor i:nth-child(3){width:36px;height:36px;left:9%;top:22px}
.ws-hero-decor i:nth-child(4){width:90px;height:90px;left:-24px;bottom:-30px}
.ws-hero-decor i:nth-child(5){width:22px;height:22px;right:30%;top:16px}
.ws-hero-decor i:nth-child(6){width:48px;height:48px;left:26%;bottom:8px}
#search-bg.pat-grid .ws-hero-decor{background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);background-size:44px 44px}
#search-bg.pat-grid .ws-hero-decor i{display:none}
#search-bg.pat-none .ws-hero-decor{display:none}
.ws-hero-text{position:relative;z-index:2;text-align:center;padding:34px 16px 0}
.ws-hero-title{font-size:34px;font-weight:700;color:#fff;letter-spacing:1px}
.ws-hero-sub{margin-top:8px;font-size:15px;color:rgba(255,255,255,.85)}
#search-bg.ws-hero-on .s-search{position:relative;z-index:2}
.hot-words{position:relative;z-index:2;font-size:13px;color:var(--rj-muted);margin:10px 16px 0;text-align:center}
.hot-words a{margin-right:10px;text-decoration:none}
#search-bg.ws-hero-on .hot-words,#search-bg.ws-search-zone .hot-words{color:rgba(255,255,255,.75)}
#search-bg.ws-hero-on .hot-words a,#search-bg.ws-search-zone .hot-words a{color:#fff}
.rj-search-clear{position:absolute;right:52px;top:50%;transform:translateY(-50%);font-size:12px;color:#999;text-decoration:none}
.ws-tab-icon{width:14px;height:14px;vertical-align:-2px}

/* ---------- header extras ---------- */
.rj-weather{align-self:center;font-size:13px;color:var(--rj-muted);white-space:nowrap;padding:0 6px}
#hitokoto a{color:var(--rj-muted);text-decoration:none;font-size:13px}
.ws-logo-text{font-size:18px;font-weight:700;color:var(--rj-text)}
.ws-side-icon{width:20px;height:20px;object-fit:contain;margin-right:8px;vertical-align:-4px}
.rj-side-tags{padding:10px 18px}
.rj-side-tags-title{font-size:12px;color:var(--rj-muted);margin-bottom:6px}
.rj-side-tags .tag-filter a{color:inherit}

/* ---------- content extras ---------- */
.cat-icon{width:20px;height:20px;vertical-align:-3px}
.lock-tag{font-size:12px;color:#b45309;background:#fef3c7;border-radius:999px;padding:2px 8px}
.rj-sec-count{margin-left:8px;font-weight:400}
.rj-grid-empty{padding:0 15px}
.tag-filter{margin:10px 0;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tag-filter a{padding:2px 10px;border:1px solid var(--rj-border);border-radius:999px;text-decoration:none;font-size:13px;color:inherit}
.tag-filter a.active{background:#333;color:#fff}
.tag-filter-now{font-size:13px;opacity:.75}
.rj-empty{border:1.5px dashed var(--rj-border);border-radius:16px;background:var(--rj-card);text-align:center;padding:44px 20px 38px;margin:10px 0 26px;color:var(--rj-text)}
.rj-empty-title{font-size:16px;margin:0 0 10px}
.page-title{font-size:22px;margin:6px 0 18px;color:var(--rj-text)}

/* ---------- footer extras ---------- */
.footer-text .icp{margin-top:4px}
.footer-text .credit{margin-top:4px;font-size:12px;opacity:.75}
.rj-simple-footer{text-align:center;padding:26px 16px 34px;color:var(--rj-muted);font-size:13px}
.rj-simple-footer-name{font-weight:700;color:var(--rj-text);margin-bottom:6px}
.rj-simple-footer .credit{margin-top:4px;font-size:12px}

/* ---------- simple pages (login/register/unlock/transit/404) ---------- */
.ws-page{max-width:760px;margin:0 auto;padding:44px 16px 48px;color:var(--rj-text)}
.ws-page .muted{color:var(--rj-muted)}
.ws-auth{display:flex;justify-content:center;padding:44px 16px 48px}
.ws-auth-card{background:var(--rj-card);border:1px solid var(--rj-border);border-radius:12px;padding:28px;width:100%;max-width:420px;box-sizing:border-box;color:var(--rj-text)}
.ws-auth-card label{display:block;margin:12px 0 4px}
.ws-auth-card input{width:100%;padding:9px;box-sizing:border-box;border:1px solid var(--rj-border);border-radius:8px;background:var(--rj-input-bg);color:var(--rj-text)}
.ws-auth-card button{margin-top:16px;padding:10px 22px;border:0;border-radius:8px;background:var(--rj-accent);color:#fff;cursor:pointer}
.ws-auth-card .slogan{color:var(--rj-muted)}
.ws-auth-card .err{background:#fdecec;border:1px solid #f5b5b5;padding:10px;border-radius:6px;color:#7f1d1d}
.ws-auth-card .ok{background:#ecfdf5;border:1px solid #6ee7b7;padding:10px;border-radius:6px;color:#065f46}
.oauth-login{margin-top:14px}
.oauth-btn{display:inline-block;margin:4px 6px 0 0;padding:7px 14px;border:1px solid var(--rj-border);border-radius:999px;text-decoration:none;color:inherit;font-size:13px}
.transit{text-align:center}
.transit-btn{display:inline-block;padding:10px 26px;background:var(--rj-accent);color:#fff;border-radius:8px;text-decoration:none;margin-right:12px}
.transit-target{word-break:break-all}
.transit .muted{color:var(--rj-muted)}

/* ---------- ads ---------- */
.ad{margin:10px 0}
.ad img{max-width:100%;height:auto}
.ad-popup{position:fixed;right:16px;bottom:16px;z-index:60;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:10px;box-shadow:0 8px 30px rgba(0,0,0,.15);max-width:320px}
