@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

:root {
  /* Logo-derived palette */
  --tc-ink: #1d2f46;
  --tc-ink-strong: #132136;
  --tc-lime: #c1d85d;
  --tc-lime-strong: #95ad3f;
  --tc-paper: #f9f7f4;
  --tc-surface: #ffffff;
  --tc-surface-muted: #f2f5ee;
  --tc-border: #d5ddd1;
  --tc-muted: #596779;
  --tc-danger: #b4232a;
  --tc-focus: rgba(149, 173, 63, 0.35);
  --tc-success: #2f7d46;

  /* Typography */
  --tc-font-body: "Public Sans", "Inter", "Segoe UI", Tahoma, sans-serif;
  --tc-font-heading: "Source Serif 4", "Public Sans", "Inter", "Segoe UI", serif;

  /* Shape + elevation */
  --tc-radius-sm: 12px;
  --tc-radius-md: 18px;
  --tc-radius-lg: 24px;
  --tc-radius-xl: 28px;
  --tc-shadow-sm: 0 3px 10px rgba(19, 33, 54, 0.08);
  --tc-shadow-md: 0 12px 30px rgba(19, 33, 54, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--tc-ink);
  font-family: var(--tc-font-body);
  line-height: 1.55;
  background:
    radial-gradient(circle at 95% 0, rgba(193, 216, 93, 0.24), transparent 46%),
    radial-gradient(circle at 0 100%, rgba(29, 47, 70, 0.12), transparent 52%),
    var(--tc-paper) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--tc-ink-strong);
  font-family: var(--tc-font-heading);
  letter-spacing: -0.012em;
}

h1 {
  font-size: clamp(2rem, 2.8vw, 2.65rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.25;
}

p,
li,
label,
small,
span {
  color: var(--tc-ink);
}

a {
  color: var(--tc-ink);
  text-decoration-color: rgba(149, 173, 63, 0.65);
  text-underline-offset: 0.14em;
}

a:hover {
  color: var(--tc-ink-strong);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--tc-lime-strong) !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--tc-focus);
}

:where(button, a, input, select, textarea):disabled,
:where(button, .btn)[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Shared surfaces */
:where(
  .card,
  .panel,
  .auth-card,
  .login-card,
  .form-container,
  .form-area,
  .profile-card,
  .modal-content,
  .chart-container,
  .stat-card,
  .metric,
  .chat,
  .disclaimer,
  .container .card,
  #users,
  #ai-tools,
  #settings,
  #ai-metrics,
  #edit-school-panel,
  #campus-panel,
  #analytics-panel,
  #remembered-panel,
  #compliance-panel
) {
  background: var(--tc-surface) !important;
  border: 1px solid var(--tc-border) !important;
  border-radius: var(--tc-radius-md) !important;
  box-shadow: var(--tc-shadow-sm) !important;
  backdrop-filter: none !important;
}

/* Header + nav */
:where(#topbar, .navbar) {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid var(--tc-border) !important;
  box-shadow: 0 2px 14px rgba(19, 33, 54, 0.07) !important;
  color: var(--tc-ink) !important;
}

:where(#topbar .brand strong, .navbar h1, #topbar strong, .site-title) {
  color: var(--tc-ink-strong) !important;
  font-family: var(--tc-font-heading);
  letter-spacing: -0.01em;
}

#topbar .brand img {
  height: 56px !important;
  width: auto !important;
  border: 1px solid #121316 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

img[src*="logo.png"] {
  border: 1px solid #121316 !important;
  background: #ffffff !important;
}

/* Public (non-auth) screens share the black header treatment */
.tc-public #topbar {
  top: 0;
  background: rgba(10, 11, 12, 0.97) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.33) !important;
  backdrop-filter: blur(8px) saturate(120%) !important;
}

.tc-public #topbar > div {
  max-width: 1240px !important;
  padding: 0.72rem 1.2rem !important;
}

.tc-public main {
  padding-top: 88px !important;
}

.tc-public .hero {
  margin-top: 0 !important;
}

