
:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --dark: #0f172a;
  --soft-blue: #e0f2fe;
  --soft-orange: #fff7ed;
  --orange-border: #fed7aa;
  --orange-text: #7c2d12;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img, iframe, embed, object, video {
  max-width: 100%;
}

a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: white;
  padding: clamp(28px, 6vw, 64px) 18px;
}

.simple-header {
  background: #0f172a;
  color: white;
  padding: clamp(28px, 6vw, 46px) 18px;
}

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 18px;
}

.nav {
  width: min(1100px, 100%);
  margin: 0 auto clamp(24px, 5vw, 48px);
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-name {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a,
.back-link {
  color: #dbeafe;
  font-weight: 700;
}

.hero {
  max-width: 820px;
}

.hero h1,
.page-title {
  margin: 0 0 14px;
  font-size: clamp(2.15rem, 9vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.page-title {
  font-size: clamp(2rem, 7vw, 3.5rem);
}

.hero p,
.page-intro {
  max-width: 840px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(1rem, 3.5vw, 1.18rem);
  line-height: 1.65;
}

main {
  padding: 34px 0 60px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 5vw, 2rem);
}

.section-subtitle {
  color: var(--muted);
  margin: 0 0 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 18px;
}

.card,
.notice,
.about-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 4vw, 24px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 4vw, 1.45rem);
}

.card p,
.about-box p {
  color: var(--muted);
  margin: 0 0 16px;
}

.notice {
  background: var(--soft-orange);
  border-color: var(--orange-border);
  color: var(--orange-text);
  box-shadow: none;
  margin-bottom: 22px;
}

.button,
.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 15px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  border: 0;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  color: white;
}

.button.white {
  background: white;
  color: #1e3a8a;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.status,
.tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 12px;
  background: var(--soft-blue);
  color: #075985;
}

.status.coming {
  background: #f3f4f6;
  color: #6b7280;
}

.disabled {
  color: #9ca3af;
  pointer-events: none;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.file-list li {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  padding: 26px 18px;
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .nav-links a {
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    text-align: center;
  }

  .button-row,
  .button,
  .card-button {
    width: 100%;
  }

  .card-button,
  .button {
    min-height: 48px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  main {
    padding-top: 24px;
  }
}


/* Compact page header update */
.simple-header {
  padding: 24px 18px !important;
}

.simple-header .page-title {
  font-size: clamp(1.75rem, 6vw, 2.6rem) !important;
  line-height: 1.05 !important;
  margin-bottom: 8px !important;
}

.simple-header .page-intro {
  font-size: 1rem !important;
  line-height: 1.45 !important;
  margin-bottom: 0 !important;
}

.simple-header .back-link {
  margin-bottom: 10px !important;
  display: inline-block !important;
}

@media (max-width: 720px) {
  .simple-header {
    padding: 18px 16px !important;
  }

  .simple-header .page-title {
    font-size: 1.8rem !important;
  }

  .simple-header .page-intro {
    font-size: 0.95rem !important;
  }
}


/* Kevin materials file cards */
.file-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.file-card, .empty-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  overflow: hidden;
}

.file-card a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  color: #111827;
}

.file-card a:hover {
  background: #f8fafc;
  text-decoration: none;
}

.file-icon {
  flex: 0 0 auto;
  min-width: 54px;
  text-align: center;
  background: #e0f2fe;
  color: #075985;
  font-weight: 900;
  border-radius: 12px;
  padding: 10px 8px;
  font-size: 0.85rem;
}

.file-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.file-text strong {
  color: #111827;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.file-text small {
  color: #6b7280;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.empty-card {
  padding: 18px;
  color: #6b7280;
}

.empty-card strong {
  display: block;
  color: #111827;
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .file-card a {
    align-items: flex-start;
    padding: 14px;
  }

  .file-icon {
    min-width: 48px;
    font-size: 0.78rem;
  }
}

.card h3 {
  margin: -4px 0 12px;
  font-size: 1rem;
  line-height: 1.35;
  color: #374151;
}

.card p strong {
  color: #111827;
}

.test-date {
  color: #dc2626;
  font-weight: 800;
}

.test-date strong {
  color: #dc2626;
  font-weight: 900;
}

.test-date.passed {
  color: #6b7280;
  font-weight: 600;
}

.test-date.passed strong {
  color: #6b7280;
}
.site-disclaimer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 36px 0;
}

.disclaimer-box {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.65;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.disclaimer-box h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 1.25rem;
}

.disclaimer-box p {
  margin: 0 0 14px;
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .site-disclaimer {
    padding: 24px 0;
  }

  .disclaimer-box {
    padding: 18px;
    font-size: 0.9rem;
  }
}

.hub-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.topbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 14px;
  background: white;
  color: #1e3a8a;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-button:hover {
  background: #dbeafe;
  text-decoration: none;
}

@media (max-width: 720px) {
  .hub-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-button {
    width: 100%;
  }
}

/* Kevin document hub file cards */
.document-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.document-search {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 1rem;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.file-card, .empty-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  overflow: hidden;
}

.file-card a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  color: #111827;
}

.file-card a:hover {
  background: #f8fafc;
  text-decoration: none;
}

.file-icon {
  flex: 0 0 auto;
  min-width: 58px;
  text-align: center;
  background: #e0f2fe;
  color: #075985;
  font-weight: 900;
  border-radius: 12px;
  padding: 10px 8px;
  font-size: 0.85rem;
}

.file-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.file-text strong {
  color: #111827;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.file-text small {
  color: #6b7280;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.empty-card {
  padding: 18px;
  color: #6b7280;
}

.empty-card strong {
  display: block;
  color: #111827;
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .file-card a {
    align-items: flex-start;
    padding: 14px;
  }

  .file-icon {
    min-width: 48px;
    font-size: 0.78rem;
  }
}
