
/* =========================================================
   MindScape — Final UI / Responsive Pass
   One final override layer to keep the existing functionality
   while making the visual system consistent across pages.
   ========================================================= */

:root{
  --ms-content:1120px;
  --ms-gutter:22px;
  --ms-card-radius:18px;
  --ms-control-radius:12px;
  --ms-shadow:0 8px 24px rgba(7,46,45,.06);
}

/* ---------- Shared readability ---------- */
html{scroll-padding-top:78px}
body{overflow-x:hidden}
.container{width:100%;max-width:var(--ms-content);margin-inline:auto;padding-inline:var(--ms-gutter)}
button,input,textarea,select{font-family:Poppins,Arial,sans-serif}
:focus-visible{outline:3px solid rgba(111,167,255,.34);outline-offset:2px}

/* ---------- Navbar ---------- */
.site-nav{
  position:sticky;
  top:0;
  z-index:5000;
  background:rgba(255,250,247,.96);
  border-bottom:1px solid rgba(232,225,221,.95);
  box-shadow:0 2px 14px rgba(7,46,45,.035);
}
.site-nav-inner{
  position:relative;
  width:100%;
  max-width:1180px;
  min-height:66px;
  padding:8px 20px;
  display:flex;
  align-items:center;
  gap:18px;
}
.site-logo{
  flex:0 0 auto;
  font-size:27px;
  line-height:1;
}
.site-menu{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:4px;
  margin-left:auto;
  font-size:11.5px;
}
.site-menu a{
  white-space:nowrap;
  padding:9px 10px;
  border-radius:10px;
  font-weight:700;
}
.site-menu a:hover,
.site-menu a.active{
  background:#fff0eb;
  color:var(--coral);
}
.site-menu .nav-report{
  padding:10px 13px;
  border-radius:11px;
  background:var(--navy);
  color:#fff;
}
.site-menu .nav-report:hover{background:var(--coral);color:#fff}

/* Hamburger */
.mobile-nav-toggle{
  display:none;
  flex:0 0 42px;
  width:42px;
  height:42px;
  margin-left:auto;
  padding:0;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--navy);
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(7,46,45,.06);
}
.hamburger-lines{
  width:19px;
  height:16px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.hamburger-lines span{
  width:100%;
  height:2px;
  display:block;
  border-radius:99px;
  background:currentColor;
  transition:transform .22s ease,opacity .18s ease;
}
.mobile-nav-toggle.is-open .hamburger-lines span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.mobile-nav-toggle.is-open .hamburger-lines span:nth-child(2){opacity:0}
.mobile-nav-toggle.is-open .hamburger-lines span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.mobile-nav-panel{
  position:absolute;
  display:block;
  left:12px;
  right:12px;
  top:calc(100% + 8px);
  z-index:6000;
  max-height:calc(100vh - 82px);
  overflow-y:auto;
  padding:8px;
  background:rgba(255,255,255,.985);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 18px 42px rgba(7,46,45,.14);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-8px) scale(.985);
  transform-origin:top center;
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
}
.mobile-nav-panel.open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:none;
}
.mobile-nav-panel a{
  display:flex;
  align-items:center;
  min-height:46px;
  width:100%;
  margin:2px 0;
  padding:11px 13px;
  border-radius:11px;
  color:var(--ink);
  font-size:13px;
  font-weight:700;
  line-height:1.25;
}
.mobile-nav-panel a:hover,
.mobile-nav-panel a:focus-visible,
.mobile-nav-panel a.active{
  background:#fff0eb;
  color:var(--coral);
}
.mobile-nav-panel .nav-report{
  justify-content:center;
  margin-top:7px;
  background:var(--navy);
  color:#fff;
}
.mobile-nav-panel .nav-report:hover,
.mobile-nav-panel .nav-report:focus-visible{
  background:var(--coral);
  color:#fff;
}

/* ---------- Shared buttons ---------- */
.btn{
  min-height:42px;
  border-radius:12px;
  padding:10px 17px;
  font-size:12px;
  font-weight:800;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(7,46,45,.08)!important}