.tc-public #topbar strong {
  color: #f5f7fa !important;
  letter-spacing: -0.01em;
  font-family: var(--tc-font-body);
  font-weight: 700;
}

.tc-public #topbar nav a {
  color: #f0f3f7 !important;
  border-color: transparent !important;
  border-radius: 999px;
  padding: 0.48rem 0.9rem !important;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  font-weight: 650 !important;
}

.tc-public #topbar nav a:hover,
.tc-public #topbar nav a:focus-visible {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  transform: none;
}

:where(.navbar h1, .panel h1, .panel h2, .panel h3, .login-card h2, .auth-card h2, #login-container h2) {
  color: var(--tc-ink-strong) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

:where(.nav a, .nav-links a, .nav-link, .site-nav a) {
  color: var(--tc-ink) !important;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

#topbar nav a {
  color: var(--tc-ink) !important;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.42rem 0.72rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

:where(.nav a:hover, .nav-links a:hover, .nav-link:hover, .site-nav a:hover),
:where(.nav a:focus-visible, .nav-links a:focus-visible, .nav-link:focus-visible, .site-nav a:focus-visible),
:where(.nav-link.active, .nav-links a.active) {
  color: var(--tc-ink-strong) !important;
  background: var(--tc-surface-muted) !important;
  border-color: var(--tc-border) !important;
  transform: none !important;
}

#topbar nav a:hover,
#topbar nav a:focus-visible {
  color: var(--tc-ink-strong) !important;
  background: var(--tc-surface-muted) !important;
  border-color: var(--tc-border) !important;
}

/* Buttons */
:where(button, .btn, .auth-button, #new-thread-btn, #quick-exit) {
  border: 1px solid transparent;
  border-radius: var(--tc-radius-sm) !important;
  font-family: var(--tc-font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

:where(
  button:not(.btn-secondary):not(.btn-danger):not(.logout-btn),
  .btn:not(.btn-secondary):not(.btn-danger):not(.logout-btn),
  .auth-button,
  #new-thread-btn,
  .btn-primary,
  #ask-btn,
  #top-login-btn,
  #top-verify-btn
) {
  background: var(--tc-ink) !important;
  color: #fff !important;
  border-color: rgba(19, 33, 54, 0.35) !important;
}

:where(button, .btn, .auth-button, #new-thread-btn, .btn-primary):hover,
:where(#ask-btn:hover, #top-login-btn:hover, #top-verify-btn:hover) {
  background: var(--tc-ink-strong) !important;
  transform: translateY(-1px);
  box-shadow: var(--tc-shadow-sm);
}

:where(.btn-secondary, .copy-btn) {
  background: var(--tc-surface-muted) !important;
  color: var(--tc-ink) !important;
  border: 1px solid var(--tc-border) !important;
}

:where(.btn-secondary:hover, .copy-btn:hover) {
  background: #e9efe2 !important;
}

:where(.logout-btn, .btn-danger, .delete-btn) {
  background: var(--tc-danger) !important;
  color: #fff !important;
  border-color: rgba(112, 12, 19, 0.35) !important;
}

:where(.logout-btn:hover, .btn-danger:hover, .delete-btn:hover) {
  background: #8c1d22 !important;
}

:where(.btn-success, .edit-btn) {
  background: var(--tc-success) !important;
  color: #fff !important;
  border-color: rgba(26, 92, 47, 0.35) !important;
}

:where(.btn-success:hover, .edit-btn:hover) {
  background: #256337 !important;
}

/* Inputs */
:where(
  input[type="email"],
  input[type="password"],
  input[type="text"],
  input[type="url"],
  input[type="search"],
  input[type="number"],
  input[list],
  select,
  textarea,
  .search-input,
  .form-input,
  .question-input,
  #question,
  #top-login-email,
  #top-login-code
) {
  color: var(--tc-ink) !important;
  background: var(--tc-surface) !important;
  border: 1px solid var(--tc-border) !important;
  border-radius: var(--tc-radius-sm) !important;
}

:where(
  input[type="email"],
  input[type="password"],
  input[type="text"],
  input[type="url"],
  input[type="search"],
  input[type="number"],
  input[list],
  select,
  textarea,
  .search-input,
  .form-input,
  .question-input,
  #question,
  #top-login-email,
  #top-login-code
):focus {
  border-color: var(--tc-lime-strong) !important;
  box-shadow: 0 0 0 4px var(--tc-focus) !important;
  outline: 0;
}

:where(input, textarea)::placeholder {
  color: var(--tc-muted);
}

/* Tables and list density */
:where(table, .user-table, .matrix) {
  width: 100%;
  border-collapse: collapse;
  background: var(--tc-surface);
  border-radius: var(--tc-radius-sm);
  overflow: hidden;
}

:where(table th, .user-table th, .matrix th) {
  background: var(--tc-surface-muted) !important;
  color: var(--tc-ink-strong) !important;
  border-bottom: 1px solid var(--tc-border) !important;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

:where(table td, table th, .user-table td, .user-table th, .matrix td, .matrix th) {
  padding: 0.8rem 0.85rem;
  text-align: left;
}

:where(table tbody tr, .user-table tbody tr):nth-child(even) {
  background: #fafcf7;
}

:where(table tbody tr, .user-table tbody tr):hover {
  background: #f2f6ea !important;
}

/* Common stat accents */
:where(.stat-card, .metric, .stat-item) {
  border-left: 4px solid var(--tc-lime-strong) !important;
}

:where(.stat-number, .value) {
  color: var(--tc-ink-strong) !important;
  font-weight: 800;
}

/* Chat surfaces */
:where(#chat-container, .chat-history) {
  background: var(--tc-surface-muted) !important;
  border: 1px solid var(--tc-border) !important;
  border-radius: var(--tc-radius-md) !important;
}

:where(.user-message) {
  background: rgba(193, 216, 93, 0.28) !important;
  border: 1px solid rgba(149, 173, 63, 0.45) !important;
  border-radius: var(--tc-radius-sm) !important;
}

:where(.tutor-message) {
  background: var(--tc-surface) !important;
  border: 1px solid var(--tc-border) !important;
  border-radius: var(--tc-radius-sm) !important;
}

/* Student dashboard message views */
#chat-history .message {
  border-radius: var(--tc-radius-sm) !important;
  padding: 0.75rem 0.9rem !important;
  box-shadow: none !important;
}

#chat-history .message.question {
  background: linear-gradient(135deg, var(--tc-ink) 0%, #324b70 100%) !important;
  border: 1px solid rgba(19, 33, 54, 0.38) !important;
  color: #f8fafc !important;
}

#chat-history .message.question strong,
#chat-history .message.question .markdown-content,
#chat-history .message.question .markdown-content p,
#chat-history .message.question .markdown-content li,
#chat-history .message.question .markdown-content span,
#chat-history .message.question .markdown-content code {
  color: #f8fafc !important;
}

#chat-history .message.answer {
  background: var(--tc-surface) !important;
  border: 1px solid var(--tc-border) !important;
  border-left: 4px solid var(--tc-lime-strong) !important;
  color: var(--tc-ink) !important;
}

#chat-history .message.answer strong {
  color: var(--tc-ink-strong) !important;
}

#chat-history .message.answer .markdown-content,
#chat-history .message.answer .markdown-content p,
#chat-history .message.answer .markdown-content li,
#chat-history .message.answer .markdown-content span,
#chat-history .message.answer .markdown-content code {
  color: var(--tc-ink) !important;
}

