/* SENIOR SMARTTECH MASTER SPEC V1.35 */
:root {
  --navy: #0b1d32;
  --gold: #d4af37;
  --bg-light: #f8f8f8;
  --white: #ffffff;
  --grey-text: #777777;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  display: grid;
  grid-template-columns: 85% 15%;
  grid-template-areas: "header header" "main side" "footer footer";
  grid-gap: 0px;
  min-height: 100vh;
  background: var(--white);
}

/* 2. HEADER - COMPRESSED */
header {
  grid-area: header;
  background: var(--navy);
  padding: 8px 30px; /* Tightened from 12px */
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  width: 220px;
} /* Slightly smaller to match header */
.nav {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
}

/* 3. MAIN CONTENT */
main {
  grid-area: main;
  padding: 25px 30px 40px 30px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  height: 120px;
  margin-bottom: 30px;
  align-items: center;
}
.hero-h1 {
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.1;
  font-weight: 300;
}
.hero-p {
  font-size: 0.8rem;
  color: var(--grey-text);
  margin-top: 5px;
}

/* GALLERY - 120PX STRICT */
.gallery-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  height: 120px;
  overflow: hidden;
}
.img-fit {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* 5. TABLE CARD - REFINED ALIGNMENT */
.vitality-card {
  background: var(--white);
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 8px;
}
.table-title {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 300;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
  line-height: 1.1;
}
.data-table thead tr {
  background: var(--bg-light);
  height: 28px; /* Header height +2pts */
}
.data-table th {
  padding: 0 10px;
  text-align: left;
  font-weight: bold;
}
.data-table th.col-right {
  text-align: right;
} /* Action Header Right */
.data-table td {
  padding: 2px 10px;
  border-bottom: 1px solid #f9f9f9;
}
.data-table tr:hover {
  background-color: #fcfcfc;
}

/* Flush Right Action Column */
.col-right {
  text-align: right;
  padding-right: 0 !important;
}

.btn-ghost {
  border: 1px solid var(--gold);
  color: var(--navy);
  padding: 2px 6px;
  text-decoration: none;
  font-size: 0.55rem;
  font-weight: bold;
  border-radius: 3px;
  display: inline-block;
}

/* 6. SIDEBAR - MINIMALISED */
aside {
  grid-area: side;
  background: var(--bg-light);
  border-left: 1px solid #eee;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.sidebar-card {
  background: var(--white);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #eee;
  max-height: 120px;
  overflow-y: auto;
}
.sidebar-card::-webkit-scrollbar {
  width: 4px;
}
.sidebar-card::-webkit-scrollbar-thumb {
  background: var(--navy);
}

.sb-head {
  font-size: 0.55rem;
  color: var(--navy);
  margin-bottom: 5px;
  font-weight: bold;
}
.sb-body {
  font-size: 0.6rem;
  color: #555;
}
.sb-quote {
  font-family: Georgia, serif;
  font-style: italic;
}

/* 7. FOOTER - TWO LINES COMPRESSED */
footer {
  grid-area: footer;
  background: var(--navy);
  color: var(--white);
  padding: 10px 30px;
  text-align: center;
}
.footer-row-1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 6px;
}
.footer-choice {
  font-size: 12px;
  font-weight: 500;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  padding: 4px 10px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  font-size: 0.6rem;
}
.legal {
  font-size: 9px;
  opacity: 0.6;
  display: block;
}

@media (max-width: 900px) {
  body {
    grid-template-columns: 100%;
    grid-template-areas: "header" "main" "side" "footer";
  }
}
