@import url("calculator.css");

/* Site shell & ads (web-free.site pattern) */
.site-header {
  background: #0f172a;
  color: #f8fafc;
  border-bottom: 3px solid #818cf8;
  padding: 0.75rem 1rem;
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.site-wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.85rem;
}
.site-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: #818cf8; text-decoration: underline; }
.page-layout {
  display: flex;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
  align-items: flex-start;
}
.page-main { flex: 1; min-width: 0; }
.ad-row { display: flex; justify-content: center; margin: 12px auto; overflow: hidden; }
.ad-rail { display: flex; flex-direction: column; gap: 16px; flex: none; padding-top: 0.5rem; }
.ad-frame { border: 0; display: block; max-width: 100%; }
.ad-native { margin: 16px auto; min-height: 80px; }
.ad-sticky-mobile {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 40; justify-content: center; background: rgba(15,23,42,0.94); padding: 4px 0;
}
.site-footer {
  width: 100%;
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.8rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  line-height: 1.5;
}
.site-footer a { color: #e2e8f0; }
.smartlink { font-size: 0.75rem; opacity: 0.85; }
body.has-site-shell {
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 2rem;
}
body.has-site-shell .app-container { margin: 1rem auto; padding: 0; }
.prose-static {
  max-width: 65ch;
  line-height: 1.55;
  color: var(--text-muted);
  padding: 1.5rem 0 2rem;
}
.prose-static h1 { color: var(--text-main); font-size: 1.75rem; margin-bottom: 0.75rem; }
.prose-static h2 { color: var(--text-main); font-size: 1.15rem; margin: 1.25rem 0 0.5rem; }
.prose-static a { color: var(--primary); }
.prose-static p, .prose-static li { margin: 0.5rem 0; }
.faq-block { margin-top: 2rem; }
.faq-block h2 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text-main); }
.faq-item { margin-bottom: 1rem; }
.faq-item strong { color: var(--text-main); display: block; margin-bottom: 0.25rem; }
.school-card { margin-top: 0; }
.school-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.45;
}
.school-result {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.school-result .age-value { font-size: 2.5rem; }
.school-cutoff-summary { text-align: center; font-size: 0.9rem; color: var(--text-muted); }
.seo-intro {
  max-width: 65ch;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
@media (max-width: 960px) { .ad-rail { display: none; } }
@media (max-width: 560px) {
  .ad-sticky-mobile { display: flex; }
  body.has-site-shell { padding-bottom: 58px; }
  .ad-top .ad-frame, .ad-mid .ad-frame { transform: scale(0.92); transform-origin: top center; }
}
@media (max-width: 390px) {
  .age-value { font-size: 2.75rem; }
  .date-part { font-size: 1.05rem; width: 3rem; }
  #dob-yyyy, #comp-yyyy, #school-yyyy { width: 3.75rem; }
  .site-nav { font-size: 0.78rem; gap: 0.4rem 0.65rem; }
  .header-actions { flex-wrap: wrap; }
}
@media print {
  .ad-row, .ad-rail, .ad-native, .ad-sticky-mobile, .site-header, .site-footer, .no-print, .wf-more-tools { display: none !important; }
  body.has-site-shell { padding: 0; }
}
