/* tlc-root-font-enforcement */
:root {
  --tlc-root-font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
option {
  font-family: var(--font-family, var(--tlc-root-font-family)) !important;
}

:root {
  --rich-black: #0D0D0D;
  --electric-blue: #2978F0;
  --soft-white: #F5F5F5;
  --warm-beige: #F2E9E4;
  --vivid-coral: #FF5C5C;
  --font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

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

html, body {
  height: 100dvh;
}

body {
  font-family: var(--font-family);
  background-color: var(--soft-white);
  color: #000000 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 100%;
  min-height: 100dvh;
  max-height: 100dvh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
}

button,
.form-button,
a.button,
a[role="button"] {
  border-radius: 999px !important;
  font-family: var(--font-family) !important;
}

/* Keep support/contact pages in their original slightly rounded-square style */
.support-page button,
.contact-page button,
.support-form button,
.contact-form button,
.contact-form .form-button {
  border-radius: 8px !important;
}

h1, h2, h3, h4, h5, h6, p, div, span, li, ul, ol {
  color: #000000 !important;
}

/*html, body {
  background: yellow;
}

footer {
  background: red;
}

* {
  outline: 1px solid blue;
}*/

header {
  background-color: #010203;
  color: #ffffff !important;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 1000;
}

header h1 {
  margin: 0;
  margin-top: 3px;
  font-weight: 700;
  font-family: var(--font-family);
  font-size: 34px;
  color: #ffffff !important;
}

nav {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 10px;
}

nav a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

main {
  grid-row: 2;
  width: 100%;
  max-width: 100%;
  padding: 0;
  padding-top: calc(56px + env(safe-area-inset-top, 0px));
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  touch-action: pan-y;
  flex: 1;
  margin: 0 auto;
}

/* Add minimal padding only to sections within main for readability */
main section {
  padding: 40px 20px;
}

.after-main-ad {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 16px auto calc(92px + env(safe-area-inset-bottom, 0px));
  padding: 14px 0;
  min-height: 120px;
  line-height: 1.8;
  box-sizing: border-box;
  clear: both;
}

.after-main-ad iframe,
.after-main-ad > div,
.after-main-ad > a {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background-color: var(--rich-black);
  color: var(--soft-white);
  text-align: center;
  font-size: 14px;
  width: 100vw;
  padding: -1rem -1rem -1rem -1em;
  gap: 4px;
  align-items: center;
  margin: 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}

main {
  padding-bottom: 70px !important;
}
/* Mobile styles */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  header h1 {
    font-size: 28px;
    margin-bottom: 9px;
  }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  nav a {
    font-size: 1.15rem;
  }
  main {
    flex: 1;
  }

  .after-main-ad {
    margin: 18px auto calc(120px + env(safe-area-inset-bottom, 0px));
    padding: 16px 0 24px;
    min-height: 140px;
    line-height: 2;
  }
}

/* Flip Card Styles for Divisions Page */
.flip-card-container {
  perspective: 1000px;
  width: 260px;
  height: 160px;
  margin: 10px;
}
.flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}
.flip-card-container:hover .flip-card,
.flip-card-container:focus-within .flip-card {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 1.1rem;
  color: #0D0D0D;
}
.flip-card-front {
  background: white;
}
.flip-card-back {
  background: var(--electric-blue);
  color: white;
  transform: rotateY(180deg);
}
.cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1240px;
  margin: 40px auto 0 auto;
}
a.card-link {
  text-decoration: none;
  outline: none;
}

/* Utility class to hide specific text on pages */
.hidden-on-page { display: none !important; }

/* Common utility classes */
.muted {
  color: #000000 !important;
  font-size: 1rem;
  line-height: 1.6;
}

.card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transition: none;
}

.card:hover {
  box-shadow: none;
}

/* Strong override: ensure short lists inside the top card show a visible bullet
   and keep the marker close to the list text even if a reset elsewhere removed spacing. */
section > .card > ul {
  list-style-type: disc !important;
  list-style-position: inside !important;
  padding-left: 6px !important;
  margin-left: 0 !important;
}

section > .card > ul > li {
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-indent: -6px !important;
}

/* Contact Page Divided Layout */

.contact-header {
  text-align: center;
}
.contact-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 20px;
  width: 100%;
}

.contact-info {
  flex: 1;
  padding: 20px;
  background-color: var(--warm-beige);
  border-radius: 8px;
  margin-right: 20px;
  margin-left: 30px;
}

.contact-form {
  flex: 1;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin-right: 85px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-family);
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.2;
  height: 48px;
}

.contact-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-family);
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.2;
  height: 48px;
  background-color: #fff;
  color: #222;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
  opacity: 1;
}

.contact-form select option:first-child {
  color: #888;
}


.contact-form button {
  background-color: var(--electric-blue);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #1a5fc4;
}


/* Support form specific styles */
.support-wrapper {
  max-width: 1100px;
  margin: 0 auto 12px auto;
  padding: 20px 28px;
}

.support-form {
  background: white;
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 6px 18px rgba(13,13,13,0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-items: start;
}

.form-field { display:flex; flex-direction:column }
.form-field label { font-weight:600; margin-bottom:8px; color:var(--rich-black); font-size:0.95rem }
.form-field input, .form-field select, .form-field textarea { padding:12px; border:1px solid #d7d7d7; border-radius:6px; font-size:0.95rem }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(41,120,240,0.12); border-color: var(--electric-blue) }
.form-field.full-width { grid-column: 1 / -1 }

.form-actions { display:flex; gap:12px; justify-content:flex-end; margin-top:18px }
.btn-primary { background: var(--electric-blue); color: #fff; padding:10px 18px; border-radius:999px; border:none; cursor:pointer; }
.btn-primary:hover { background:#1a5fc4 }
.btn-secondary { background: transparent; border:1px solid #ccc; padding:10px 16px; border-radius:999px; cursor:pointer }

@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
  .support-wrapper { padding: 12px }
  .support-form { padding: 16px }
}

/* Ensure contact info and form stack and match widths on small screens */
@media (max-width: 800px) {
  .contact-container { flex-direction: column !important; }
  .contact-info,
  .contact-form {
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }
}

/* codex-scrollbar-hide-global */
html,
body,
* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent;
}
