/* ===== Firmware Download Center - fancyindex page styles ===== */

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px 16px 40px;
  background: #f0f2f5;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ---- top header card ---- */
.page-header {
  width: min(960px, 100%);
  margin: 0 auto 20px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
}

/* brand group: company logo + title text */
.header-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .logo { height: 32px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}

.page-header h1 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #111827;
  letter-spacing: .5px;
}

.page-header .subtitle {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

/* ---- login / upload button ---- */
.login-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 10px 24px;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(37, 99, 235, .35);
  transition: background .15s ease, transform .15s ease;
}

.login-btn:hover {
  background: #1d4ed8;
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---- file listing table ---- */
table#list {
  width: min(960px, 100%);
  margin: 0 auto 20px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
  border-collapse: collapse;
}

table#list th {
  padding: 12px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
}

table#list td {
  padding: 11px 20px;
  border-bottom: 1px solid #f1f3f5;
  font-size: 14px;
}

table#list tr:last-child td { border-bottom: none; }

table#list tr:hover td { background: #f0f6ff; }

table#list a {
  color: #2563eb;
  text-decoration: none;
}

table#list a:hover { text-decoration: underline; }

/* ---- footer ---- */
.page-footer {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 0 8px;
  text-align: center;
}

.page-footer p {
  margin: 4px 0;
  font-size: 13px;
  color: #9ca3af;
}

.page-footer .copyright { font-size: 12px; }

/* hide the leftover path heading emitted by the fancyindex module
   (swallowed by the unclosed <h1> at the end of header.html) */
.fancy-stray { display: none; }

/* de-emphasize the parent-directory link */
table#list a[href="../"] { color: #9ca3af; }
