/* Transcript portal - the public pages former students use.
   Kept out of style.css so the marketing pages are untouched, and narrow enough
   that it reads as one coherent little application rather than a re-skin. */

:root {
  --tp-ink: #1f2a37;
  --tp-muted: #64748b;
  --tp-line: #e2e8f0;
  --tp-bg: #f6f8fb;
  --tp-card: #ffffff;
  --tp-brand: #174f8c;
  --tp-brand-dark: #0f3a68;
  --tp-accent: #d9a441;
  --tp-info: #1d4ed8;
  --tp-good: #15803d;
  --tp-bad: #b91c1c;
  --tp-warn: #b45309;
}

.tp-body { background: var(--tp-bg); }
.tp-body #content { padding: 26px 0 60px; }

.tp-shell { max-width: 980px; margin: 0 auto; }

.tp-head { margin-bottom: 22px; }
.tp-title { font-size: 30px; line-height: 1.15; margin: 0 0 6px; color: var(--tp-ink); }
.tp-subtitle { color: var(--tp-muted); font-size: 15px; margin: 0; }

.tp-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 20px; border-bottom: 2px solid var(--tp-line); }
.tp-nav a {
  display: inline-block; padding: 10px 16px; color: var(--tp-muted); font-weight: 600;
  text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tp-nav a:hover { color: var(--tp-brand); }
.tp-nav a.is-active { color: var(--tp-brand); border-bottom-color: var(--tp-brand); }

.tp-card {
  background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: 10px;
  padding: 22px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.tp-card h2 { font-size: 20px; margin: 0 0 4px; color: var(--tp-ink); }
.tp-card h3 { font-size: 16px; margin: 0 0 12px; color: var(--tp-ink); }
.tp-card p.lead { color: var(--tp-muted); margin: 0 0 16px; }
.tp-card--narrow { max-width: 520px; margin-left: auto; margin-right: auto; }

.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .tp-grid { grid-template-columns: 1fr; } }

.tp-field { margin-bottom: 18px; }
.tp-field > label { display: block; font-weight: 600; color: var(--tp-ink); margin-bottom: 7px; font-size: 15px; }
.tp-field .tp-hint { color: var(--tp-muted); font-size: 13px; margin-top: 5px; line-height: 1.5; }
.tp-req { color: var(--tp-bad); }
.tp-input, .tp-select, .tp-textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 16px; line-height: 1.4;
  border: 1px solid var(--tp-line); border-radius: 8px; background: #fff; color: var(--tp-ink);
}
.tp-input:focus, .tp-select:focus, .tp-textarea:focus {
  outline: none; border-color: var(--tp-brand); box-shadow: 0 0 0 3px rgba(23, 79, 140, .15);
}
.tp-textarea { min-height: 100px; resize: vertical; }
.tp-input[type="file"] { padding: 10px 12px; font-size: 15px; cursor: pointer; }
.tp-input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border: 1px solid var(--tp-line); border-radius: 6px;
  background: #f1f5f9; color: var(--tp-brand); font-weight: 600; font-size: 14px; cursor: pointer;
}
.tp-input[type="file"]::file-selector-button:hover { background: #e2e8f0; }
.tp-upload {
  border: 1px dashed var(--tp-line); border-radius: 10px; padding: 18px; margin-bottom: 18px; background: #f8fafc;
}
.tp-upload > h3 { margin: 0 0 6px; font-size: 16px; color: var(--tp-ink); font-weight: 700; }
.tp-upload__lead { margin: 0 0 14px; color: var(--tp-muted); font-size: 13.5px; line-height: 1.6; }
.tp-upload .tp-field:last-child { margin-bottom: 0; }
.tp-field--full { grid-column: 1 / -1; }

.tp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.tp-btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px; background: var(--tp-brand);
  color: #fff; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 14px;
}
.tp-btn:hover { background: var(--tp-brand-dark); color: #fff; text-decoration: none; }
.tp-btn--ghost { background: #fff; color: var(--tp-brand); border: 1px solid var(--tp-line); }
.tp-btn--ghost:hover { background: #f1f5f9; color: var(--tp-brand); }
.tp-btn--danger { background: var(--tp-bad); }
.tp-btn--danger:hover { background: #991b1b; }
.tp-btn--sm { padding: 7px 13px; font-size: 13px; }

.tp-alert { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.tp-alert--error { background: #fef2f2; border-color: #fecaca; color: var(--tp-bad); }
.tp-alert--success { background: #f0fdf4; border-color: #bbf7d0; color: var(--tp-good); }
.tp-alert--info { background: #eff6ff; border-color: #bfdbfe; color: var(--tp-info); }

.tp-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: #e2e8f0; color: #334155;
}
.badge-warning { background: #fef3c7; color: var(--tp-warn); }
.badge-info { background: #dbeafe; color: var(--tp-info); }
.badge-success { background: #dcfce7; color: var(--tp-good); }
.badge-danger { background: #fee2e2; color: var(--tp-bad); }
.badge-muted { background: #e2e8f0; color: #475569; }

.tp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tp-table th { text-align: left; color: var(--tp-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px; border-bottom: 2px solid var(--tp-line); }
.tp-table td { padding: 12px 10px; border-bottom: 1px solid var(--tp-line); vertical-align: top; }
.tp-table tr:last-child td { border-bottom: 0; }
.tp-ref { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; color: var(--tp-ink); }

.tp-empty { text-align: center; color: var(--tp-muted); padding: 34px 10px; }
.tp-empty .tp-btn { margin-top: 14px; }

.tp-dl { display: grid; grid-template-columns: 190px 1fr; gap: 8px 16px; font-size: 14px; }
.tp-dl dt { color: var(--tp-muted); }
.tp-dl dd { margin: 0; color: var(--tp-ink); }
@media (max-width: 600px) { .tp-dl { grid-template-columns: 1fr; gap: 2px 0; } .tp-dl dd { margin-bottom: 10px; } }

.tp-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.tp-timeline li { position: relative; padding: 0 0 18px 22px; border-left: 2px solid var(--tp-line); }
.tp-timeline li:last-child { padding-bottom: 0; }
.tp-timeline li::before {
  content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--tp-brand); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--tp-line);
}
.tp-timeline .tp-when { color: var(--tp-muted); font-size: 12.5px; }
.tp-timeline .tp-what { color: var(--tp-ink); font-weight: 600; }
.tp-timeline .tp-remarks { color: var(--tp-muted); font-size: 13.5px; }

.tp-doc { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--tp-line); }
.tp-doc:first-of-type { border-top: 0; }
.tp-doc__meta { color: var(--tp-muted); font-size: 13px; }
.tp-doc__name { color: var(--tp-ink); font-weight: 600; }

.tp-steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tp-steps li { flex: 1 1 150px; background: #fff; border: 1px solid var(--tp-line); border-radius: 8px; padding: 14px; }
.tp-steps .tp-step-n { display: inline-block; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; background: var(--tp-brand); color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.tp-steps strong { display: block; color: var(--tp-ink); }
.tp-steps span { color: var(--tp-muted); font-size: 13px; }

.tp-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.tp-inline .tp-field { margin-bottom: 0; }

.tp-muted { color: var(--tp-muted); }
.tp-error-list { margin: 0 0 16px; padding: 12px 16px 12px 34px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; color: var(--tp-bad); font-size: 14px; }
.tp-error-list li { margin: 3px 0; }

/* ================================================================
   Landing page (transcript.php)
   A hero panel with the request-tracking card beside it, then a
   three-step explainer. Scoped to the portal so the marketing site
   is untouched.
   ================================================================ */

.tp-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 42px 44px;
  margin-bottom: 28px;
  color: #eaf0fb;
  background:
    radial-gradient(1100px 420px at 10% -10%, rgba(217, 164, 65, .28), transparent 60%),
    linear-gradient(135deg, #0b1b34 0%, #12294a 46%, #174f8c 100%);
  box-shadow: 0 22px 48px rgba(11, 27, 52, .30);
}
.tp-hero::after {
  content: ""; position: absolute; right: -70px; bottom: -130px; width: 340px; height: 340px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 70%);
}
.tp-hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 30px 40px; align-items: center;
}
.tp-hero__copy { min-width: 0; }
.tp-eyebrow {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #f0d38a;
}
.tp-hero__lead {
  margin: 0 0 24px; max-width: 56ch; color: rgba(255, 255, 255, .88);
  font-size: 16px; line-height: 1.7;
}
.tp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.tp-hero__copy .tp-btn { background: #f0d38a; color: #20140a; }
.tp-hero__copy .tp-btn:hover { background: #e6c674; color: #20140a; }
.tp-hero__copy .tp-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.tp-hero__copy .tp-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.tp-hero__points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.tp-hero__points li { position: relative; padding-left: 24px; color: rgba(255, 255, 255, .9); font-size: 13.5px; font-weight: 600; }
.tp-hero__points li::before {
  content: ""; position: absolute; left: 1px; top: 4px; width: 13px; height: 7px;
  border-left: 2px solid #f0d38a; border-bottom: 2px solid #f0d38a; transform: rotate(-45deg);
}
.tp-hero__panel { min-width: 0; }

.tp-checkcard {
  background: #fff; border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 14px; padding: 24px; box-shadow: 0 18px 40px rgba(4, 12, 26, .30);
  scroll-margin-top: 96px;
}
.tp-checkcard__title { margin: 0 0 4px; font-size: 19px; color: var(--tp-ink); }
.tp-checkcard__lead { margin: 0 0 16px; color: var(--tp-muted); font-size: 13.5px; line-height: 1.55; }
.tp-checkcard .tp-field:last-of-type { margin-bottom: 14px; }
.tp-checkcard form > .tp-btn { width: 100%; }
.tp-checkcard__result { border: 1px solid var(--tp-line); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; background: #f8fafc; }
.tp-result__ref { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; color: var(--tp-ink); margin-bottom: 8px; }
.tp-result__row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tp-result__meta { margin: 0 0 10px; color: var(--tp-muted); font-size: 12.5px; }

.tp-section { margin: 4px 0 26px; }
.tp-section__title { font-size: 22px; margin: 0 0 16px; color: var(--tp-ink); }
.tp-section__note { color: var(--tp-muted); margin: 16px 0 0; font-size: 14.5px; line-height: 1.65; }

.tp-btn--lg { padding: 14px 26px; font-size: 15px; border-radius: 10px; }

.tp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tp-steps li {
  position: relative; background: #fff; border: 1px solid var(--tp-line); border-radius: 14px;
  padding: 24px 20px 22px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); overflow: hidden;
}
.tp-steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--tp-brand), var(--tp-accent)); }
.tp-steps .tp-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px; margin-bottom: 14px;
  background: rgba(23, 79, 140, .10); color: var(--tp-brand); font-weight: 800; font-size: 16px;
}
.tp-steps strong { display: block; color: var(--tp-ink); font-size: 15.5px; margin-bottom: 4px; }
.tp-steps span { color: var(--tp-muted); font-size: 13.5px; line-height: 1.55; }

@media (max-width: 900px) {
  .tp-hero { padding: 32px 26px; }
  .tp-hero__inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tp-steps { grid-template-columns: 1fr; }
}

/* ================================================================
   Auth pages (sign in)
   A navy brand panel beside the form card, so signing in feels like
   the same product as the landing hero.
   ================================================================ */
.tp-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }

.tp-auth__aside {
  position: relative; overflow: hidden;
  border-radius: 16px; padding: 38px 36px;
  color: #eaf0fb;
  background:
    radial-gradient(900px 360px at 8% -10%, rgba(217, 164, 65, .26), transparent 60%),
    linear-gradient(135deg, #0b1b34 0%, #12294a 46%, #174f8c 100%);
  box-shadow: 0 22px 48px rgba(11, 27, 52, .28);
}
/* #content h1..h6 outranks a lone class, so scope to #content. */
#content .tp-auth__heading {
  margin: 0 0 12px; color: #fff; font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
  font-size: clamp(22px, 1.9vw, 30px);
}
.tp-auth__text { margin: 0 0 22px; max-width: 44ch; color: rgba(234, 240, 251, .85); font-size: 14.5px; line-height: 1.7; }
.tp-auth__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tp-auth__list li { position: relative; padding-left: 26px; color: rgba(234, 240, 251, .92); font-size: 14px; font-weight: 600; }
.tp-auth__list li::before {
  content: ""; position: absolute; left: 1px; top: 4px; width: 13px; height: 7px;
  border-left: 2px solid #f2d489; border-bottom: 2px solid #f2d489; transform: rotate(-45deg);
}

.tp-auth__main { display: flex; }
.tp-auth__card { width: 100%; margin-bottom: 0; display: flex; flex-direction: column; justify-content: center; padding: 30px 28px; }
.tp-auth__head { text-align: center; margin-bottom: 20px; }
.tp-auth__seal {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #174f8c, #0f3a68); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: .02em;
}
/* #content h1 outranks a lone class, so scope to #content. */
#content .tp-auth__title { margin: 0; font-size: 22px; color: var(--tp-ink); }
.tp-auth__sub { margin: 4px 0 0; color: var(--tp-muted); font-size: 14px; }
.tp-auth__submit { width: 100%; margin-top: 4px; }
.tp-auth__alt { margin: 18px 0 0; color: var(--tp-muted); font-size: 14px; text-align: center; }
.tp-auth__alt a { color: var(--tp-brand); font-weight: 700; }
.tp-auth__help { margin: 10px 0 0; color: var(--tp-muted); font-size: 13px; text-align: center; }
.tp-auth__help a { color: var(--tp-brand); font-weight: 600; }

.tp-pass { position: relative; }
.tp-pass .tp-input { padding-right: 76px; }
.tp-pass__toggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--tp-brand);
  font-weight: 700; font-size: 13px; cursor: pointer; padding: 6px 10px; border-radius: 6px;
}
.tp-pass__toggle:hover { background: #eef2f7; }
.tp-pass__toggle:focus-visible { outline: 2px solid var(--tp-brand); outline-offset: 1px; }

@media (max-width: 860px) {
  .tp-auth { grid-template-columns: 1fr; }
  .tp-auth__aside { padding: 28px 24px; }
}

/* ================================================================
   Register page (transcript_register.php)
   The same auth shell as sign in, but the card holds a longer form
   broken into titled sections so it stays scannable.
   ================================================================ */
.tp-auth--register { grid-template-columns: .92fr 1.08fr; }
.tp-auth__card--form { justify-content: flex-start; padding: 30px 32px; }

/* A closing line under the benefits on the brand panel. */
.tp-auth__note { margin: 20px 0 0; color: rgba(234, 240, 251, .72); font-size: 13px; line-height: 1.6; }

.tp-form-section { margin: 0 0 22px; }
.tp-form-section__title {
  margin: 0 0 14px; padding-bottom: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tp-muted); border-bottom: 1px solid var(--tp-line);
}
.tp-form-section .tp-field:last-child { margin-bottom: 4px; }

/* A quiet marker on fields the office can survive without, so the required
   ones stand out without the form turning red. */
.tp-optional {
  margin-left: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--tp-muted);
}

/* The "show passwords" control under the password pair. */
.tp-check { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; color: var(--tp-ink); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.tp-check input { width: 16px; height: 16px; margin: 0; }

@media (max-width: 860px) {
  .tp-auth--register { grid-template-columns: 1fr; }
  .tp-auth__card--form { padding: 24px 22px; }
}

/* ================================================================
   Student dashboard (transcript_dashboard.php)
   The same shape the staff dashboard uses - a banner, a row of
   figures, then the list - drawn in the portal's own colours so it
   still reads as the transcript service rather than the admin panel.
   ================================================================ */

/* A shallower banner than the landing hero: it greets and points at the one
   action, and the figures below carry the rest. */
.tp-hero--dash { padding: 30px 34px; margin-bottom: 22px; }
.tp-hero--dash .tp-hero__inner { grid-template-columns: 1fr; }
.tp-hero--dash .tp-hero__lead { margin-bottom: 20px; }
.tp-hero--dash .tp-hero__cta { margin-bottom: 0; }

/* #content h1 outranks a lone class, so scope to #content. */
#content .tp-hero__title {
  margin: 0 0 10px; color: #fff; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(24px, 2.4vw, 34px); line-height: 1.12;
}

/* The figures. Each is a solid block of colour with white text and a round icon
   badge, the way the staff dashboard carries a headline number - read as a set
   of coloured tiles at a glance rather than four white boxes with a thin edge. */
.tp-stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px;
}
.tp-stat {
  position: relative; overflow: hidden; color: #fff;
  border: 0; border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .14);
}
/* A pale disc in the corner, purely decorative, so the block does not read as a
   flat rectangle. */
.tp-stat::after {
  content: ""; position: absolute; right: -46px; bottom: -62px; width: 170px; height: 170px;
  border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none;
}
.tp-stat__icon {
  position: absolute; top: 16px; right: 16px; z-index: 1; width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(255, 255, 255, .20); color: #fff;
}
.tp-stat__icon .icon { width: 20px; height: 20px; }
.tp-stat__label {
  position: relative; z-index: 1; margin: 0 0 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .86);
}
.tp-stat__value { position: relative; z-index: 1; font-size: 32px; font-weight: 800; line-height: 1; color: #fff; }
.tp-stat__note { position: relative; z-index: 1; margin: 10px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .82); }
.tp-stat--blue { background-image: linear-gradient(135deg, #1f63ac, #123c6c); }
.tp-stat--info { background-image: linear-gradient(135deg, #2f6fed, #143a9e); }
.tp-stat--good { background-image: linear-gradient(135deg, #1aa34c, #0f5c2d); }
.tp-stat--warn { background-image: linear-gradient(135deg, #dd8a12, #a1540a); }

/* A titled card head, so a heading and its action sit on one line. */
.tp-card__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px; margin-bottom: 16px;
}
.tp-card__head h2 { margin: 0; }
.tp-card__sub { margin: 3px 0 0; color: var(--tp-muted); font-size: 13.5px; }

.tp-table-wrap { overflow-x: auto; }
.tp-table tbody tr { transition: background .12s ease; }
.tp-table tbody tr:hover { background: #f8fafc; }
.tp-ref a { color: var(--tp-brand); text-decoration: none; }
.tp-ref a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .tp-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-hero--dash { padding: 26px 24px; }
}
@media (max-width: 480px) {
  .tp-stat-grid { grid-template-columns: 1fr; }
}
