@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

/*
Copyright © 2026 William "Bill" Conroy. All rights reserved.
*/
:root {
  --bg: #eef3f7;
  --surface: #ffffff;
  --surface-card: #ffffff;
  --surface-muted: #f4f7fa;
  --surface-strong: #e7eef5;
  --text: #0B1D3A;
  --text-soft: #5f6e7e;
  --line: #d9e1ea;
  --primary: #0B1D3A;
  --primary-dark: #051020;
  --secondary: #edf3f8;
  --accent: #EE7023;
  --success: #0b7a55;
  --warning: #a05c00;
  --warning-bg: #fff4e4;
  --success-bg: #ebfaf4;
  --error-bg: #fff2f1;
  --error-text: #a22a27;
  --shadow: 0 18px 36px rgba(11, 29, 58, 0.09);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Open Sans', "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(11, 29, 58, 0.12), transparent 30%),
    linear-gradient(180deg, #f9fbfd 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(217, 225, 234, 0.9);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
}

.site-header-student {
  position: static;
}

.brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  margin: 0.35rem 0 0.2rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.brand-meta {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.top-nav a {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  color: var(--primary);
  font-weight: 700;
}

.top-nav a.is-active,
.top-nav a:hover {
  background: var(--secondary);
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.8rem 1.2rem 3rem;
}

.page-shell-student {
  max-width: 760px;
  padding-top: 2.2rem;
}

.page-footer {
  max-width: 1240px;
  margin: 0 auto 2rem;
  padding: 0 1.2rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.page-footer p {
  margin: 0.2rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(217, 225, 234, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(11, 29, 58, 0.12);
}

.student-card {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.6rem;
}

.success-card {
  text-align: center;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
}

h1 {
  font-size: 2.25rem;
  font-weight: 900;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.lead {
  color: var(--text-soft);
  line-height: 1.6;
}

.status-callout {
  color: var(--primary);
  font-size: 1.1rem;
}

.flash-stack {
  margin-bottom: 1rem;
}

.flash {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  margin-bottom: 0.6rem;
}

.flash-error {
  background: var(--error-bg);
  color: var(--error-text);
}

.flash-success {
  background: var(--success-bg);
  color: var(--success);
}

.stack-form,
.settings-grid,
.filters-grid {
  display: grid;
  gap: 0.95rem;
}

.settings-grid,
.filters-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(290px, 360px) 1fr;
  gap: 1.2rem;
}

label,
legend {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.checkbox-line input {
  width: auto;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

textarea {
  resize: vertical;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.button-large {
  min-height: 54px;
  font-size: 1rem;
}

.button-primary {
  background: linear-gradient(135deg, #EE7023, #E93F24);
  border: 1px solid #EE7023;
  color: #ffffff;
  transition: all 0.2s ease;
}

.button-primary:hover {
  background: linear-gradient(135deg, #E93F24, #D52134);
  border-color: #E93F24;
  box-shadow: 0 4px 12px rgba(238, 112, 35, 0.25);
}

.button-secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}

.button-secondary:hover {
  background: var(--surface-strong);
  color: var(--primary-dark);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.full-width {
  grid-column: 1 / -1;
}

.student-status-banner {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  margin: 1rem 0 1.25rem;
  border-radius: 16px;
  background: var(--surface-strong);
}

.success-soft {
  background: var(--success-bg);
}

.warning-soft {
  background: var(--warning-bg);
}

.support-text,
.label,
.metric-label,
.reflection-meta {
  color: var(--text-soft);
}

.required-dot {
  color: var(--accent);
  margin-left: 0.2rem;
}

.info-grid,
.report-grid,
.export-grid,
.two-column-grid {
  display: grid;
  gap: 1rem;
}

.info-grid,
.report-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.export-grid,
.two-column-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.checkbox-fieldset {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.checkbox-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: var(--surface-muted);
}

.checkbox-chip input {
  width: auto;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.pill,
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  background: #eaf2f8;
  color: var(--primary);
}

.pill-warning {
  background: #fff1dd;
  color: var(--warning);
}

.pill-muted {
  background: #eceff4;
  color: #536171;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.88rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.empty-cell {
  text-align: center;
  color: var(--text-soft);
  padding: 1.25rem 0.75rem;
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.link-button {
  border: none;
  background: none;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.metric-value {
  display: block;
  margin-top: 0.35rem;
  font-size: 2rem;
}

.reflection-list {
  display: grid;
  gap: 0.85rem;
}

.reflection-card {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--surface-muted);
}

.skill-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.detail-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.1rem 0 1.4rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--surface-muted);
}

.export-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.audit-pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.84rem;
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.compact-list {
  margin-top: 0.5rem;
}

.compact-form {
  min-width: 220px;
}

.action-queue-details {
  margin-top: 0.55rem;
}

.action-queue-details summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 700;
}

code {
  background: var(--surface-muted);
  padding: 0.15rem 0.35rem;
  border-radius: 8px;
}

@media (max-width: 920px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav {
    width: 100%;
  }

  .page-shell {
    padding: 1.15rem 0.85rem 2rem;
  }

  .card,
  .student-card {
    padding: 1.15rem;
  }

  .detail-row {
    flex-direction: column;
  }

  table {
    min-width: 620px;
  }
}

@media print {
  .site-header,
  .print-hide,
  .flash-stack {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .page-shell {
    max-width: none;
    padding: 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #d0d7df;
    break-inside: avoid;
  }
}
.document-pre {
  white-space: pre-wrap;
  line-height: 1.6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.inline-form {
  display: inline;
}

.live-hero-card {
  background: linear-gradient(135deg, rgba(13, 77, 117, 0.08), rgba(210, 122, 40, 0.08));
}

.live-event-card {
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
}

.live-event-headline {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.nfc-label-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.nfc-label-card {
  border: 2px dashed var(--primary);
  border-radius: 18px;
  padding: 1.4rem 1rem;
  background: #fff;
  display: grid;
  gap: 0.35rem;
  text-align: center;
  min-height: 180px;
  align-content: center;
}

/* Tooltip Container */
.label-text-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tooltip-container {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: bold;
}

.tooltip-text {
  visibility: hidden;
  position: absolute;
  bottom: 125%; /* Position above the icon */
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-card);
  color: var(--text);
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 0.8rem;
  font-weight: normal;
  line-height: 1.3;
  width: 220px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
}

/* Tooltip arrow */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--surface-card) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(13, 77, 117, 0.15);
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Branding logo containment */
.brand-link img,
.co-branding-logos img,
.kiosk-branding img,
.app-footer img {
  object-fit: contain !important;
}

