/*
 * PandaGames NOIR GOLD / utility pages
 * Search, not-found, and static-page chrome. No changes to post body,
 * article typography, embedded content, CTA, or post metadata.
 */
body:not(.home){
  --pg-util-ink:#1d2222;
  --pg-util-gold:#c5a46b;
  --pg-util-cream:#fffdf7;
  --pg-util-line:#e7dfd1;
}

/* Search result / search empty */
body.search #contents{
  padding-top:40px!important;
}
body.search #main-contents.pg-search-page{
  min-width:0;
}
body.search .pg-search-hero{
  position:relative;
  padding:47px clamp(26px,4.4vw,55px) 50px!important;
  margin:0 0 35px!important;
  color:#f8f6ef!important;
  border:1px solid rgba(171,143,94,.83)!important;
  border-radius:6px!important;
  box-shadow:0 20px 38px rgba(34,32,26,.15);
  background:
    radial-gradient(circle at 80% 12%,rgba(218,183,110,.20),transparent 35%),
    repeating-linear-gradient(130deg,transparent 0 58px,rgba(202,171,111,.027) 59px 60px),
    linear-gradient(118deg,#171c1c,#2a2d29 85%)!important;
  overflow:hidden;
}
body.search .pg-search-hero:before{
  content:"";position:absolute;inset:13px;
  border:1px solid rgba(222,197,150,.24);
  pointer-events:none;
}
body.search .pg-search-hero:after{
  content:"P / G";position:absolute;
  top:35px;right:40px;
  color:rgba(231,202,144,.14);
  font:900 clamp(56px,8vw,98px)/1 Georgia,"Times New Roman",serif;
  letter-spacing:-.075em;pointer-events:none;
}
body.search .pg-search-hero .pg-archive-kicker{
  display:inline-flex!important;align-items:center;gap:11px;
  margin-bottom:18px;
  font:800 11px/1.5 Georgia,"Times New Roman",serif!important;
  color:#e1c58b!important;letter-spacing:.21em;
  position:relative;z-index:1;
}
body.search .pg-search-hero .pg-archive-kicker:before{
  display:block;content:"";width:27px;height:1px;background:#d6ba87;
}
body.search .pg-search-hero h1{
  position:relative;z-index:1;
  margin:0 0 13px!important;padding:0!important;
  background:none!important;border:0!important;box-shadow:none!important;
  color:#faf6ec!important;
  font-size:clamp(27px,3.3vw,42px)!important;
  line-height:1.48!important;font-weight:900!important;
  letter-spacing:-.052em;overflow-wrap:anywhere;
}
body.search .pg-search-hero p{
  position:relative;z-index:1;
  margin:0 0 29px!important;color:#d8d4ca!important;
  font-size:13px;line-height:1.9;
}
body.search .pg-search-hero p strong{color:#edcd8e!important;font-weight:900}
body.search .pg-search-hero .pg-search-form,
body.error404 .pg-404-card .pg-search-form{
  display:flex!important;align-items:stretch;gap:0!important;
  max-width:610px;margin:0!important;
  border:1px solid #c4aa78!important;border-radius:4px!important;
  background:#fffef9!important;position:relative;z-index:2;
  box-shadow:0 12px 22px rgba(0,0,0,.13);
}
body.search .pg-search-form input,
body.error404 .pg-search-form input{
  width:100%!important;min-width:0!important;flex:1!important;
  border:0!important;border-radius:4px 0 0 4px!important;
  box-shadow:none!important;outline:0!important;
  background:#fffefa!important;color:#292d29!important;
  min-height:51px!important;
  padding:12px 19px!important;margin:0!important;
  font-size:14px!important;
}
body.search .pg-search-form input:focus,
body.error404 .pg-search-form input:focus{box-shadow:inset 0 0 0 2px #c7aa75!important}
body.search .pg-search-form button,
body.error404 .pg-search-form button{
  display:flex!important;align-items:center;justify-content:center;gap:8px!important;
  flex:0 0 auto;min-width:112px;
  border:0!important;border-radius:0 3px 3px 0!important;
  background:linear-gradient(135deg,#d9bd84,#b99252)!important;
  color:#221f19!important;font-size:13px!important;font-weight:900!important;
  padding:11px 20px!important;margin:0!important;
  cursor:pointer;transition:filter .2s!important;
}
body.search .pg-search-form button:hover,
body.error404 .pg-search-form button:hover{filter:brightness(1.09)}
body.search .pg-search-results{
  background:transparent!important;
  border:0!important;box-shadow:none!important;
  padding:0!important;margin:0 0 50px!important;
}
body.search .pg-search-results .pg-section-head{
  border-left:3px solid #c4a568!important;
  padding:0 0 18px 19px!important;
  border-bottom:1px solid var(--pg-util-line)!important;
  margin:0 0 23px!important;
}
body.search .pg-search-results .pg-section-kicker{
  font:800 10px/1.5 Georgia,"Times New Roman",serif!important;
  color:#95713e!important;letter-spacing:.2em;
}
body.search .pg-search-results h2{
  margin:5px 0 8px!important;
  border:0!important;background:none!important;padding:0!important;
  color:#262b27!important;font-size:clamp(22px,2.5vw,30px)!important;
  font-weight:900!important;
}
body.search .pg-search-results .pg-section-head p{
  color:#77776e!important;font-size:12px;line-height:1.8;
}
body.search .pg-search-empty{
  position:relative;
  max-width:760px;
  padding:45px 40px!important;margin:0 0 50px!important;
  text-align:center;background:#fffefa!important;
  border:1px solid #e3d7bd!important;border-radius:5px!important;
  box-shadow:0 14px 26px rgba(40,36,25,.06);
}
body.search .pg-search-empty:before{
  content:"";position:absolute;top:0;left:calc(50% - 40px);
  width:80px;height:3px;background:#bd9d61;
}
body.search .pg-search-empty-icon{
  margin:0 auto 18px;color:#a68a56!important;
  background:#f7f0e1!important;border:1px solid #e2d2b3!important;
  width:66px;height:66px;border-radius:50%;
  display:grid;place-items:center;
}
body.search .pg-search-empty h2{
  font-size:clamp(19px,2.2vw,26px)!important;
  line-height:1.5!important;font-weight:900!important;
  color:#292b28!important;background:none!important;border:0!important;
  padding:0!important;margin:0 0 14px!important;
}
body.search .pg-search-empty p{font-size:13px!important;color:#73756f!important;line-height:2}
body.search .pg-search-shortcuts{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin-top:25px}
body.search .pg-search-shortcuts a{
  display:inline-flex!important;align-items:center;justify-content:center;
  padding:10px 17px!important;
  color:#806332!important;font-size:12px;font-weight:900;
  border:1px solid #ddcbaa!important;
  border-radius:3px!important;background:#faf6ee!important;text-decoration:none!important;
}
body.search .pg-search-shortcuts a:hover{background:#f0e5d0!important}

/* 404: a useful, beautiful way back */
body.error404 #contents.pg-404-wrap{
  width:auto!important;
  max-width:1200px!important;
  margin:0 auto!important;
  padding:47px 24px 65px!important;
}
body.error404 .pg-404-page{
  width:100%!important;max-width:none!important;
  padding:0!important;margin:0 auto!important;
  float:none!important;
}
body.error404 .pg-404-card{
  position:relative;isolation:isolate;overflow:hidden;
  min-height:540px;
  max-width:1000px!important;
  padding:70px clamp(27px,6vw,80px) 60px!important;
  border:1px solid #837151!important;
  border-radius:6px!important;
  background:
    radial-gradient(ellipse at 79% 20%,rgba(196,159,90,.21),transparent 42%),
    repeating-linear-gradient(138deg,transparent 0 68px,rgba(213,173,103,.026) 68px 69px),
    linear-gradient(125deg,#171c1d 0%,#292a26 100%)!important;
  box-shadow:0 20px 45px rgba(28,30,24,.17);
  color:#eee8db!important;text-align:left!important;
}
body.error404 .pg-404-card:before{
  content:"404";position:absolute;z-index:-1;
  top:38px;right:-12px;
  font:900 clamp(130px,24vw,285px)/1 Georgia,"Times New Roman",serif;
  letter-spacing:-.11em;color:rgba(224,194,133,.095);
  pointer-events:none;
}
body.error404 .pg-404-card:after{
  content:"";position:absolute;z-index:-1;
  inset:14px;border:1px solid rgba(219,187,130,.25);
  pointer-events:none;border-radius:2px;
}
body.error404 .pg-404-icon{
  display:grid!important;place-items:center;
  width:63px;height:63px;border-radius:50%;
  background:rgba(207,178,121,.12)!important;
  border:1px solid #a68c5e!important;color:#e6c995!important;
  margin:0 0 29px!important;
}
body.error404 .pg-404-card .pg-archive-kicker{
  display:block;
  color:#e1c38b!important;
  font:800 11px/1.5 Georgia,"Times New Roman",serif!important;
  letter-spacing:.24em;margin:0 0 16px!important;
}
body.error404 .pg-404-card h1{
  max-width:710px;
  font-size:clamp(28px,3.2vw,43px)!important;
  line-height:1.45!important;letter-spacing:-.055em!important;
  margin:0 0 18px!important;padding:0!important;
  background:none!important;border:0!important;
  color:#fffaf0!important;font-weight:900!important;
}
body.error404 .pg-404-card>p{
  color:#e0d9cc!important;font-size:13px!important;line-height:2!important;
  max-width:600px;text-align:left!important;margin:0 0 27px!important;
}
body.error404 .pg-404-links{
  display:flex!important;align-items:center;flex-wrap:wrap;gap:10px!important;
  margin:29px 0 0!important;padding:0!important;
}
body.error404 .pg-404-links a{
  display:inline-flex!important;align-items:center;justify-content:center;
  min-height:41px;padding:10px 16px!important;
  background:rgba(255,255,255,.045)!important;
  border:1px solid rgba(221,190,132,.46)!important;
  border-radius:3px!important;
  color:#f0dfba!important;
  font-size:11px!important;font-weight:900!important;
  text-decoration:none!important;
}
body.error404 .pg-404-links a:hover{background:rgba(224,187,120,.18)!important}
body.error404 .pg-404-links .pg-404-link-primary{
  background:linear-gradient(135deg,#e2c995,#c3a066)!important;
  color:#22221d!important;border-color:#e5ca96!important;
}
body.error404 .pg-404-links .pg-404-link-primary:hover{filter:brightness(1.07)}

/* Static pages: touch title/chrome, not WordPress page contents. */
body.page:not(.home) #contents{padding-top:32px}
body.page:not(.home) .cps-post-header{
  position:relative;
  padding:37px 41px!important;margin:0 0 25px!important;
  border:1px solid rgba(159,129,82,.75)!important;
  border-radius:5px!important;
  background:
    radial-gradient(ellipse at 85% 0%,rgba(215,175,101,.13),transparent 43%),
    linear-gradient(125deg,#1d2223,#2a2b27)!important;
}
body.page:not(.home) .cps-post-header:before{
  content:"PANDA / INFORMATION";
  display:block;color:#d8b879;
  font:800 10px/1.5 Georgia,serif;letter-spacing:.18em;
  margin:0 0 13px;
}
body.page:not(.home) .cps-post-header .cps-post-title{
  padding:0!important;margin:0 0 6px!important;
  font-size:clamp(25px,3vw,35px)!important;
  line-height:1.45!important;color:#fffbf2!important;
  background:none!important;border:0!important;box-shadow:none!important;
}
body.page:not(.home) .cps-post-header .cps-post-meta{
  color:#c4b8a2!important;font-size:11px!important;
}
/* Avoid styling article copy, article TOCs, post callouts, images, etc. */

@media(max-width:760px){
 body.search #contents{padding-top:18px!important}
 body.search .pg-search-hero{
  padding:30px 24px!important;margin-bottom:24px!important;
 }
 body.search .pg-search-hero h1{font-size:26px!important}
 body.search .pg-search-hero:after{font-size:60px;right:24px;top:24px}
 body.search .pg-search-results .pg-section-head{padding-left:14px!important}
 body.error404 #contents.pg-404-wrap{padding:22px 13px 40px!important}
 body.error404 .pg-404-card{min-height:0;padding:44px 28px!important}
 body.error404 .pg-404-card:before{font-size:175px;top:30px;right:-15px}
 body.error404 .pg-404-card h1{font-size:29px!important}
 body.page:not(.home) #contents{padding-top:17px}
 body.page:not(.home) .cps-post-header{padding:26px 22px!important}
}
@media(max-width:480px){
 body.search .pg-search-hero{padding:28px 20px!important}
 body.search .pg-search-hero:before{inset:8px}
 body.search .pg-search-hero:after{font-size:46px;right:23px;top:22px}
 body.search .pg-search-hero h1{font-size:23px!important}
 body.search .pg-search-form input,
 body.error404 .pg-search-form input{min-height:46px!important;padding:10px 11px!important;font-size:12px!important}
 body.search .pg-search-form button,
 body.error404 .pg-search-form button{min-width:82px;padding:8px 10px!important;font-size:12px!important}
 body.search .pg-search-form button svg,
 body.error404 .pg-search-form button svg{width:16px;height:16px}
 body.search .pg-search-empty{padding:30px 19px!important}
 body.error404 .pg-404-card{padding:40px 24px!important}
 body.error404 .pg-404-card h1{font-size:26px!important}
 body.error404 .pg-404-card>p{font-size:12px!important}
 body.error404 .pg-404-links{gap:8px!important}
 body.error404 .pg-404-links a{padding:9px 10px!important;font-size:10px!important}
}
@media(prefers-reduced-motion:reduce){
 body.search .pg-search-form button,
 body.error404 .pg-404-links a{transition:none!important}
}
