.msc-wrap{
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  color: #111;
}

.msc-card{
  width: 100%;
  background: #fff;
  border: 1px solid #111;
  border-radius: 14px;
  padding: 20px 0;
box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.msc-title{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
  padding-bottom: 12px;
  border-bottom: 2px solid #111;
  margin-bottom: 16px;
}
.msc-subcard{
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
}
.msc-kv{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  font-size: 14px;
  line-height: 1.55;
}
.msc-k{
  display: inline-block;
  min-width: 72px;
  font-weight: 700;
}
.msc-v{ opacity: 0.92; }

.msc-form{
  display: grid;
  gap: 14px;
}
.msc-field label{
  display:block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.msc-field input[type="date"],
.msc-field input[type="time"],
.msc-select{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 10px;
  outline: none;
  box-sizing: border-box;
}
.msc-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.msc-btn{
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  border: 2px solid #111;
  background: #111;
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.msc-btn:hover{
  background: #fff;
  color: #111;
}
.msc-btn-secondary{
  background: #fff;
  color: #111;
}
.msc-btn-secondary:hover{
  background: #111;
  color: #fff;
}
.msc-note{
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.55;
  margin-top: 10px;
}

.msc-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.msc-pillar{
  border: 1px solid rgba(0,0,0,0.20);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.msc-pillar-label{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.2px;
  opacity: 0.9;
  margin-bottom: 10px;
}
.msc-pillar-main{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 8px;
  border-top: 1px solid rgba(0,0,0,0.10);
  border-bottom: 1px solid rgba(0,0,0,0.10);
}
.msc-stem, .msc-branch{
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}
.msc-branch{ opacity: 0.92; }
.msc-pillar-sub{
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  opacity: 0.92;
  line-height: 1.5;
}
.msc-meta{
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.70;
}

.msc-proof-title{
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
}
.msc-proof{
  font-size: 13px;
  line-height: 1.65;
}
.msc-proof-box{
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed rgba(0,0,0,0.35);
  border-radius: 12px;
}

.msc-actions{
  margin-top: 18px;
}

.msc-section{
  margin-top: 18px;
  padding-top: 2px;
}
.msc-section-title{
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
}
.msc-body{
  font-size: 13px;
  line-height: 1.65;
  display: grid;
  gap: 10px;
}
.msc-paragraph{
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
}

.msc-table-wrap{
  width: 100%;
  overflow-x: auto;
}
.msc-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.msc-table th, .msc-table td{
  border: 1px solid rgba(0,0,0,0.15);
  padding: 10px 8px;
  text-align: center;
  white-space: nowrap;
}
.msc-table th{
  font-weight: 900;
}

.msc-mt{ margin-top: 14px; }
.msc-mt-lg{ margin-top: 18px; }

@media (max-width: 980px){
  .msc-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .msc-row{ grid-template-columns: 1fr; }
  .msc-grid{ grid-template-columns: 1fr; }
  .msc-card{ padding: 16px; }
}


/* Utility: hover black background + white text (use with secondary buttons) */
.msc-hover-invert:hover,
.msc-hover-invert:focus,
.msc-hover-invert:active{
  background: #111 !important;
  color: #fff !important;
}
.msc-hover-invert:hover *,
.msc-hover-invert:focus *,
.msc-hover-invert:active *{
  color: #fff !important;
}
a.msc-hover-invert:hover,
a.msc-hover-invert:focus{
  color: #fff !important;
}

/* Theme override guard for link hover colors */
a.msc-btn-secondary:hover{ color:#fff !important; }


/* Optional: full-bleed to viewport (use on wrapper if needed) */
.msc-fullbleed{ width:100vw; margin-left: calc(50% - 50vw); }


.msc-ads{
  width: 100%;
  min-height: 10px;
}
