/* Weighted Grade & Average Calculators */
.wgc{--wgc-ink:#17243a;--wgc-muted:#64748b;--wgc-line:#e3e9f1;--wgc-soft:#f5f8fc;--wgc-brand:#2457a6;--wgc-brand-dark:#193f7d;--wgc-radius:18px;color:var(--wgc-ink);font-family:inherit;margin:2rem 0}
.wgc *{box-sizing:border-box}
.wgc__intro{display:flex;align-items:flex-end;justify-content:space-between;gap:1.25rem;margin-bottom:1.25rem}
.wgc__eyebrow{display:inline-block;color:var(--wgc-brand);font-size:.72rem;font-weight:800;letter-spacing:.11em;margin-bottom:.5rem}
.wgc__title{color:var(--wgc-ink);font-size:clamp(1.45rem,3vw,2rem);font-weight:750;line-height:1.15;margin:0 0 .45rem;letter-spacing:-.035em}
.wgc__description{color:var(--wgc-muted);font-size:.98rem;line-height:1.55;margin:0;max-width:42rem}
.wgc__privacy{align-items:center;background:#eef8f5;border:1px solid #d9eee8;border-radius:999px;color:#236d5f;display:inline-flex;flex:0 0 auto;font-size:.76rem;font-weight:650;gap:.5rem;padding:.55rem .8rem}
.wgc__privacy-dot{background:#159b7b;border-radius:50%;height:7px;width:7px}
.wgc__grid{align-items:stretch;display:grid;gap:1rem;grid-template-columns:minmax(0,1.55fr) minmax(250px,.8fr)}
.wgc__entry-card,.wgc__result-card{background:#fff;border:1px solid var(--wgc-line);border-radius:var(--wgc-radius);box-shadow:0 10px 35px rgba(27,48,78,.055);min-width:0;padding:clamp(1rem,2.5vw,1.5rem)}
.wgc__card-heading{align-items:flex-start;display:flex;justify-content:space-between;gap:1rem;margin-bottom:1.1rem}
.wgc__card-heading h3{color:var(--wgc-ink);font-size:1.06rem;font-weight:750;line-height:1.3;margin:0 0 .25rem}
.wgc__card-heading p{color:var(--wgc-muted);font-size:.82rem;line-height:1.45;margin:0}
.wgc__step{align-items:center;background:#edf3fc;border-radius:10px;color:var(--wgc-brand);display:inline-flex;font-size:.72rem;font-weight:800;height:31px;justify-content:center;min-width:31px}
.wgc__table-wrap{overflow-x:auto;width:100%}
.wgc__table{border-collapse:separate;border-spacing:0;min-width:470px;table-layout:fixed;width:100%}
.wgc__table th{background:var(--wgc-soft);border-bottom:1px solid var(--wgc-line);color:#526178;font-size:.72rem;font-weight:750;letter-spacing:.035em;padding:.7rem .55rem;text-align:left;text-transform:uppercase}
.wgc__table th:first-child{border-radius:9px 0 0 0;width:35%}
.wgc__table th:nth-child(2),.wgc__table th:nth-child(3){width:27%}
.wgc__table th:last-child{border-radius:0 9px 0 0;width:11%}
.wgc__table td{border-bottom:1px solid #edf1f6;padding:.55rem .35rem;vertical-align:middle}
.wgc__field{background:#fff;border:1px solid #dce4ee;border-radius:8px;color:var(--wgc-ink);font:inherit;font-size:.88rem;height:40px;max-width:100%;min-width:0;padding:.45rem .6rem;width:100%}
.wgc__field:focus{border-color:#6b94d1;box-shadow:0 0 0 3px rgba(36,87,166,.12);outline:none}
.wgc__field::placeholder{color:#9aa7b8}
.wgc__remove{align-items:center;background:transparent;border:0;border-radius:7px;color:#8a97a8;cursor:pointer;display:inline-flex;font-size:1.2rem;height:34px;justify-content:center;line-height:1;width:34px}
.wgc__remove:hover{background:#fff0f0;color:#b43c3c}
.wgc__toolbar{align-items:center;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:space-between;margin-top:1rem}
.wgc__toolbar-secondary{display:flex;flex-wrap:wrap;gap:.8rem}
.wgc__button{align-items:center;border:1px solid transparent;border-radius:9px;cursor:pointer;display:inline-flex;font:inherit;font-size:.84rem;font-weight:700;justify-content:center;min-height:42px;padding:.65rem 1rem;transition:background .15s ease,border-color .15s ease,transform .15s ease}
.wgc__button:focus-visible,.wgc__text-button:focus-visible,.wgc__remove:focus-visible{outline:3px solid rgba(36,87,166,.25);outline-offset:2px}
.wgc__button--add{background:#edf3fc;border-color:#dce8f8;color:var(--wgc-brand)}
.wgc__button--add span{font-size:1.15rem;line-height:0;margin-right:.35rem}
.wgc__button--add:hover{background:#e2ecfa}
.wgc__text-button{background:none;border:0;color:var(--wgc-brand);cursor:pointer;font:inherit;font-size:.8rem;font-weight:700;padding:.4rem 0}
.wgc__text-button:hover{color:var(--wgc-brand-dark);text-decoration:underline}
.wgc__message{background:#f7f9fc;border-radius:8px;color:var(--wgc-muted);font-size:.78rem;line-height:1.45;margin:1rem 0 0;padding:.7rem .8rem}
.wgc__result-card{background:linear-gradient(155deg,#1d3760 0%,#172b4a 100%);border-color:#1d3760;color:#fff;display:flex;flex-direction:column}
.wgc__card-heading--result h3{color:#fff}
.wgc__card-heading--result p{color:#c5d2e3}
.wgc__step--light{background:rgba(255,255,255,.12);color:#dce8fa}
.wgc__result-main{border-bottom:1px solid rgba(255,255,255,.16);padding:.8rem 0 1.2rem}
.wgc__result-label{color:#c9d7e9;display:block;font-size:.8rem;font-weight:650;margin-bottom:.35rem}
.wgc__result-value{color:#fff;display:block;font-size:clamp(2.4rem,5vw,3.3rem);font-weight:800;letter-spacing:-.055em;line-height:1.1;overflow-wrap:anywhere}
.wgc__letter-grade{color:#a8dfd2;display:inline-block;font-size:.85rem;font-weight:700;margin-top:.45rem}
.wgc__stats{display:grid;gap:.8rem;grid-template-columns:1fr 1fr;padding:1rem 0}
.wgc__stat{min-width:0}
.wgc__stat span{color:#b7c7dc;display:block;font-size:.72rem;margin-bottom:.3rem}
.wgc__stat strong{color:#fff;font-size:1rem;font-weight:750}
.wgc__result-note{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.1);border-radius:9px;color:#d6e1ef;font-size:.77rem;line-height:1.5;margin-top:auto;padding:.75rem}
.wgc__button--copy{background:#fff;color:#1d3760;margin-top:.9rem;width:100%}
.wgc__button--copy:hover:not(:disabled){background:#eaf1fa}
.wgc__button--copy:disabled{cursor:not-allowed;opacity:.55}
.wgc__copy-status{color:#b8e6d9;font-size:.72rem;min-height:1.2em;padding-top:.35rem;text-align:center}
.wgc__scale-note{color:var(--wgc-muted);font-size:.76rem;line-height:1.5;margin:.85rem 0 0}
.wgc__message--warning{background:#fff8e8;color:#8a5a12}
.wgc__message--error{background:#fff0f0;color:#9e3030}
.wgc .screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}
@media(max-width:760px){.wgc__intro{align-items:flex-start;flex-direction:column}.wgc__grid{grid-template-columns:1fr}.wgc__result-card{min-height:300px}}
@media(max-width:480px){.wgc__entry-card,.wgc__result-card{border-radius:14px;padding:.9rem}.wgc__toolbar{align-items:flex-start;flex-direction:column}.wgc__toolbar-secondary{gap:1rem}}

.wgc__format-label{align-items:flex-start;color:#526178;display:flex;flex-direction:column;font-size:.68rem;font-weight:750;gap:.25rem;text-transform:uppercase}
.wgc__format-select{background:#fff;border:1px solid #dce4ee;border-radius:8px;color:var(--wgc-ink);font:inherit;font-size:.78rem;font-weight:650;max-width:180px;min-height:36px;padding:.4rem 1.8rem .4rem .6rem;text-transform:none}
.wgc__format-select:focus{border-color:#6b94d1;box-shadow:0 0 0 3px rgba(36,87,166,.12);outline:none}
.wgc__table:has([data-wgc-possible-head]:not([hidden])){min-width:570px}
.wgc__table th[data-wgc-possible-head],.wgc__table td[data-wgc-possible-cell]{width:18%}
.wgc__table td[data-wgc-possible-cell][hidden],.wgc__table th[data-wgc-possible-head][hidden]{display:none}