/* ---------- Community ---------- */
.community-page .community-hero{
  padding:58px 0 72px;
  background:linear-gradient(135deg,#fff7f3 0%,#fbf7fd 100%);
}
.community-page .community-hero h1{
  font-size:clamp(42px,5.5vw,62px);
  line-height:.96;
  letter-spacing:-1px;
}
.community-page .community-hero p{
  max-width:650px;
  font-size:13px;
  line-height:1.7;
}
.community-page .privacy-pill{
  margin-top:18px;
  padding:9px 12px;
  border-radius:13px;
  box-shadow:none;
}
.community-page .community-main{padding:48px 0 70px}
.community-page .community-layout{
  grid-template-columns:minmax(0,1fr) 285px;
  gap:18px;
  align-items:start;
}
.community-page .feed,
.community-page .side-card{
  border-radius:17px;
  box-shadow:var(--ms-shadow);
}
.community-page .feed{padding:18px}
.community-page .feed-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.community-page .feed-top h2{font-size:25px}
.community-page .feed-top p{
  font-size:11px;
  line-height:1.55;
}
.community-page .filters{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:flex-end;
}
.community-page .filters .filter{
  min-height:36px;
  height:36px;
  padding:0 12px;
  border-radius:10px;
  font-size:10px;
}
.community-page .feed-tools{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px;
  margin:14px 0 10px;
}
.community-page .feed-tools input{
  min-height:42px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 13px;
  font-size:11px;
}
.community-page .feed-tools .ghost-danger{
  min-height:42px;
  border-radius:12px;
  padding:0 14px;
  font-size:10px;
  font-weight:800;
}
.community-page .composer{
  border-radius:15px;
  padding:14px;
  background:#fff;
}
.community-page .composer textarea{
  min-height:78px;
  font-size:12px;
  line-height:1.6;
}
.community-page .composer-bottom{
  display:flex;
  align-items:center;
  gap:9px;
}
.community-page .composer-bottom span{
  margin-right:auto;
  font-size:10px;
}
.community-page .composer-bottom select{
  height:40px;
  min-height:40px;
  border-radius:11px;
  padding:0 11px;
  font-size:10px;
}
.community-page .composer-bottom .btn{
  min-width:155px;
  min-height:40px;
  height:40px;
  border-radius:11px;
  font-size:10px;
}
.community-page .post,
.community-page .feed-item{
  border-radius:15px;
  padding:14px;
  box-shadow:0 7px 22px rgba(7,46,45,.045)!important;
}
.community-page .post-head{gap:9px}
.community-page .post-head strong{font-size:11px}
.community-page .post-head small{font-size:9px}
.community-page .post-text{
  font-size:12px;
  line-height:1.65;
  margin:8px 0;
}
.community-page .post-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #f0ebe7;
}
.community-page .post-actions button{
  min-height:36px;
  height:36px;
  padding:0 12px;
  border-radius:10px;
  font-size:10px;
}
.community-page .comment{
  padding:9px;
  border-radius:12px;
  margin-top:8px;
}
.community-page .comment-content{padding:8px}
.community-page .comment-content>strong{font-size:10px}
.community-page .comment-content p{font-size:10px;line-height:1.5}
.community-page .comment-actions{gap:5px}
.community-page .comment-actions button,
.community-page .mini-delete{
  min-height:30px;
  height:30px;
  padding:0 9px;
  border-radius:9px;
  font-size:9px;
}
.community-page .comment-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px;
  margin-top:10px;
}
.community-page .comment-box input{
  min-height:40px;
  font-size:10px;
}
.community-page .comment-box button{
  min-width:72px;
  min-height:40px;
  height:40px;
  border-radius:10px;
  font-size:10px;
}
.community-page .sidebar{gap:12px}
.community-page .side-card{padding:15px}
.community-page .side-card h3{font-size:19px}
.community-page .side-card p,
.community-page .side-card li{
  font-size:10.5px;
  line-height:1.65;
}
.community-page .side-link{font-size:10px}

