/* MNV homepage hero + announcement cards v3
   Restores the hero's intended height by making its declared height include padding,
   then keeps the category-pill card treatment compact enough for the noticeboard. */

/* The base hero declares a fixed/clamped height AND substantial padding. With the
   default content-box sizing those values stack, creating the large empty upper area. */
.mnv2-home-hero{
  box-sizing:border-box;
  height:clamp(510px,43vw,650px);
  min-height:510px;
  align-items:center;
}
.mnv2-hero-copy,.mnv2-hero-noticeboard{align-self:center}
.mnv2-hero-noticeboard{
  height:min(430px,calc(100% - 24px));
  gap:10px;
}
.mnv2-hero-noticeboard .announcement-track{
  padding:2px 7px 14px 2px;
}

.mnv2-hero-noticeboard .home-announcement-card{
  --ann-accent:#a169ed;
  --ann-accent-rgb:161,105,237;
  position:relative;
  padding:13px 15px 12px;
  margin:0 0 8px;
  border:1px solid rgba(180,152,255,.17);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(18,24,43,.86),rgba(15,20,37,.76));
  box-shadow:0 7px 20px rgba(0,0,0,.11);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease;
}
.mnv2-hero-noticeboard .home-announcement-card:hover{
  transform:translateY(-1px);
  border-color:rgba(var(--ann-accent-rgb),.34);
  background:linear-gradient(145deg,rgba(20,27,48,.91),rgba(16,21,39,.82));
  box-shadow:0 10px 24px rgba(0,0,0,.15),0 0 0 1px rgba(var(--ann-accent-rgb),.035);
}
.mnv2-hero-noticeboard .mnv2-ann-category{
  display:inline-flex;align-items:center;width:max-content;max-width:100%;gap:6px;
  margin:0 0 7px;padding:4px 8px;border:1px solid rgba(var(--ann-accent-rgb),.30);
  border-radius:999px;background:rgba(var(--ann-accent-rgb),.105);color:var(--ann-accent);
  font-size:8.5px;line-height:1;font-weight:900;letter-spacing:.075em;white-space:nowrap;
}
.mnv2-ann-category-dot{flex:0 0 auto;width:5px;height:5px;border-radius:50%;background:currentColor;box-shadow:0 0 8px rgba(var(--ann-accent-rgb),.65)}
.mnv2-hero-noticeboard .home-announcement-card h3{margin:0 0 4px;font-size:16px;line-height:1.2;letter-spacing:-.018em}
.mnv2-hero-noticeboard .home-announcement-card p{margin:0 0 7px;color:#bdc7da;font-size:12.5px;line-height:1.35}
.mnv2-hero-noticeboard .mnv2-ann-read{display:inline-flex;align-items:center;gap:5px;margin:0 0 6px;color:#8ee1ff;font-size:11.5px;font-weight:850;text-decoration:none}
.mnv2-hero-noticeboard .mnv2-ann-read span{transition:transform .16s ease}
.mnv2-hero-noticeboard .mnv2-ann-read:hover span{transform:translateX(3px)}
.mnv2-hero-noticeboard .home-announcement-card small{display:block;margin:0;color:#8493b0;font-size:10.5px}
.mnv2-hero-noticeboard .home-announcement-card:last-child{margin-bottom:10px}

.mnv-ann-type-update{--ann-accent:#b889ff;--ann-accent-rgb:184,137,255}
.mnv-ann-type-standard{--ann-accent:#69d8ff;--ann-accent-rgb:105,216,255}
.mnv-ann-theme-default{--ann-accent:#a9b7d0;--ann-accent-rgb:169,183,208}

@media(max-width:900px){
  .mnv2-home-hero{height:auto;min-height:690px;box-sizing:border-box;align-items:center}
  .mnv2-hero-copy,.mnv2-hero-noticeboard{align-self:auto}
  .mnv2-hero-noticeboard{height:260px}
}
@media(max-width:560px){
  .mnv2-home-hero{height:auto;min-height:700px}
  .mnv2-hero-noticeboard{height:290px}
  .mnv2-hero-noticeboard .home-announcement-card{padding:12px 13px}
  .mnv2-hero-noticeboard .mnv2-ann-category{font-size:8px;padding:4px 7px}
}
@media(prefers-reduced-motion:reduce){
  .mnv2-hero-noticeboard .home-announcement-card,.mnv2-hero-noticeboard .mnv2-ann-read span{transition:none}
}

/* V4: homepage is a preview, not a second announcements page.
   Show exactly three complete latest items; View all handles the archive. */
.mnv2-hero-noticeboard{
  height:min(410px,calc(100% - 30px));
  gap:10px;
}
.mnv2-hero-noticeboard::after{display:none!important}
.mnv2-hero-noticeboard .announcement-track{
  display:grid;
  grid-template-rows:repeat(3,minmax(0,1fr));
  gap:9px;
  flex:1;
  min-height:0;
  overflow:hidden!important;
  padding:0!important;
  scrollbar-width:none!important;
  mask-image:none!important;
}
.mnv2-hero-noticeboard .announcement-track::-webkit-scrollbar{display:none!important}
.mnv2-hero-noticeboard .home-announcement-card{
  min-height:0;
  height:100%;
  box-sizing:border-box;
  margin:0!important;
  padding:11px 14px 10px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow:hidden;
}
.mnv2-hero-noticeboard .mnv2-ann-category{margin-bottom:6px;padding:3px 8px;font-size:8px}
.mnv2-hero-noticeboard .mnv2-ann-row{min-height:0;align-items:center}
.mnv2-hero-noticeboard .mnv2-ann-row>div{min-height:0}
.mnv2-hero-noticeboard .home-announcement-card h3{font-size:15.5px;line-height:1.15;margin:0 0 3px}
.mnv2-hero-noticeboard .home-announcement-card p{
  font-size:11.5px;line-height:1.28;margin:0 0 5px;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;
}
.mnv2-hero-noticeboard .mnv2-ann-read{font-size:11px;margin:0 0 4px}
.mnv2-hero-noticeboard .home-announcement-card small{font-size:10px}
.mnv2-hero-noticeboard .mnv2-ann-row img{width:72px;height:64px;border-radius:9px}

@media(max-width:900px){
  .mnv2-hero-noticeboard{height:330px}
  .mnv2-hero-noticeboard .announcement-track{gap:7px}
  .mnv2-hero-noticeboard .home-announcement-card{padding:9px 12px}
}
@media(max-width:560px){
  .mnv2-hero-noticeboard{height:350px}
  .mnv2-hero-noticeboard .home-announcement-card h3{font-size:14.5px}
  .mnv2-hero-noticeboard .home-announcement-card p{font-size:11px;-webkit-line-clamp:1}
  .mnv2-hero-noticeboard .mnv2-ann-row img{width:58px;height:54px}
}
