/* ============================================================
   MARIA POLYTECHNIC COLLEGE - RECORDS PAGES
   Shared by: governing-council, college-committees,
              academic-regulations, industrial-mous
   Dependency: css/common.css
   ============================================================ */

:root {
  --records-navy: #0d2347;
  --records-navy-2: #173766;
  --records-blue: #2f67d8;
  --records-orange: #f47a31;
  --records-gold: #f5a623;
  --records-cream: #f7f1e6;
  --records-soft: #f5f7fb;
  --records-text: #26334a;
  --records-muted: #68748a;
  --records-line: #dfe5ef;
}

.records-page,
.records-page *,
.records-hero,
.records-hero * {
  box-sizing: border-box;
}

.records-page {
  overflow: hidden;
  color: var(--records-text);
  background: #fff;
}

.records-page img { display: block; max-width: 100%; }

.records-page h2,
.records-page h3,
.records-hero h1 { margin: 0; font-family: var(--ff-head); }

.records-page p {
  margin: 0;
  color: var(--records-muted);
  font-size: 1rem;
  line-height: 1.78;
}

/* ---------- hero ---------- */

.records-hero {
  position: relative;
  min-height: clamp(310px, 42vh, 440px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--records-navy);
}

.records-hero__media,
.records-hero__overlay { position: absolute; inset: 0; }

.records-hero__media {
  z-index: -2;
  background-position: center 48%;
  background-size: cover;
  transform: scale(1.035);
}

.records-hero__overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,20,45,.4) 0%, rgba(13,35,71,.35) 55%, rgba(13,35,71,.43) 100%),
    linear-gradient(to top, rgba(7,20,45,.24), transparent 58%);
}

.records-hero__content {
  padding-top: clamp(38px, 8vw, 47px);
  padding-bottom: clamp(38px, 8vw, 47px);
}

.records-hero__eyebrow {
  margin: 0 0 12px;
  color: #ffc58f;
  font-family: var(--ff-head);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.records-hero h1 {
  color: #fff;
  font-size: clamp(2.7rem, 6vw, 5rem);
  font-weight: 700;
  line-height: .96;
  letter-spacing: .015em;
  text-transform: uppercase;
  text-shadow: 0 7px 32px rgba(0,0,0,.38);
}

.records-hero__content > p:last-child {
  max-width: 650px;
  margin-top: 17px;
  color: rgba(239, 244, 255, .90);
  font-size: 1.06rem;
  line-height: 1.65;
}

/* ---------- shared type ---------- */

.records-section { position: relative; padding: clamp(47px, 8vw, 59px) 0; }
.records-section--soft { background: var(--records-soft); }

.records-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--records-blue);
  font-family: var(--ff-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.records-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--records-orange);
}

.records-heading { margin-bottom: clamp(26px, 4vw, 38px); max-width: 780px; }

.records-heading h2 {
  color: var(--records-navy);
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.records-heading h2 span { color: var(--records-orange); }
.records-heading p { margin-top: 14px; }

/* ---------- document cards ---------- */

.records-docs { display: flex; flex-direction: column; gap: 14px; }

.records-doc {
  border: 1px solid var(--records-line);
  border-left: 4px solid var(--records-orange);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s;
}

.records-doc:hover { box-shadow: var(--shadow); }
.records-doc.is-open { border-left-color: var(--records-blue); box-shadow: var(--shadow); }

/* clickable header */
.records-doc__head {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.records-doc__head:focus-visible { outline: 3px solid var(--records-blue); outline-offset: -3px; }

.records-doc__chev {
  margin-left: auto;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--records-blue);
  transition: transform .25s;
}

.records-doc__chev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.1; }
.records-doc.is-open .records-doc__chev { transform: rotate(180deg); }

/* expanding viewer */
.records-doc__panel { border-top: 1px solid var(--records-line); background: var(--records-soft); }
.records-doc__panel[hidden] { display: none; }

.records-doc__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--records-line);
}

.records-doc__toolbar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--records-line);
  background: #fff;
  color: var(--records-navy);
  font-size: .84rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}

.records-doc__toolbar a:hover {
  background: var(--records-navy);
  border-color: var(--records-navy);
  color: #fff;
}

.records-doc__toolbar svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; }

.records-doc__frame { background: #525659; }

.records-doc__frame iframe {
  display: block;
  width: 100%;
  height: min(78vh, 900px);
  border: 0;
}

/* shown when the browser cannot render PDFs inline */
.records-doc__fallback {
  padding: 26px 20px;
  background: #fff;
  text-align: center;
}

.records-doc__fallback p { margin-bottom: 14px; }

.records-doc__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: rgba(244,122,49,.12);
  color: var(--records-orange);
}

.records-doc__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; }

.records-doc__body { min-width: 0; }

.records-doc__title {
  display: block;
  color: var(--records-navy);
  font-family: var(--ff-head);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.32;
}

.records-doc__meta {
  display: block;
  margin-top: 5px;
  color: var(--records-muted);
  font-size: .82rem;
  letter-spacing: .03em;
}

/* ---------- data table ---------- */

.records-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--records-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.records-table { width: 100%; border-collapse: collapse; min-width: 760px; }

.records-table caption {
  padding: 18px 20px 0;
  color: var(--records-navy);
  font-family: var(--ff-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
}

.records-table th,
.records-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--records-line);
  font-size: .92rem;
  line-height: 1.6;
}

.records-table thead th {
  background: var(--records-navy);
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: .8rem;
  border-bottom: none;
}

.records-table tbody tr:last-child th,
.records-table tbody tr:last-child td { border-bottom: none; }

.records-table tbody tr:nth-child(even) { background: var(--records-soft); }

.records-table td:first-child { color: var(--records-orange); font-weight: 600; width: 64px; }
.records-table td strong { color: var(--records-navy); font-weight: 600; }

/* ---------- note ---------- */

.records-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 17px 20px;
  border-radius: var(--radius-sm);
  background: var(--records-cream);
  border-left: 4px solid var(--records-gold);
}

.records-note svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--records-gold); stroke-width: 1.9; }
.records-note p { font-size: .93rem; }

@media (max-width: 640px) {
  .records-doc__head { padding: 15px 16px; gap: 12px; }
  .records-doc__toolbar { padding: 11px 16px; }
  /* a tall inline PDF is unusable on a phone, so keep it shorter */
  .records-doc__frame iframe { height: 62vh; }
}
