/* ═══════════════════════════════════════════════════════════
   SGS Worksheet Styles — Shear Genius Society © 2026
   Premium dark-theme worksheet styling for all programs
   ═══════════════════════════════════════════════════════════ */

/* ── FONTS & RESET ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

/* ── BODY ── */
.ws-body{
  background:#0B0B0B;
  color:#E8E8E8;
  font-family:'Montserrat',sans-serif;
  font-size:15px;
  line-height:1.65;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}

/* ── BRAND BAR (top header) ── */
.ws-brand-bar{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 28px;
  background:rgba(19,19,19,0.92);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(190,190,190,0.1);
  position:sticky;top:0;z-index:100;
}
.ws-brand-bar img{
  height:36px;width:auto;
}
.ws-brand-name{
  font-family:'Cormorant Garamond',serif;
  font-size:15px;font-weight:600;
  letter-spacing:3px;text-transform:uppercase;
  color:rgba(208,208,208,0.8);
  flex:1;
}
.ws-back-link{
  font-size:11px;font-weight:600;
  letter-spacing:2px;text-transform:uppercase;
  color:rgba(166,166,166,0.7);
  text-decoration:none;
  padding:6px 14px;
  border:1px solid rgba(166,166,166,0.2);
  border-radius:4px;
  transition:all 0.2s;
}
.ws-back-link:hover{
  color:#B7B7B7;
  border-color:rgba(166,166,166,0.5);
  background:rgba(166,166,166,0.06);
}

