/* ============================================================
   TSW — Main Stylesheet
   Color palette:
     #009639 (primary green)
     #ffd700 (gold / accent)
     #1e6031 (dark green — header / footer)
     #e0a70d (dark gold)
   Font: Libre Franklin
   ============================================================ */

/* ── Font-Face (Libre Franklin) ──────────────────────────── */
@font-face {
    font-family: 'Libre Franklin';
    src: url('../fonts/LibreFranklin-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Libre Franklin';
    src: url('../fonts/LibreFranklin-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}

/* ── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
  --clsu-green: #009639;
  --clsu-gold: #FFD700;
  --clsu-dark: #1E6031;
  --clsu-dark-gold: #E0A70D;
  --clsu-white: #FFF;
  --clsu-black: #000;
}
html { 
  margin: 0; 
  padding: 0; 
  scroll-behavior: smooth;
}

body {
  font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0; 
  padding: 0;
  background: #f5f7fa;
}

a {
  color: #009639;
  text-decoration: none;
  transition: color .2s ease;
}
a:hover {
  color: #00c94a;
}
a:focus-visible {
  outline: 2px solid #009639;
  outline-offset: 2px;
}

.ts-banner {
  background: linear-gradient(135deg, var(--clsu-dark) 0%, var(--clsu-green) 50%, var(--clsu-dark) 100%);
  height: 100px; width: 100%;
  position: sticky; top: 0; overflow: hidden;
  display: flex; align-items: center;
  z-index: 1000;
}
.ts-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.ts-banner .container { position: relative; z-index: 1; width: 100%; }
.ts-banner-inner {
  display: flex; align-items: center; gap: 1rem;
}
.ts-banner-img {
  height: 60px; width: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.25)); flex-shrink: 0;
}
.ts-banner-seal {
  height: 60px; width: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.25)); flex-shrink: 0;
  margin-left: auto;
}
.ts-banner-title {
  color: var(--clsu-white); font-weight: 800; font-size: 1.6rem;
  letter-spacing: -.3px; margin: 0; line-height: 1.2;
}
.ts-banner-sub {
  color: var(--clsu-gold); font-weight: 600; font-size: .72rem;
  letter-spacing: 1.5px; text-transform: uppercase; margin: 0; line-height: 1.2;
}
.ts-banner-desc { display: none; }
.ts-content { padding: 2rem 0 3rem; }


.ts-row {
  background: var(--clsu-white); border-radius: .75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05); border: 1px solid #f0f0f0;
  margin-bottom: 1.25rem; overflow: hidden;
}
.ts-row-header {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f8faf8, #f0fdf4);
  border-bottom: 1px solid #e8f0e8;
}
.ts-row-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--clsu-green), var(--clsu-dark));
  color: var(--clsu-white); display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 1rem;
}
.ts-row-title { font-weight: 700; font-size: 1.1rem; color: var(--clsu-dark); margin: .35rem 0 0; }
.ts-row-title small {
  display: block; font-weight: 400; font-size: .82rem; color: #888; margin-top: .15rem;
}
.ts-row-body { padding: 1.25rem 1.5rem 1.5rem; }

.ts-sub-table { width: 100%; border-collapse: collapse; }
.ts-sub-table thead th {
  background: var(--clsu-dark); color: var(--clsu-white);
  font-weight: 600; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .4px; padding: .65rem .85rem; border: none;
  white-space: nowrap; text-align: left;
}
.ts-sub-table thead th:last-child { text-align: center; }
.ts-sub-table tbody td {
  padding: .65rem .85rem; vertical-align: middle;
  border-bottom: 1px solid #f0f0f0; font-size: .88rem;
}
.ts-sub-table tbody tr:hover { background: #f0fdf4; }
.ts-sub-table tbody tr:last-child td { border-bottom: none; }

.dl-list { list-style: none; padding: 0; margin: 0; }
.dl-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 0; border-bottom: 1px solid #f0f0f0; gap: .75rem;
}
.dl-item:last-child { border-bottom: none; }
.dl-info {
  display: flex; align-items: center; gap: .65rem; min-width: 0;
}
.dl-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--clsu-white); font-size: .82rem;
}
.dl-name { font-weight: 600; font-size: .88rem; color: #333; word-break: break-word; }

.officials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .65rem;
}
.official-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .85rem; background: #fafcfa;
  border-radius: .5rem; border: 1px solid #f0f0f0;
  transition: background .15s, border-color .15s;
}
.official-card:hover { background: #f0fdf4; border-color: var(--clsu-green); }
.official-avatar {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clsu-green), var(--clsu-dark));
  color: var(--clsu-white); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: .85rem;
}
.official-name { font-weight: 700; font-size: .85rem; color: var(--clsu-dark); line-height: 1.2; }
.official-pos { font-size: .75rem; color: #777; }

.ts-footer {
  background: var(--clsu-dark); color: rgba(255,255,255,.85);
  padding: 2rem 0 1.5rem;
}
.ts-footer a { color: var(--clsu-gold); }
.ts-footer a:hover { color: var(--clsu-white); }
.ts-footer-logo { height: 48px; filter: brightness(0) invert(1); margin-bottom: .5rem; }

@media (max-width: 768px) {
  .ts-banner { height: 80px; }
  .ts-banner-title { font-size: 1.3rem; }
  .ts-banner-sub { font-size: .65rem; letter-spacing: 1px; }
  .ts-banner-img { height: 44px; }
  .ts-banner-seal { height: 44px; }
  .ts-content { padding: 1.25rem 0 2rem; }

  .ts-row-header { padding: 1rem 1.15rem; flex-wrap: wrap; }
  .ts-row-body { padding: .85rem 1.15rem 1.15rem; }
  .ts-row-title { font-size: 1rem; }
  .ts-sub-table thead th, .ts-sub-table tbody td { padding: .5rem .6rem; font-size: .8rem; }
  .officials-grid { grid-template-columns: 1fr; }
  .dl-item { flex-direction: column; align-items: flex-start; gap: .35rem; }
}
@media (max-width: 576px) {
  .ts-banner { height: 70px; }
  .ts-banner-title { font-size: 1.1rem; }
  .ts-banner-sub { font-size: .6rem; }
  .ts-banner-img { height: 36px; }
  .ts-banner-seal { height: 36px; }
  .ts-sub-table { font-size: .78rem; }
}

/* ── Smooth scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }
