/* ==========================================================
   MyHighSchoolGPA.org — shared stylesheet
   Used by every page (index, about, privacy-policy, contact,
   and future blog posts) so the site looks like one coherent
   thing instead of a pile of separate pages.
   ========================================================== */

:root{
  --paper:#FFFFFF;
  --surface:#FFFFFF;
  --ink:#181B2E;
  --ink-soft:#5B5F76;
  --ink-faint:#9296A6;
  --rule:#E1E3EC;
  --green:#4A47E8;
  --green-dark:#3733C4;
  --green-tint:#EEEDFC;
  --green-tint-border:#D6D4F7;
  --red:#E8474A;
  --red-soft:#FCE8E8;
  --max-width:760px;
}

*{box-sizing:border-box;}

html,body{
  margin:0;
  padding:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  -webkit-font-smoothing:antialiased;
}

body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

a{color:var(--green);}

img{max-width:100%;}

/* ---------- Site header / nav ----------
   Appears the same way on every page, so a visitor (or Google)
   always has a clear way back to the tool and to the other
   pages. Also gives the site an internal-linking structure,
   which helps every page share a little authority with the
   others instead of being isolated islands. */

.site-header{
  border-bottom:1px solid var(--rule);
}

.site-header .nav-inner{
  max-width:var(--max-width);
  margin:0 auto;
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:8px;
  font-family:'Sora',sans-serif;
  font-weight:700;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
}

.brand-mark{
  width:26px;
  height:26px;
  border-radius:7px;
  background:var(--green);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:700;
  flex-shrink:0;
}

.main-nav{
  display:flex;
  gap:22px;
}

.main-nav a{
  color:var(--ink-soft);
  text-decoration:none;
  font-size:14.5px;
  font-weight:500;
}

.main-nav a:hover, .main-nav a.active{color:var(--green);}

/* ---------- Page shell ---------- */

main{
  flex:1;
}

.page{
  max-width:var(--max-width);
  margin:0 auto;
  padding:40px 20px 0;
  width:100%;
}

/* ---------- Hero / intro text (calculator + content pages) ---------- */

header.hero{
  margin-bottom:32px;
}

.kicker{
  font-size:14px;
  color:var(--green);
  font-weight:600;
  margin:0 0 8px;
}

h1{
  font-family:'Sora',sans-serif;
  font-weight:600;
  font-size:34px;
  line-height:1.2;
  margin:0 0 12px;
  letter-spacing:-0.01em;
}

.sub{
  font-size:16px;
  color:var(--ink-soft);
  max-width:56ch;
  line-height:1.55;
  margin:0;
}

/* ---------- Calculator card ---------- */

.card{
  background:var(--surface);
  border:1px solid var(--rule);
  border-radius:14px;
  padding:28px;
  margin-top:28px;
  box-shadow:0 1px 3px rgba(24,27,46,.06), 0 8px 24px rgba(24,27,46,.05);
}

.mode-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-bottom:22px;
  margin-bottom:22px;
  border-bottom:1px solid var(--rule);
}

.mode-row p{
  margin:2px 0 0;
  font-size:14px;
  color:var(--ink-soft);
}

.mode-label{
  font-weight:600;
  font-size:15px;
}

.switch{
  position:relative;
  display:inline-block;
  width:46px;
  height:26px;
  flex-shrink:0;
}
.switch input{opacity:0;width:0;height:0;}
.slider{
  position:absolute;cursor:pointer;inset:0;
  background:#D7DBE0;
  border-radius:999px;
  transition:.18s;
}
.slider::before{
  content:"";
  position:absolute;
  height:20px;width:20px;
  left:3px;top:3px;
  background:white;
  border-radius:50%;
  transition:.18s;
  box-shadow:0 1px 2px rgba(0,0,0,.25);
}
.switch input:checked + .slider{background:var(--green);}
.switch input:checked + .slider::before{transform:translateX(20px);}
.switch input:focus-visible + .slider{outline:2px solid var(--green);outline-offset:2px;}

.table-scroll{
  overflow-x:auto;
  margin:0 -4px;
  padding:0 4px;
  -webkit-overflow-scrolling:touch;
}

table{
  width:100%;
  min-width:460px;
  border-collapse:collapse;
  font-size:14px;
}