#chat-history .message .btn-secondary[data-remember-btn] {
  background: #ffffff !important;
  border: 1px solid var(--tc-border) !important;
  color: var(--tc-ink) !important;
}

/* Login/auth containers */
:where(#login-container, .auth-container) {
  padding: 2rem 1rem;
}

:where(.auth-card h2, .login-card h2, #login-container h2) {
  color: var(--tc-ink-strong) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

:where(.auth-toggle, .subtitle, .meta, .note, #top-login-msg) {
  color: var(--tc-muted) !important;
}

/* Status messaging */
:where(.error-message, #login-error, #register-error) {
  color: #8c1d22 !important;
  background: #fdebed !important;
  border: 1px solid #f2c6cb !important;
  border-left: 4px solid #b4232a !important;
}

:where(.success-message, #settings-status.success) {
  color: #215931 !important;
  background: #e8f6ed !important;
  border: 1px solid #bfdfca !important;
}

/* Footer */
.site-footer {
  background: rgba(10, 11, 12, 0.97) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.28) !important;
}

.footer-inner {
  color: #d5dbe3 !important;
}

.footer-inner a {
  color: #f3f6fb !important;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: #ffffff !important;
  text-decoration-color: rgba(193, 216, 93, 0.75) !important;
}

.site-footer {
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.72rem 1rem;
  flex-wrap: wrap;
}