/* ---------- Teacher Space ---------- */
.teacher-hero{
  padding:58px 0 72px;
  background:linear-gradient(135deg,#fff7f3 0%,#fbf7fd 100%);
}
.teacher-hero h1{
  font-size:clamp(42px,5.5vw,62px);
  line-height:.96;
  letter-spacing:-1px;
}
.teacher-hero p{
  max-width:700px;
  font-size:13px;
  line-height:1.7;
}
.privacy-note{
  max-width:780px;
  margin-top:18px;
  padding:13px 14px;
  border-radius:13px;
  font-size:10px;
  line-height:1.6;
}
.teacher-layout{
  grid-template-columns:minmax(0,1fr) 285px;
  gap:18px;
  margin-top:-25px;
  align-items:start;
}
.teacher-panel,.info-card{
  border-radius:17px;
  box-shadow:var(--ms-shadow);
}
.teacher-panel{padding:18px}
.panel-head{margin-bottom:13px}
.panel-head h2{font-size:25px}
.panel-head p{font-size:10.5px;line-height:1.55}
.online{font-size:9px;padding:7px 10px}
.chat-window{
  height:350px;
  padding:13px;
  border-radius:14px;
  gap:9px;
}
.message{max-width:74%}
.bubble{
  padding:9px 11px;
  border-radius:14px;
  font-size:10.5px;
  line-height:1.55;
}
.message-meta{font-size:8px}
.chat-compose{
  margin-top:11px;
  padding-top:11px;
  border-top:1px solid var(--line);
}
.topic-row label{font-size:10px}
.topic-row select{
  margin-top:5px;
  min-height:40px;
  border-radius:11px;
  font-size:10px;
}
.chat-compose textarea{
  min-height:76px;
  margin-top:8px;
  border-radius:11px;
  padding:10px 11px;
  font-size:11px;
  line-height:1.55;
}
.teacher-bottom{
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:8px;
}
.teacher-bottom span{font-size:9px}
.teacher-bottom button{
  min-height:40px;
  padding:9px 15px;
  border-radius:11px;
  font-size:10px;
}
.info-card{
  padding:15px;
  margin-bottom:11px;
}
.info-card b{font-size:11.5px}
.info-card p{
  font-size:10px;
  line-height:1.6;
}

/* ---------- General inner-page typography ---------- */
.awareness-hero h1,.header h1{font-size:clamp(42px,5.5vw,62px)}
.site-footer p{font-size:10.5px}
.site-footer-links{font-size:10.5px}

/* ---------- Tablet ---------- */
@media (max-width:900px){
  .site-menu{display:none}
  .mobile-nav-toggle{display:flex}
  .community-page .community-layout,
  .teacher-layout{grid-template-columns:1fr}
  .community-page .sidebar{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .teacher-layout{margin-top:-20px}
}

/* ---------- Mobile ---------- */
@media (max-width:760px){
  body.mobile-menu-open{overflow:hidden}
  .site-nav-inner{
    min-height:62px;
    padding:8px 14px;
    gap:10px;
  }
  .site-logo{
    font-size:25px;
    max-width:calc(100% - 54px);
  }
  .mobile-nav-panel{left:10px;right:10px}
  .mobile-nav-panel a{min-height:45px}

  .container{padding-inline:16px}
  .community-page .community-hero,
  .teacher-hero{padding:48px 0 64px}
  .community-page .community-hero h1,
  .teacher-hero h1{font-size:43px}
  .community-page .community-main{padding:38px 0 55px}

  .community-page .feed,
  .teacher-panel{padding:14px}
  .community-page .feed-top{display:block}
  .community-page .filters{
    justify-content:flex-start;
    margin-top:12px;
  }
  .community-page .feed-tools{
    grid-template-columns:1fr;
  }
  .community-page .feed-tools .ghost-danger{
    width:100%;
  }
  .community-page .composer-bottom{
    display:grid;
    grid-template-columns:1fr;
  }
  .community-page .composer-bottom span{
    margin:0;
  }
  .community-page .composer-bottom select,
  .community-page .composer-bottom .btn{
    width:100%;
  }
  .community-page .sidebar{
    display:flex;
    flex-direction:column;
  }
  .community-page .side-card{width:100%}

  .teacher-layout{
    padding-inline:16px;
  }
  .panel-head{display:block}
  .online{
    display:inline-flex;
    margin-top:8px;
  }
  .chat-window{height:340px}
  .message{max-width:88%}
  .teacher-bottom{display:grid;grid-template-columns:1fr}
  .teacher-bottom span{margin:0}
  .teacher-bottom button{width:100%}
}

@media (max-width:520px){
  .site-nav-inner{padding-inline:11px}
  .site-logo{font-size:23px}
  .mobile-nav-panel{left:8px;right:8px}
  .mobile-nav-panel a{font-size:12.5px}

  .community-page .community-hero h1,
  .teacher-hero h1{font-size:39px}
  .community-page .feed-top h2,
  .panel-head h2{font-size:23px}
  .community-page .post-actions button{flex:1 1 auto}
  .community-page .comment-box{grid-template-columns:1fr}
  .community-page .comment-box button{width:100%}
  .chat-window{height:320px}
}

@media (max-width:360px){
  .community-page .community-hero h1,
  .teacher-hero h1{font-size:36px}
  .mobile-nav-panel a{min-height:43px}
}
