/*
Theme Name: Tonga Secondary ERP Theme
Theme URI: https://tongamarket.com/TongaSecondary/
Author: Steven Esau, with GPT
Description: Minimal professional WordPress theme for the Tonga Secondary ERP dashboard and login shell.
Version: 1.0.2
Text Domain: ts-theme
*/

:root {
  --ts-ink: #18202f;
  --ts-muted: #5e6678;
  --ts-red: #a51931;
  --ts-teal: #0b6b75;
  --ts-line: #dfe5ee;
  --ts-soft: #f6f8fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ts-ink);
  background: var(--ts-soft);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.ts-site {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.ts-site-header,
.ts-site-footer {
  padding: 18px clamp(18px, 4vw, 54px);
  background: #fff;
  border-bottom: 1px solid var(--ts-line);
}

.ts-site-footer {
  border-top: 1px solid var(--ts-line);
  border-bottom: 0;
  color: var(--ts-muted);
}

.ts-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ts-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.ts-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--ts-red), var(--ts-teal));
  border-radius: 8px;
}

.ts-nav-link,
.ts-button,
.ts-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.ts-nav-link {
  color: var(--ts-teal);
}

.ts-button,
.ts-login-button {
  color: #fff;
  background: var(--ts-red);
}

.ts-main {
  padding: clamp(24px, 5vw, 64px);
}

.ts-card {
  max-width: 980px;
  padding: clamp(22px, 4vw, 42px);
  background: #fff;
  border: 1px solid var(--ts-line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(23, 32, 47, .10);
}

.ts-card h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
}

.ts-card p {
  color: var(--ts-muted);
  font-size: 18px;
  line-height: 1.6;
}

.ts-login-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.ts-login-panel h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 6vw, 56px);
}

.ts-login-panel p {
  color: var(--ts-muted);
}

.page-template-default .ts-dashboard-page {
  padding: 0;
}

@media (max-width: 720px) {
  .ts-brand-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