/* Landing page + institutional docs */
.layout {
  gap: 0;
}

:where(#dashboard-container, #app-container, .app-container) {
  background: transparent !important;
}

.side-nav {
  background: var(--tc-surface) !important;
  border-right: 1px solid var(--tc-border) !important;
}

:where(#sidebar, .sidebar, .sidebar-content) {
  background: var(--tc-surface) !important;
  border-right: 1px solid var(--tc-border) !important;
}

:where(#sidebar h3, .sidebar h1, .sidebar h2, .sidebar h3) {
  color: var(--tc-ink-strong) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.side-nav,
.site-nav,
.site-nav ul {
  font-size: 0.95rem;
}

main > section,
main > .container > section {
  border-radius: var(--tc-radius-md) !important;
  border: 1px solid var(--tc-border) !important;
  box-shadow: var(--tc-shadow-sm) !important;
  background: var(--tc-surface) !important;
}

.doc,
pre.doc {
  background: var(--tc-surface-muted) !important;
  border: 1px solid var(--tc-border) !important;
  border-radius: var(--tc-radius-sm) !important;
  color: var(--tc-ink) !important;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.42;
}

/* About page card spacing + list alignment */
.content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content .section {
  padding: 1.35rem 1.5rem !important;
}

.content .section ul {
  margin: 0.55rem 0 0.8rem;
  padding-inline-start: 1.25rem;
}

.content .section li {
  margin: 0.22rem 0;
}

/* Home page specific refresh */
.tc-home {
  --home-ink: #101114;
  --home-muted: #46505e;
  --home-line: #d7dce2;
  --home-surface: #ffffff;
  --home-dark: #0a0b0c;
  color: var(--home-ink) !important;
  background:
    radial-gradient(620px 280px at 88% -8%, rgba(193, 216, 93, 0.16), transparent 72%),
    linear-gradient(180deg, #f7f8f8 0%, #f1f3f5 68%, #eceff2 100%) !important;
  font-family: "Public Sans", "Inter", "Segoe UI", sans-serif;
}

.tc-home #topbar {
  top: 0;
  background: rgba(10, 11, 12, 0.97) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.33) !important;
  backdrop-filter: blur(8px) saturate(120%) !important;
}

.tc-home #topbar > div {
  max-width: 1240px !important;
  padding: 0.72rem 1.2rem !important;
}

.tc-home #topbar > div > div > img {
  height: 56px !important;
  width: auto !important;
  border: 1px solid #121316 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
}

.tc-home #topbar strong {
  color: #f5f7fa !important;
  letter-spacing: -0.01em;
  font-family: var(--tc-font-body);
  font-weight: 700;
  font-size: 1.06rem !important;
}

.tc-home #topbar nav a {
  color: #f0f3f7 !important;
  border-color: transparent !important;
  border-radius: 999px;
  padding: 0.48rem 0.9rem !important;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  font-weight: 650 !important;
}

.tc-home #topbar nav a:hover,
.tc-home #topbar nav a:focus-visible {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  transform: none;
}

.tc-home #hero {
  margin: 104px auto 0 !important;
  max-width: 1240px !important;
  padding: 1.25rem !important;
}