/* ── PROGRESS BAR ── */
.ws-progress-bar{
  display:flex;align-items:center;gap:16px;
  padding:12px 28px;
  background:rgba(15,15,15,0.7);
  border-bottom:1px solid rgba(190,190,190,0.06);
}
.ws-progress-track{
  flex:1;height:6px;
  background:rgba(255,255,255,0.06);
  border-radius:3px;overflow:hidden;
}
.ws-progress-fill{
  height:100%;width:0;
  background:linear-gradient(90deg,#7C7C7C,#777777);
  border-radius:3px;
  transition:width 0.4s ease;
}
.ws-progress-label{
  font-size:11px;font-weight:600;
  letter-spacing:1.5px;
  color:rgba(208,208,208,0.5);
  white-space:nowrap;
}

/* ── CONTAINER ── */
.ws-container{
  max-width:820px;
  margin:0 auto;
  padding:40px 28px 80px;
}

/* ── CHAPTER HEADER ── */
.ws-chapter-header{
  text-align:center;
  margin-bottom:36px;
  padding-bottom:32px;
  border-bottom:1px solid rgba(190,190,190,0.1);
}
.ws-program-tag{
  display:inline-block;
  font-size:10px;font-weight:700;
  letter-spacing:3px;text-transform:uppercase;
  padding:6px 18px;
  border-radius:3px;
  margin-bottom:16px;
}
/* Program colors */
.ws-program-tag.cos{background:rgba(119,119,119,0.15);color:#979797;border:1px solid rgba(119,119,119,0.3)}
.ws-program-tag.nt{background:rgba(124,124,124,0.15);color:#A0A0A0;border:1px solid rgba(124,124,124,0.3)}
.ws-program-tag.est,.ws-program-tag.es{background:rgba(45,180,160,0.15);color:#BEBEBE;border:1px solid rgba(45,180,160,0.3)}
.ws-program-tag.bar{background:rgba(180,180,180,0.15);color:#A8A8A8;border:1px solid rgba(180,180,180,0.3)}

.ws-chapter-title{
  font-family:'Cormorant Garamond',serif;
  font-size:32px;font-weight:700;
  color:#E8E8E8;
  line-height:1.2;
  margin-bottom:12px;
}
.ws-subtitle{
  font-size:12px;font-weight:500;
  letter-spacing:1px;
  color:rgba(208,208,208,0.5);
}
.ws-dot{
  margin:0 8px;opacity:0.4;
}

/* ── STUDENT INFO ── */
.ws-student-info{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-bottom:40px;
  padding:24px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(190,190,190,0.08);
  border-radius:8px;
}
.ws-info-field label{
  display:block;
  font-size:10px;font-weight:600;
  letter-spacing:2px;text-transform:uppercase;
  color:rgba(208,208,208,0.45);
  margin-bottom:6px;
}
.ws-info-field input{
  width:100%;
  padding:10px 14px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(190,190,190,0.12);
  border-radius:4px;
  color:#E8E8E8;
  font-family:'Montserrat',sans-serif;
  font-size:14px;
  transition:border-color 0.2s;
}
.ws-info-field input:focus{
  outline:none;
  border-color:rgba(166,166,166,0.4);
  background:rgba(255,255,255,0.06);
}
.ws-info-field input::placeholder{color:rgba(208,208,208,0.25)}

/* ── SECTIONS ── */
.ws-section{
  margin-top:40px;
  margin-bottom:20px;
}
.ws-section-header{
  display:flex;align-items:center;gap:14px;
  margin-bottom:8px;
}
.ws-section-icon{
  width:36px;height:36px;
  display:flex;align-items:center;justify-content:center;
  font-family:'Montserrat',sans-serif;
  font-size:14px;font-weight:700;
  border-radius:6px;
  flex-shrink:0;
}
.ws-section-icon.pink{background:rgba(119,119,119,0.15);color:#979797;border:1px solid rgba(119,119,119,0.25)}
.ws-section-icon.amber{background:rgba(180,180,180,0.15);color:#A8A8A8;border:1px solid rgba(180,180,180,0.25)}
.ws-section-icon.green{background:rgba(45,180,100,0.15);color:#4ADE80;border:1px solid rgba(45,180,100,0.25)}
.ws-section-icon.blue{background:rgba(126,126,126,0.15);color:#9A9A9A;border:1px solid rgba(126,126,126,0.25)}
.ws-section-icon.purple{background:rgba(124,124,124,0.15);color:#A0A0A0;border:1px solid rgba(124,124,124,0.25)}

.ws-section-title{
  font-family:'Cormorant Garamond',serif;
  font-size:22px;font-weight:600;
  color:#E8E8E8;
  letter-spacing:0.5px;
}
.ws-section-rule{
  border:none;height:1px;
  background:linear-gradient(90deg,rgba(119,119,119,0.4),transparent);
  margin-bottom:8px;
}
.ws-section-rule.amber{background:linear-gradient(90deg,rgba(180,180,180,0.4),transparent)}
.ws-section-rule.green{background:linear-gradient(90deg,rgba(45,180,100,0.4),transparent)}
.ws-section-rule.blue{background:linear-gradient(90deg,rgba(126,126,126,0.4),transparent)}
.ws-section-rule.purple{background:linear-gradient(90deg,rgba(124,124,124,0.4),transparent)}

.ws-teaching-note{
  font-size:13px;font-weight:500;
  color:rgba(208,208,208,0.45);
  font-style:italic;
  margin-bottom:16px;
}

/* ── QUESTIONS ── */
.ws-question{
  padding:20px 24px;
  margin-bottom:12px;
  background:rgba(255,255,255,0.025);
  border:1px solid rgba(190,190,190,0.06);
  border-radius:8px;
  transition:border-color 0.2s;
}
.ws-question:hover{
  border-color:rgba(190,190,190,0.12);
}
.ws-q-header{
  display:flex;align-items:center;gap:12px;
  margin-bottom:10px;
}
.ws-q-number{
  font-size:11px;font-weight:700;
  letter-spacing:1.5px;text-transform:uppercase;
  color:rgba(208,208,208,0.5);
}
.ws-q-type{
  font-size:9px;font-weight:600;
  letter-spacing:2px;text-transform:uppercase;
  padding:3px 10px;
  border-radius:3px;
}
.ws-q-type.fib{background:rgba(180,180,180,0.12);color:#A8A8A8}
.ws-q-type.mc{background:rgba(45,180,100,0.12);color:#4ADE80}
.ws-q-type.tf{background:rgba(126,126,126,0.12);color:#9A9A9A}
.ws-q-type.sa{background:rgba(124,124,124,0.12);color:#A0A0A0}
.ws-q-text{
  font-size:15px;
  color:#D9D9D9;
  line-height:1.7;
}

/* ── VOCABULARY MATCHING ── */
.ws-match-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.ws-match-col-label{
  font-size:10px;font-weight:700;
  letter-spacing:2.5px;text-transform:uppercase;
  color:rgba(208,208,208,0.4);
  padding-bottom:10px;
  border-bottom:1px solid rgba(190,190,190,0.08);
  margin-bottom:10px;
}
.ws-match-item{
  display:flex;align-items:flex-start;gap:8px;
  padding:8px 0;
  font-size:14px;
  color:#D1D1D1;
}
.ws-match-num{
  font-weight:700;
  color:rgba(208,208,208,0.5);
  min-width:24px;
}
.ws-match-letter{
  font-weight:700;
  color:rgba(166,166,166,0.7);
  min-width:24px;
}
.ws-match-text{flex:1}
.ws-match-input{
  width:36px;height:32px;
  text-align:center;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(190,190,190,0.15);
  border-radius:4px;
  color:#E8E8E8;
  font-family:'Montserrat',sans-serif;
  font-size:14px;font-weight:600;
  text-transform:uppercase;
  transition:border-color 0.2s;
  flex-shrink:0;
}
.ws-match-input:focus{
  outline:none;
  border-color:rgba(166,166,166,0.5);
  background:rgba(255,255,255,0.08);
}

/* ── FILL IN THE BLANK ── */
.ws-fib-text{
  font-size:15px;color:#D9D9D9;line-height:1.9;
}
.ws-fib-blank{
  display:inline-block;
  width:180px;
  padding:4px 10px;
  background:rgba(255,255,255,0.04);
  border:none;
  border-bottom:2px solid rgba(180,180,180,0.35);
  color:#E8E8E8;
  font-family:'Montserrat',sans-serif;
  font-size:14px;
  transition:border-color 0.2s;
}
.ws-fib-blank:focus{
  outline:none;
  border-bottom-color:rgba(180,180,180,0.7);
  background:rgba(255,255,255,0.06);
}
.ws-fib-blank::placeholder{color:rgba(208,208,208,0.2)}

/* ── MULTIPLE CHOICE ── */
.ws-mc-options{
  display:flex;flex-direction:column;gap:8px;
  margin-top:8px;
}
.ws-mc-option{
  display:flex;align-items:center;gap:12px;
  padding:12px 16px;
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(190,190,190,0.08);
  border-radius:6px;
  cursor:pointer;
  transition:all 0.2s;
}
.ws-mc-option:hover{
  background:rgba(255,255,255,0.05);
  border-color:rgba(190,190,190,0.15);
}
.ws-mc-option.selected{
  background:rgba(124,124,124,0.08);
  border-color:rgba(124,124,124,0.35);
}
.ws-mc-radio{
  width:18px;height:18px;
  border:2px solid rgba(190,190,190,0.2);
  border-radius:50%;
  flex-shrink:0;
  transition:all 0.2s;
  position:relative;
}
.ws-mc-option.selected .ws-mc-radio{
  border-color:#7C7C7C;
  background:#7C7C7C;
}
.ws-mc-option.selected .ws-mc-radio::after{
  content:'';position:absolute;
  top:50%;left:50%;transform:translate(-50%,-50%);
  width:6px;height:6px;
  background:#fff;border-radius:50%;
}
.ws-mc-label{
  font-size:14px;color:#D1D1D1;
}
.ws-mc-letter{
  font-weight:700;
  color:rgba(208,208,208,0.5);
  margin-right:6px;
}

/* ── TRUE / FALSE ── */
.ws-tf-input{
  display:inline-block;
  width:36px;height:32px;
  text-align:center;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(126,126,126,0.25);
  border-radius:4px;
  color:#E8E8E8;
  font-family:'Montserrat',sans-serif;
  font-size:14px;font-weight:700;
  text-transform:uppercase;
  margin-right:8px;
  transition:border-color 0.2s;
}
.ws-tf-input:focus{
  outline:none;
  border-color:rgba(126,126,126,0.6);
  background:rgba(255,255,255,0.08);
}

/* ── SHORT ANSWER ── */
.ws-sa-textarea{
  width:100%;
  padding:14px 16px;
  margin-top:8px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(190,190,190,0.1);
  border-radius:6px;
  color:#E8E8E8;
  font-family:'Montserrat',sans-serif;
  font-size:14px;
  line-height:1.7;
  resize:vertical;
  min-height:100px;
  transition:border-color 0.2s;
}
.ws-sa-textarea:focus{
  outline:none;
  border-color:rgba(166,166,166,0.35);
  background:rgba(255,255,255,0.05);
}
.ws-sa-textarea::placeholder{color:rgba(208,208,208,0.2)}

/* ── FOOTER ── */
.ws-footer{
  display:flex;align-items:center;justify-content:center;gap:16px;
  padding:28px;
  border-top:1px solid rgba(190,190,190,0.08);
  margin-top:40px;
}
.ws-footer-logo{
  height:28px;width:auto;opacity:0.5;
}
.ws-footer-text{
  font-size:11px;
  letter-spacing:1px;
  color:rgba(208,208,208,0.35);
  line-height:1.6;
}

/* ── PRINT STYLES ── */
@media print{
  .ws-body{background:#fff!important;color:#111!important}
  .ws-brand-bar{position:static;background:#fff!important;backdrop-filter:none!important;border-bottom:2px solid #111!important;padding:8px 16px!important}
  .ws-brand-name{color:#111!important}
  .ws-back-link{display:none!important}
  .ws-progress-bar,.ws-print-hide{display:none!important}
  .ws-container{padding:16px!important;max-width:100%!important}
  .ws-chapter-header{border-bottom:1px solid #ccc!important}
  .ws-chapter-title{color:#111!important;font-size:24px!important}
  .ws-program-tag{border:1px solid #666!important;color:#333!important;background:transparent!important}
  .ws-subtitle,.ws-teaching-note{color:#555!important}
  .ws-section-title{color:#111!important}
  .ws-section-rule{background:#ccc!important}
  .ws-question{background:transparent!important;border:1px solid #ddd!important;page-break-inside:avoid}
  .ws-q-number,.ws-q-type{color:#333!important;background:transparent!important;border:1px solid #999!important}
  .ws-q-text,.ws-fib-text,.ws-mc-label,.ws-match-text{color:#111!important}
  .ws-match-num,.ws-match-letter{color:#333!important}
  .ws-mc-option{border:1px solid #ccc!important;background:transparent!important}
  .ws-mc-radio{border:2px solid #666!important;background:transparent!important}
  .ws-match-input,.ws-tf-input,.ws-fib-blank,.ws-sa-textarea,.ws-info-field input{
    background:transparent!important;border:1px solid #999!important;color:#111!important}
  .ws-fib-blank{border:none!important;border-bottom:1.5px solid #333!important}
  .ws-student-info{background:transparent!important;border:1px solid #ccc!important}
  .ws-info-field label{color:#333!important}
  .ws-footer{border-top:1px solid #ccc!important}
  .ws-footer-text{color:#555!important}
  .ws-footer-logo{opacity:0.8!important}
  .ws-print-line{display:inline-block;min-width:180px;border-bottom:1px solid #999;height:1.2em}
  .ws-answer-key,.ws-answer-toggle{display:none!important}
}

/* ── RESPONSIVE ── */
@media(max-width:640px){
  .ws-match-grid{grid-template-columns:1fr;gap:16px}
  .ws-student-info{grid-template-columns:1fr}
  .ws-container{padding:24px 16px 60px}
  .ws-chapter-title{font-size:24px}
  .ws-brand-bar{padding:10px 16px;gap:10px}
  .ws-brand-name{font-size:12px;letter-spacing:2px}
  .ws-question{padding:16px}
}