.col-name{min-width:140px;}

thead th{
  text-align:left;
  font-weight:600;
  color:var(--ink-soft);
  font-size:12.5px;
  padding:0 8px 10px;
  border-bottom:1px solid var(--rule);
}

th.col-honors, td.col-honors{text-align:center;}
th.col-remove, td.col-remove{width:36px; text-align:center;}

tbody td{
  padding:10px 8px;
  border-bottom:1px solid #EDEFF2;
  vertical-align:middle;
}

input[type="text"], select, input[type="number"]{
  width:100%;
  font-family:inherit;
  font-size:14px;
  padding:8px 9px;
  border:1px solid var(--rule);
  border-radius:6px;
  background:#FBFCFD;
  color:var(--ink);
}
input[type="text"]:focus, select:focus, input[type="number"]:focus{
  outline:2px solid var(--green);
  outline-offset:1px;
  border-color:var(--green);
}

input[type="number"]{width:64px;}

input[type="checkbox"].honors-check{
  width:18px;height:18px;
  accent-color:var(--green);
}

.remove-btn{
  background:none;
  border:none;
  color:var(--red);
  font-size:18px;
  line-height:1;
  cursor:pointer;
  padding:4px 6px;
  border-radius:6px;
}
.remove-btn:hover{background:var(--red-soft);}
.remove-btn:disabled{opacity:.3; cursor:not-allowed;}
.remove-btn:disabled:hover{background:none;}

.add-row{
  margin-top:14px;
  display:flex;
}

.add-btn{
  font-family:inherit;
  font-size:14px;
  font-weight:600;
  color:var(--green-dark);
  background:var(--green-tint);
  border:1px solid var(--green-tint-border);
  padding:9px 16px;
  border-radius:7px;
  cursor:pointer;
}
.add-btn:hover{background:#E1DFFA;}

.result{
  margin-top:26px;
  padding-top:24px;
  border-top:1px solid var(--rule);
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}

.result-label{
  font-size:14px;
  color:var(--ink-soft);
  font-weight:500;
}
.result-label span.mode-tag{
  color:var(--green);
  font-weight:600;
}

.result-value{
  font-family:'Sora',sans-serif;
  font-size:44px;
  font-weight:700;
  color:var(--green);
}

.note{
  margin-top:18px;
  font-size:13px;
  color:var(--ink-soft);
  line-height:1.6;
}

/* ---------- Ad slots ---------- */

.ad-slot{
  margin-top:24px;
  min-height:100px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px dashed var(--rule);
  border-radius:8px;
  color:var(--ink-soft);
  font-size:13px;
  background:#FAFAFC;
}

/* ---------- "Why this tool" feature grid ---------- */

.features{
  margin-top:56px;
}
.section-kicker{
  font-size:13px;
  font-weight:600;
  color:var(--green);
  text-transform:uppercase;
  letter-spacing:.04em;
  margin:0 0 6px;
}
.features h2, .steps h2{
  font-family:'Sora',sans-serif;
  font-size:24px;
  margin:0 0 28px;
}
.feature-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}
.feature-card h3{
  font-size:15px;
  font-weight:600;
  margin:0 0 6px;
}
.feature-card p{
  font-size:14px;
  line-height:1.6;
  color:var(--ink-soft);
  margin:0;
}
.feature-icon{
  width:34px;height:34px;
  border-radius:9px;
  background:var(--green-tint);
  color:var(--green);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;
  font-size:15px;
  margin-bottom:12px;
}

/* ---------- "How it works" steps ---------- */

.steps{
  margin-top:56px;
}
.step-list{
  display:grid;
  gap:22px;
}
.step-item{
  display:flex;
  gap:16px;
}
.step-num{
  font-family:'Sora',sans-serif;
  font-size:22px;
  font-weight:700;
  color:var(--green-tint-border);
  flex-shrink:0;
  width:36px;
}
.step-item h3{
  font-size:15px;
  font-weight:600;
  margin:0 0 4px;
}
.step-item p{
  font-size:14px;
  line-height:1.6;
  color:var(--ink-soft);
  margin:0;
}

@media (max-width:640px){
  .feature-grid{grid-template-columns:1fr;}
}

