/* ============================================================
   RVR Siklab Awards 2026 — Selection Committee site
   Shared stylesheet (Lasallian / DLSU brand system)
   ============================================================ */

:root {
  --ls-green: #00703C;
  --ls-green-medium: #008C4A;
  --ls-black: #000000;
  --ls-near-black: #1a1a1a;
  --ls-white: #ffffff;
  --ls-gold: #B8860B;
  --ls-light-gold: #FDF6E3;
  --ls-light-green: #E8F5EC;
  --ls-page-bg: #F5F5F3;
  --ls-muted: #5a5a5a;
  --ls-border: #E0E0E0;
  --ls-stripe: #F9F9F7;

  --font-serif: 'EB Garamond', Garamond, Georgia, serif;
  --font-sans: 'Lato', 'Segoe UI', Arial, sans-serif;

  --radius: 8px;
  --max-width: 960px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ls-page-bg);
  color: var(--ls-near-black);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--ls-green); }
a:hover { text-decoration: underline; }

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}
h1 { font-size: clamp(1.75rem, 4vw, 3rem); color: var(--ls-near-black); }
h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ls-green);
  margin-top: 32px;
}
h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--ls-near-black);
}
h4 {
  font-size: 1.05rem;
  color: var(--ls-near-black);
}
p { margin: 0 0 16px; }

/* ============================================================
   Site header / navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ls-green);
  color: var(--ls-white);
  padding: 16px 24px;
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--ls-white);
  text-decoration: none;
  line-height: 1.2;
}
.site-title:hover { text-decoration: none; }
.site-subtitle {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.site-nav a {
  color: var(--ls-white);
  font-family: var(--font-sans);
  font-size: 15px;
  text-decoration: none;
  padding: 6px 2px 8px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
.site-nav a.active {
  font-weight: 700;
  border-bottom-color: var(--ls-white);
}

/* ============================================================
   Main layout
   ============================================================ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}
main.wide { max-width: 1100px; }

section { margin-bottom: 40px; }
section:last-child { margin-bottom: 0; }

/* ---------- Page hero ---------- */
.page-hero {
  background: var(--ls-green);
  color: var(--ls-white);
  border-radius: var(--radius);
  padding: 40px 32px;
  margin-bottom: 32px;
}
.page-hero h1 {
  color: var(--ls-white);
  margin-bottom: 8px;
}
.page-hero .hero-subtitle {
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  margin-bottom: 4px;
}
.page-hero .hero-meta {
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Full-bleed variant, if a hero needs to span the viewport */
.page-hero.full-bleed {
  border-radius: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 24px;
  padding-right: 24px;
}

/* ============================================================
   Cards & callouts
   ============================================================ */
.card {
  background: var(--ls-white);
  border: 1px solid var(--ls-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.card:last-child { margin-bottom: 0; }

.callout-green {
  background: var(--ls-light-green);
  border-left: 4px solid var(--ls-green);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.callout-gold {
  background: var(--ls-light-gold);
  border-left: 4px solid var(--ls-gold);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.callout-green p:last-child,
.callout-gold p:last-child { margin-bottom: 0; }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--ls-white);
}
thead tr { background: var(--ls-green); }
thead th {
  color: var(--ls-white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--ls-green);
}
tbody td, tbody th {
  padding: 10px 14px;
  border: 1px solid var(--ls-border);
  vertical-align: top;
}
tbody tr:nth-child(even) { background: var(--ls-white); }
tbody tr:nth-child(odd) { background: var(--ls-stripe); }

/* ============================================================
   Stat grid
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: var(--ls-white);
  border: 1px solid var(--ls-border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stat .stat-number {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ls-green);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1;
}
.stat .stat-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ls-muted);
}
.stat .stat-badge-slot { margin-top: 2px; }

/* ============================================================
   Status badges
   ============================================================ */
.badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.6;
}
.badge-verified {
  color: #00703C;
  background: #E8F5EC;
  border: 1px solid #00703C33;
}
.badge-thirdparty {
  color: #0F5132;
  background: #EAF3EE;
  border: 1px dashed #0F513255;
}
.badge-self {
  color: #5a5a5a;
  background: #F0F0EE;
  border: 1px solid #d8d8d4;
}
.badge-differs {
  color: #8B3A3A;
  background: #F9EEEE;
  border: 1px solid #8B3A3A33;
}
.badge-multiple {
  color: #8a6508;
  background: #FDF6E3;
  border: 1px solid #B8860B33;
}

/* Legend list for "How to Read This Site" */
.badge-legend {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.badge-legend-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.badge-legend-item span.legend-text {
  color: var(--ls-near-black);
  font-size: 0.95rem;
}

/* ============================================================
   Nominee cards (home page)
   ============================================================ */
.nominee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.nominee-card {
  background: var(--ls-white);
  border: 1px solid var(--ls-border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s ease;
}
.nominee-card:hover {
  border-color: var(--ls-green);
  text-decoration: none;
}
.nominee-card .nominee-name {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ls-green);
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.nominee-card .nominee-role {
  font-family: var(--font-sans);
  color: var(--ls-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.nominee-card .nominee-credential {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ls-near-black);
  border-top: 1px solid var(--ls-border);
  padding-top: 12px;
  margin-top: 4px;
}
.nominee-card .nominee-credential .cred-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ls-gold);
  margin-bottom: 3px;
}

/* ============================================================
   Quick link cards
   ============================================================ */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.link-card {
  background: var(--ls-white);
  border: 1px solid var(--ls-border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s ease;
}
.link-card:hover {
  border-color: var(--ls-green);
  text-decoration: none;
}
.link-card .link-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ls-green);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.link-card .link-desc {
  font-size: 0.9rem;
  color: var(--ls-muted);
}

/* ============================================================
   Numbered list card (About the Award, etc.)
   ============================================================ */
.attribute-list {
  margin: 0;
  padding-left: 1.4em;
}
.attribute-list li {
  margin-bottom: 12px;
  padding-left: 4px;
}
.attribute-list li:last-child { margin-bottom: 0; }

/* ============================================================
   Details / summary (collapsible sources)
   ============================================================ */
details {
  margin: 12px 0;
  border: 1px solid var(--ls-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--ls-white);
}
details + details { margin-top: 8px; }
details summary {
  color: var(--ls-green);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
}
details summary:hover { text-decoration: underline; }
details[open] summary { margin-bottom: 8px; }
details p, details ul { margin-bottom: 8px; font-size: 0.92rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  color: var(--ls-muted);
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid var(--ls-border);
  padding: 32px 24px;
  line-height: 1.6;
}
.site-footer p { margin: 0; }

/* ============================================================
   Utility
   ============================================================ */
.text-muted { color: var(--ls-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============================================================
   Responsive tweaks
   ============================================================ */
@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  main { padding: 32px 16px; }
  .page-hero { padding: 28px 20px; }
  .card { padding: 18px; }
}

/* ============================================================
   Print styles
   ============================================================ */
@media print {
  .site-header, .site-footer, .site-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  .page-hero h1, .page-hero .hero-subtitle, .page-hero .hero-meta { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
  .card, details { border: 1px solid #999; }
  thead tr { background: #eee !important; }
  thead th { color: #000 !important; }
}