.tc-home #hero > div {
  display: grid !important;
  grid-template-columns: minmax(0, 168px) 1fr;
  align-items: start;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  background: var(--home-surface) !important;
  border: 1px solid var(--home-line) !important;
  border-radius: 32px !important;
  padding: 2rem !important;
  box-shadow: 0 24px 48px rgba(8, 8, 8, 0.08) !important;
}

.tc-home #hero > div::after {
  content: "";
  position: absolute;
  right: -82px;
  top: -100px;
  width: 260px;
  height: 260px;
  border-radius: 100%;
  background: radial-gradient(circle, rgba(193, 216, 93, 0.2), transparent 72%);
  pointer-events: none;
}

.tc-home #hero > div::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(36%, 280px);
  background: linear-gradient(150deg, rgba(16, 17, 20, 0.02) 0%, rgba(16, 17, 20, 0.08) 100%);
  pointer-events: none;
}

.tc-home #hero > div > img {
  height: 124px !important;
  width: auto !important;
  border-radius: 20px !important;
  border: 1px solid #121316 !important;
  background: #0f1722 !important;
  padding: 0.55rem !important;
  box-shadow: 0 12px 26px rgba(4, 10, 20, 0.22);
  align-self: center;
}

.tc-home #hero > div > div > div:first-child {
  background: #eef2e3 !important;
  border: 1px solid #d4dcbb !important;
  border-radius: 999px !important;
  width: fit-content;
  padding: 0.34rem 0.7rem !important;
  margin-bottom: 0.95rem !important;
}

.tc-home #hero > div > div > div:first-child span:first-child {
  background: #a4bf44 !important;
  box-shadow: 0 0 0 3px rgba(164, 191, 68, 0.22);
}

.tc-home #hero > div > div > div:first-child span:last-child {
  color: #2e3b4b !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

.tc-home #hero h1 {
  color: #111213 !important;
  font-family: var(--tc-font-body) !important;
  font-size: clamp(2.2rem, 4.9vw, 4rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.03em !important;
  font-weight: 800 !important;
  text-shadow: none;
  max-width: 880px;
}

.tc-home #hero p,
.tc-home #contact p {
  color: var(--home-muted) !important;
}

.tc-home #hero p {
  max-width: 900px;
  font-size: 1.04rem !important;
}

.tc-home #hero span {
  color: #5d6777 !important;
}

.tc-home #hero a {
  border-radius: 999px !important;
  min-height: 48px;
  padding-inline: 1.15rem !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  font-weight: 700 !important;
}

.tc-home #hero a:hover {
  transform: translateY(-1px);
}

.tc-home #hero a[href="#contact"] {
  background: #101114 !important;
  color: #ffffff !important;
  border: 1px solid #101114 !important;
  box-shadow: 0 10px 20px rgba(9, 9, 9, 0.22);
}

.tc-home #hero a[href="/about"] {
  background: #ffffff !important;
  color: #121316 !important;
  border: 1px solid #c8ced6 !important;
}

.tc-home #hero > div > div > div:last-child {
  margin-top: 1.45rem !important;
  padding-top: 1.1rem;
  border-top: 1px solid #e2e7ee;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.9rem;
}

.tc-home #hero > div > div > div:last-child > div > span:first-child {
  color: #687487 !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tc-home #hero > div > div > div:last-child > div > span:last-child {
  color: #121316 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

.tc-home #highlights {
  margin-top: 1.3rem !important;
  max-width: 1240px !important;
  padding: 0 1.25rem !important;
}

.tc-home #highlights > div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(320px, 1fr)) !important;
  gap: 1.1rem !important;
}

.tc-home #highlights > div > div {
  position: relative;
  overflow: hidden;
  background: #ffffff !important;
  border: 1px solid #d8dde4 !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06) !important;
  padding: 1.8rem !important;
  min-height: 220px !important;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  display: flex;
  flex-direction: column;
}

.tc-home #highlights > div > div::before {
  display: none;
}

.tc-home #highlights > div > div:hover {
  transform: translateY(-2px);
  border-color: #bfc8d3 !important;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.11) !important;
}

