/* Scholarship sub-pages: Apply, Additional Information, Contact.
   Loads AFTER styles.css and heritage.css, so it reuses their navy-and-brass colours, fonts, nav, buttons and footer.
   Only the page banner and the layouts that are new to these pages live here. */

.skip-nav {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--amber-light); color: var(--teal-deeper);
  padding: 10px 16px; border-radius: var(--radius); font-weight: 700;
}
.skip-nav:focus { top: 10px; }

/* ---------- Page banner (smaller than the home-page hero) ---------- */
.page-hero {
  position: relative;
  padding: 132px 24px 60px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(16, 24, 38, .80) 0%, rgba(16, 24, 38, .66) 60%, rgba(16, 24, 38, .84) 100%),
    url('/Scholarship/images/looking South from the Hugh Hall House.jpg') center/cover no-repeat;
  overflow: hidden;
}
.page-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.page-hero .hero-ornament { display: flex; justify-content: center; margin-bottom: 14px; color: var(--amber-light); opacity: .85; }
.page-hero .hero-ornament svg { width: 44px; height: 44px; }
.page-hero .hero-eyebrow { margin-bottom: 12px; }
.page-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 900; line-height: 1.12; color: #fff; margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .45);
}
.page-hero .hero-rule { margin-bottom: 18px; }
.page-hero .page-hero-sub {
  font-family: 'EB Garamond', Georgia, serif; font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem); color: #ead39b; max-width: 640px; margin: 0 auto;
}

/* ---------- Reading column ---------- */
.sub-section { padding: 64px 0; }
.sub-section .section-header { margin-bottom: 36px; }
.prose { max-width: 780px; margin: 0 auto; }
.prose p { margin-bottom: 16px; }
.prose h3 { margin: 28px 0 12px; }
.prose a:not(.btn), .callout a, .frame-fallback a, .contact-info-card p a { text-decoration: underline; text-underline-offset: 3px; }
.req-list { list-style: none; counter-reset: req; margin: 0 0 20px; padding: 0; }
.req-list li {
  counter-increment: req; position: relative;
  padding: 12px 0 12px 48px; border-bottom: 1px solid var(--border);
}
.req-list li:last-child { border-bottom: 0; }
.req-list li::before {
  content: counter(req); position: absolute; left: 0; top: 11px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--white);
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: .95rem;
}
.callout {
  border: 1px solid var(--amber-light); border-left: 4px solid var(--amber);
  background: var(--parchment); border-radius: var(--radius-lg);
  padding: 18px 22px; margin: 22px 0;
}
.callout strong { color: var(--teal-deeper); }
.callout p:last-child { margin-bottom: 0; }
.fine-print { font-size: .9rem; color: var(--text-muted); font-style: italic; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- The embedded application form ---------- */
.apply-frame-wrap { max-width: 880px; margin: 0 auto; }
.frame-note {
  display: flex; align-items: center; gap: 12px;
  background: var(--parchment); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 12px 18px; margin-bottom: 14px; font-size: .95rem; color: var(--text-light);
}
.frame-note .spinner {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--amber);
  animation: frameSpin 1s linear infinite;
}
@keyframes frameSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .frame-note .spinner { animation: none; } }
.apply-frame-wrap.is-loaded .frame-note { display: none; }
.apply-frame {
  display: block; width: 100%; height: 5077px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md);
}
.frame-fallback { text-align: center; margin-top: 18px; font-size: .95rem; }
@media (max-width: 760px) { .apply-frame { height: 6400px; } }  /* narrow screens wrap the form's fields onto more lines */

/* ---------- Additional-information document cards ---------- */
.doc-grid { display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
.doc-card {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.doc-card-icon { width: 56px; height: 56px; color: var(--amber-dark); }
.doc-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.doc-card p { margin: 0; font-size: .96rem; color: var(--text-light); }
.doc-card .doc-type { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-top: 8px; }
@media (max-width: 640px) {
  .doc-card { grid-template-columns: 1fr; text-align: left; }
  .doc-card-icon { width: 44px; height: 44px; }
  .doc-card .btn { justify-self: start; }
}

/* ---------- Contact page ---------- */
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 980px; margin: 0 auto; align-items: start; }
.contact-page-grid .contact-info-card > p { margin: 0 0 14px; }
@media (max-width: 800px) { .contact-page-grid { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  .page-hero { padding: 108px 20px 44px; }
  .sub-section { padding: 48px 0; }
  .btn-row .btn { width: 100%; justify-content: center; }
}
@media print { .main-nav, .frame-note, .back-to-top { display: none !important; } .apply-frame { height: auto; } }

/* 2026-11-24: scoring rubric table (additional-info) and thank-you page */
.rubric-table { width: 100%; max-width: 520px; margin: 8px auto 24px; border-collapse: collapse; background: var(--white); border: 1px solid var(--gray-200); }
.rubric-table th, .rubric-table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--gray-100); }
.rubric-table th:last-child, .rubric-table td:last-child { text-align: right; white-space: nowrap; }
.rubric-table thead th { background: var(--teal-deeper); color: var(--white); font-weight: 600; }
.rubric-table tfoot th { background: var(--teal-50); color: var(--teal-deeper); }
.thanks-card { max-width: 640px; margin: 0 auto; text-align: center; background: var(--white); border: 1px solid var(--gray-200); border-top: 3px solid var(--amber); padding: 40px 28px; }
.thanks-card .thanks-icon { width: 56px; height: 56px; color: var(--amber-dark); margin: 0 auto 16px; display: block; }
.thanks-card p { margin-bottom: 14px; }
.thanks-card .btn-row { justify-content: center; }
.thanks-card h2 { margin-bottom: 16px; }
.thanks-card a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