/* ---------- Info / FAQ content section ---------- */

.info{
  margin-top:44px;
  padding-top:8px;
}
.info h2{
  font-family:'Sora',sans-serif;
  font-size:20px;
  font-weight:600;
  margin:32px 0 10px;
}
.info h2:first-child{margin-top:0;}
.info p{
  font-size:15px;
  line-height:1.65;
  color:var(--ink-soft);
  margin:0 0 4px;
  max-width:65ch;
}

.faq-item{
  border-bottom:1px solid var(--rule);
  padding:14px 0;
}
.faq-item summary{
  font-weight:600;
  font-size:15px;
  cursor:pointer;
  list-style:none;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::before{
  content:"+";
  display:inline-block;
  width:18px;
  color:var(--green);
  font-weight:700;
}
.faq-item[open] summary::before{content:"–";}
.faq-item p{
  margin:10px 0 0 18px;
  font-size:14.5px;
}

/* ---------- Blog post list ---------- */

.post-list{
  margin-top:28px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.post-card{
  display:block;
  padding:20px;
  border:1px solid var(--rule);
  border-radius:12px;
  text-decoration:none;
  color:inherit;
  transition:.15s border-color, .15s box-shadow;
}
.post-card:hover{
  border-color:var(--green-tint-border);
  box-shadow:0 4px 14px rgba(74,71,232,.08);
}
.post-card h2{
  font-family:'Sora',sans-serif;
  font-size:17px;
  font-weight:600;
  margin:0 0 6px;
  color:var(--ink);
}
.post-card p{
  font-size:14px;
  line-height:1.55;
  color:var(--ink-soft);
  margin:0 0 10px;
}
.post-card .post-date{
  font-size:12.5px;
  color:var(--ink-faint);
}

/* ---------- Simple content pages (About / Privacy / Contact) ---------- */

.doc h1{font-size:32px;}
.doc .updated{font-size:13.5px;color:var(--ink-soft);margin:-6px 0 24px;}
.doc h2{font-family:'Sora',sans-serif;font-size:18px;margin:26px 0 8px;}
.doc p, .doc li{font-size:15px;line-height:1.7;color:var(--ink-soft);}
.doc ul{padding-left:20px;}

.mail-btn{
  display:inline-block;
  margin-top:14px;
  padding:12px 20px;
  background:var(--green);
  color:#fff;
  text-decoration:none;
  border-radius:8px;
  font-weight:600;
  font-size:15px;
}
.mail-btn:hover{background:var(--green-dark);}

/* ---------- Site footer ---------- */

.site-footer{
  margin-top:56px;
  padding:28px 20px 40px;
  border-top:1px solid var(--rule);
  text-align:center;
}
.site-footer .footer-inner{
  max-width:var(--max-width);
  margin:0 auto;
}
.footer-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.footer-about{
  font-size:13.5px;
  line-height:1.6;
  color:var(--ink-soft);
  max-width:38ch;
  margin:0 0 12px;
}
.footer-contact{
  font-size:13px;
  color:var(--ink-faint);
  margin:0 0 20px;
}
.site-footer nav{
  display:flex;
  justify-content:center;
  gap:22px;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.site-footer a{
  color:var(--ink-soft);
  font-size:14px;
  text-decoration:none;
}
.site-footer a:hover{color:var(--green); text-decoration:underline;}
.site-footer > .footer-inner > p:last-child{
  font-size:13px;
  color:var(--ink-faint);
  margin:0;
  padding-top:16px;
  border-top:1px solid var(--rule);
  width:100%;
  max-width:280px;
}

/* ---------- Responsive ---------- */

@media (max-width:600px){
  .page{padding:28px 16px 0;}
  .nav-inner{padding:14px 16px;}
  .main-nav{gap:16px;}
  h1{font-size:27px;}
  .sub{font-size:15px;}
  .card{padding:16px;border-radius:12px;}
  .result-value{font-size:34px;}
  .add-btn{width:100%;padding:11px 16px;}
  .add-row{margin-top:16px;}
  .doc h1{font-size:26px;}
}

@media (hover:none){
  .remove-btn{padding:8px 10px;}
  input[type="checkbox"].honors-check{width:20px;height:20px;}
}