.tc-home #highlights h3 {
  color: #121316 !important;
  margin-bottom: 0.75rem;
  letter-spacing: -0.018em;
  font-family: var(--tc-font-body) !important;
  font-weight: 750;
  font-size: clamp(1.35rem, 2.1vw, 1.65rem) !important;
}

.tc-home #highlights p,
.tc-home #highlights li {
  color: #374352 !important;
}

.tc-home #highlights ul {
  margin: 0.78rem 0 0 !important;
  padding-left: 1.2rem !important;
  list-style-position: outside;
  display: grid;
  gap: 0.32rem;
}

.tc-home #highlights li::marker {
  color: #9bb741;
  font-size: 1.05em;
}

.tc-home #contact {
  max-width: 1240px !important;
  margin: 1.55rem auto 3rem !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 1.25rem 0.35rem !important;
}

.tc-home #contact > div {
  background: linear-gradient(145deg, #0a0b0c 0%, #111721 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 30px !important;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.3) !important;
  padding: 2rem !important;
}

.tc-home #contact h3 {
  color: #f4f8fc !important;
  font-family: var(--tc-font-body) !important;
}

.tc-home #contact span {
  color: #c9d1dc !important;
  font-weight: 600 !important;
}

.tc-home #contact a {
  color: #111317 !important;
  background: #f7fafc !important;
  border: 1px solid rgba(240, 244, 248, 0.92) !important;
  font-weight: 700;
  border-radius: 999px !important;
  min-height: 48px;
  padding-inline: 1.2rem !important;
}

.tc-home #contact a:hover {
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(14, 14, 14, 0.25) !important;
}

.tc-home #top-auth {
  gap: 0.5rem !important;
}

.tc-home #top-auth input {
  min-width: 210px;
  padding: 0.56rem 0.78rem !important;
  background: #ffffff !important;
  color: #121316 !important;
  border: 1px solid #d2d8e0 !important;
  border-radius: 999px !important;
}

.tc-home #top-auth button {
  padding: 0.56rem 0.9rem !important;
  background: #ffffff !important;
  color: #101114 !important;
  border: 1px solid #ffffff !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

.tc-home .site-footer {
  background: #0a0b0c !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: none !important;
}

.tc-home .footer-inner,
.tc-home .footer-inner a {
  color: #e7edf4 !important;
}

/* Misc */
.skip-link {
  background: var(--tc-ink-strong) !important;
  color: #fff !important;
}

#quick-exit {
  background: var(--tc-danger) !important;
  color: #fff !important;
}

#feedback-link {
  background: var(--tc-surface) !important;
  border: 1px solid var(--tc-border) !important;
  border-radius: 999px;
  color: var(--tc-ink-strong) !important;
  padding: 0.48rem 0.8rem;
  text-decoration: none;
  box-shadow: var(--tc-shadow-sm);
}

#feedback-link:hover {
  background: var(--tc-surface-muted) !important;
}

@media (max-width: 960px) {
  .tc-home #hero > div {
    grid-template-columns: 1fr !important;
    padding: 1.65rem !important;
  }

  .tc-home #hero > div > img {
    height: 104px !important;
    justify-self: start;
  }

  .tc-home #hero > div > div > div:last-child {
    grid-template-columns: 1fr !important;
  }

  .tc-home #highlights > div {
    grid-template-columns: 1fr !important;
  }

  .tc-home #top-auth input {
    min-width: 140px;
  }
}

@media (max-width: 720px) {
  .tc-home #topbar > div,
  .tc-home .topbar-inner,
  .tc-home .navbar,
  .tc-home .navbar-content {
    gap: 0.5rem;
    padding-inline: 0.75rem !important;
  }

  .tc-home #topbar nav,
  .tc-home .nav,
  .tc-home .nav-links {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .tc-home #hero {
    margin-top: 104px !important;
  }

  .tc-home .container {
    width: min(100%, 1200px);
  }

  .tc-home .panel,
  .tc-home .card,
  .tc-home .auth-card,
  .tc-home .login-card {
    border-radius: var(--tc-radius-sm) !important;
  }
}
