/* Vaelsys Security Advisory - Shared Styles */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #212733;
  background-color: #f3f6fa;
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #0070c9;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main.container {
  flex: 1 0 auto;
}

.site-header {
  background: linear-gradient(120deg, #051423, #08233a);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0 0.9rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.nav-link {
  color: #d0e3ff;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus {
  color: #ffffff;
}

.nav-link.active {
  font-weight: 600;
  color: #ffffff;
}

.nav-current {
  color: #ffffff;
  font-weight: 600;
}

.nav-divider {
  color: #5d7390;
}

.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-compact {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 1.9rem;
  color: #0a2540;
}

.hero-subtitle {
  margin: 0;
  color: #4a6079;
  max-width: 42rem;
}

.card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(13, 31, 55, 0.08);
  border: 1px solid #dbe4f3;
}

.card p {
  text-align: justify;
}

.card-muted {
  background-color: #f7f9fc;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: #0a2540;
}

.card h3 {
  margin-top: 1.1rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  color: #102b4e;
}

.card p {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.card ul {
  margin-top: 0.35rem;
}

.product-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.product-link {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #d4e1f3;
  background-color: #f8fbff;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.product-link:hover,
.product-link:focus {
  background-color: #f0f6ff;
  border-color: #8fb5ff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(31, 78, 135, 0.18);
}

.product-name {
  font-weight: 600;
  color: #102b4e;
}

.product-meta {
  font-size: 0.85rem;
  color: #5b6f8a;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  background-color: #020813;
  color: #9cb0d0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-note {
  color: #7085a7;
}

/* Advisory product table */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.advisory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.advisory-table thead {
  background-color: #0a2540;
  color: #ffffff;
}

.advisory-table th,
.advisory-table td {
  padding: 0.6rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid #d5e0f0;
}

.advisory-table th {
  font-weight: 600;
  white-space: nowrap;
}

.advisory-table tbody tr:nth-child(even) {
  background-color: #f7f9fc;
}

.advisory-table tbody tr:hover {
  background-color: #eef4ff;
}

.notification-link {
  font-weight: 600;
  color: #005fad;
}

.notification-link:hover,
.notification-link:focus {
  color: #003e73;
}

/* Severity labels */

.severity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.severity-low {
  background-color: #e5f6e8;
  color: #1f7a33;
  border: 1px solid #c0e9c8;
}

.severity-medium {
  background-color: #fff5e5;
  color: #a06600;
  border: 1px solid #ffd29a;
}

.severity-high {
  background-color: #ffe9e5;
  color: #b43218;
  border: 1px solid #ffc2b3;
}

.severity-critical {
  background-color: #ffe5e5;
  color: #a60000;
  border: 1px solid #ff9b9b;
}

/* Advisory detail layout */

.advisory-detail .advisory-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
}

.advisory-subtitle {
  margin-top: 0.4rem;
  color: #4a6079;
}

.advisory-meta {
  font-size: 0.85rem;
  background-color: #f4f7fc;
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  min-width: 230px;
  border: 1px solid #d5e0f0;
}

.advisory-meta .meta-label {
  font-weight: 600;
  color: #102b4e;
}

.response-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.response-matrix th,
.response-matrix td {
  padding: 0.55rem 0.55rem;
  border-bottom: 1px solid #d5e0f0;
  text-align: left;
}

.response-matrix thead {
  background-color: #e5edf9;
}

.change-log ul {
  margin-top: 0.35rem;
}

.change-log li {
  margin-bottom: 0.25rem;
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .card {
    padding: 1.2rem 1.2rem;
  }
}

