/* MonkeyPC Forum Boxes 1.0.0: welcome banner, help and plans box, Join the Troop box, stats row.
   Uses The MonkeyPC forum style colours, with fallbacks. "html body" weight so the website-header
   extension's forum.css (loaded later) can't override. */

/* Pill buttons */
html body .mpcb-btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 20px;border-radius:999px;font-family:var(--body,inherit);font-weight:700;font-size:15px;line-height:1.3;text-decoration:none;white-space:nowrap;transition:background-color .15s,border-color .15s}
html body .mpcb-btn:hover{text-decoration:none}
html body .mpcb-btn-amber,html body .mpcb-btn-amber:visited{background:#f6c945;color:#402408!important}
html body .mpcb-btn-amber:hover{background:#e6b92f;color:#402408!important}
html body .mpcb-btn-ghost,html body .mpcb-btn-ghost:visited{background:transparent;color:#fff!important;border:1.5px solid rgba(255,255,255,.45)}
html body .mpcb-btn-ghost:hover{background:rgba(255,255,255,.12);border-color:#fff!important;color:#fff!important}
html body .mpcb-btn-dark,html body .mpcb-btn-dark:visited{background:#5f3915;color:#fff!important}
html body .mpcb-btn-dark:hover{background:#6b4219;color:#fff!important}
html body .mpcb-btn-plain,html body .mpcb-btn-plain:visited{background:#fff;color:#402408!important;border:1.5px solid #e9d8b4}
html body .mpcb-btn-plain:hover{border-color:#48b01c!important;background:#f3f8eb;color:#402408!important}

/* Welcome banner (board index) */
.mpc-welcome{position:relative;overflow:hidden;margin:0 0 18px;padding:32px 36px 28px;border-radius:24px;color:#fff;font-family:var(--body,inherit);background:radial-gradient(70% 140% at 0% 0%,rgba(246,201,69,.2) 0%,rgba(246,201,69,0) 60%),linear-gradient(135deg,#6b4219,#52310f);box-shadow:0 1px 2px rgba(64,36,8,.05),0 10px 30px rgba(64,36,8,.1)}
.mpc-welcome:after{content:"";position:absolute;right:-60px;bottom:-90px;width:300px;height:300px;border-radius:50%;background:rgba(246,201,69,.07);pointer-events:none}
.mpc-welcome-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:18px 28px;flex-wrap:wrap}
.mpc-welcome-title{display:flex;align-items:center;gap:16px;min-width:0}
.mpc-welcome-logo{flex:none;width:60px;height:60px;background:url("./logo-mark.svg") center/contain no-repeat}
html body .mpc-welcome p.mpc-welcome-eyebrow{margin:0 0 2px;color:#f6c945;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
html body .mpc-welcome h1{margin:0;padding:0;border:0;color:#fff;font-family:var(--head,inherit);font-size:34px;font-weight:800;line-height:1.1;letter-spacing:-.025em}
.mpc-welcome-search{display:flex;align-items:center;flex:0 1 340px;min-width:240px;background:#fff;border-radius:999px;padding:4px;box-shadow:0 6px 18px rgba(0,0,0,.18)}
html body .mpc-welcome-search input{flex:1 1 auto;min-width:0;height:auto;min-height:0;margin:0;border:0;background:transparent;box-shadow:none;outline:none;padding:8px 14px;color:#402408;font:15px var(--body,inherit)}
.mpc-welcome-search input::placeholder{color:#8a6c4c}
html body .mpc-welcome-search button{flex:none;width:38px;height:38px;border:0;border-radius:50%;background:#f6c945;color:#402408;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
html body .mpc-welcome-search button:hover{background:#e6b92f}
html body .mpc-welcome-search button .icon{color:#402408!important}
.mpc-hero{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:14px 24px;flex-wrap:wrap;margin:20px 0 0;padding:18px 0 0;border-top:1px solid rgba(255,255,255,.14)}
html body .mpc-hero p.mpc-hero-line{margin:0;color:#f1e4c9;font-size:16.5px;line-height:1.5;max-width:560px}
.mpc-hero-btns{display:flex;flex-wrap:wrap;gap:10px}
html body .mpc-welcome a.mpcb-chip,html body .mpc-welcome a.mpcb-chip:visited{display:inline-flex;align-items:center;gap:6px;padding:8px 15px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff!important;font-weight:600;font-size:14.5px;line-height:1.3;text-decoration:none}
html body .mpc-welcome a.mpcb-chip:hover{background:rgba(255,255,255,.2);color:#fff!important}
html body .mpc-welcome a.mpcb-chip .icon{color:#f6c945!important;font-size:14px}

/* Who is online, Birthdays, Statistics side by side */
.mpc-stats{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px;margin:8px 0 18px}
html body .mpc-stats .stat-block{margin:0;padding:20px 24px}
html body .mpc-stats .stat-block h3{display:flex;align-items:center;gap:8px;margin:0 0 10px;padding:0;border:0}
.mpc-stats .stat-block h3:before{content:"";flex:none;width:26px;height:26px;border-radius:8px;background:#e8f4d7 center/15px 15px no-repeat}
.mpc-stats .online-list h3:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5' fill='%2348b01c'/%3E%3C/svg%3E")}
.mpc-stats .birthday-list h3:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232a7a0d' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='2.5' y='8' width='11' height='6' rx='1.5'/%3E%3Cpath d='M8 8V5M8 3.5v-1M2.5 11h11'/%3E%3C/svg%3E")}
.mpc-stats .statistics h3:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232a7a0d'%3E%3Crect x='2' y='8' width='3' height='6' rx='1'/%3E%3Crect x='6.5' y='4' width='3' height='10' rx='1'/%3E%3Crect x='11' y='2' width='3' height='12' rx='1'/%3E%3C/svg%3E")}
.mpc-stats .statistics p{line-height:1.9}

/* Help and plans box */
.mpc-help{display:grid;grid-template-columns:1.5fr 1fr;margin:22px 0 14px;background:#fff;border:1px solid #e9d8b4;border-radius:22px;box-shadow:0 1px 2px rgba(64,36,8,.05),0 10px 30px rgba(64,36,8,.06);overflow:hidden;font-family:var(--body,inherit)}
html body .mpc-help h3{border:0;padding:0;margin:0 0 6px;text-transform:none;letter-spacing:-.015em;font-family:var(--head,inherit);font-size:21px;font-weight:800;color:#402408}
html body .mpc-help p{margin:0 0 16px;font-size:15.5px;line-height:1.6;color:#6e4f30}
.mpc-help-main{position:relative;padding:26px 30px 28px 98px}
.mpc-help-main:before{content:"";position:absolute;left:30px;top:28px;width:48px;height:48px;border-radius:14px;background:#e8f4d7 url("./monkey-head.svg") center/34px 34px no-repeat}
.mpc-help-btns{display:flex;flex-wrap:wrap;gap:10px}
.mpc-help-side{padding:26px 30px 28px;background:radial-gradient(90% 120% at 100% 0%,rgba(246,201,69,.2) 0%,rgba(246,201,69,0) 60%),linear-gradient(135deg,#6b4219,#52310f)}
html body .mpc-help .mpc-help-side h3{color:#fff}
html body .mpc-help .mpc-help-side p{color:#f1e4c9}
html body .mpc-help .mpc-help-side strong{color:#fff}

/* Visitors on a topic: Join the Troop */
.mpc-join{display:flex;align-items:center;gap:18px;margin:20px 0 6px;padding:20px 24px;background:#fffbea;border:1px solid #f1dfa0;border-radius:22px;font-family:var(--body,inherit)}
.mpc-join-icon{flex:none;width:48px;height:48px;border-radius:14px;background:#f6c945 url("./monkey-head.svg") center/34px 34px no-repeat}
.mpc-join-text{flex:1 1 auto;min-width:0;color:#6e4f30;font-size:15px;line-height:1.55}
.mpc-join-text strong{display:block;font-family:var(--head,inherit);font-size:18px;color:#402408}
.mpc-join-btns{display:flex;gap:10px;flex:none}

/* Dark mode */
html[data-theme="dark"] .mpc-welcome{background:radial-gradient(70% 140% at 0% 0%,rgba(246,201,69,.14) 0%,rgba(246,201,69,0) 60%),linear-gradient(135deg,#4f2f10,#3a2108);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
html[data-theme="dark"] .mpc-welcome-search{background:#fffaf0}
html[data-theme="dark"] .mpc-help{background:#221910;border-color:#3d2e1e;box-shadow:none}
html[data-theme="dark"] body .mpc-help h3{color:#f4e9d8}
html[data-theme="dark"] body .mpc-help p{color:#cbb79a}
html[data-theme="dark"] .mpc-help-side{background:radial-gradient(90% 120% at 100% 0%,rgba(246,201,69,.14) 0%,rgba(246,201,69,0) 60%),linear-gradient(135deg,#4f2f10,#3a2108)}
html[data-theme="dark"] .mpc-help-main:before,html[data-theme="dark"] .mpc-stats .stat-block h3:before{background-color:#2f4224}
html[data-theme="dark"] body .mpcb-btn-plain{background:transparent;color:#f4e9d8!important;border-color:#3d2e1e}
html[data-theme="dark"] body .mpcb-btn-plain:hover{border-color:#48b01c!important;background:#2b2015;color:#f4e9d8!important}
html[data-theme="dark"] body .mpcb-btn-dark{background:#f6c945;color:#402408!important}
html[data-theme="dark"] .mpc-join{background:#261d10;border-color:#4a3a1c}
html[data-theme="dark"] .mpc-join-text{color:#cbb79a}
html[data-theme="dark"] .mpc-join-text strong{color:#f4e9d8}

/* Tablets and phones */
@media (max-width:960px){.mpc-stats{grid-template-columns:1fr 1fr}.mpc-stats .online-list{grid-column:1/-1}}
@media (max-width:860px){.mpc-help{grid-template-columns:1fr}.mpc-join{flex-wrap:wrap}.mpc-join-btns{width:100%}}
@media (max-width:700px){
  .mpc-welcome{padding:22px 20px;border-radius:20px}
  .mpc-welcome-logo{width:46px;height:46px}
  html body .mpc-welcome h1{font-size:26px}
  .mpc-welcome-search{flex:1 1 100%;min-width:0}
  .mpc-hero{margin-top:16px;padding-top:16px}
  html body .mpc-hero p.mpc-hero-line{font-size:15px}
  .mpc-hero-btns{width:100%}
  .mpc-hero-btns .mpcb-btn{flex:1 1 auto}
  html body .mpc-welcome a.mpcb-chip{padding:7px 12px;font-size:13.5px}
  .mpc-stats{grid-template-columns:1fr}
  .mpc-help-main{padding:22px 20px 24px}
  .mpc-help-main:before{position:static;display:block;margin-bottom:12px}
  .mpc-help-side{padding:22px 20px 24px}
  html body .mpc-help h3{font-size:19px}
  .mpc-help-btns .mpcb-btn,.mpc-help-side .mpcb-btn,.mpc-join-btns .mpcb-btn{flex:1 1 auto}
  .mpc-join{padding:18px}
}
