/* ===== RESET ===== */
h1, h2, h3, h4, h5, h6, p, ul, ol {
  margin: 0;
  padding: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1.5em;
  line-height: 1.4;
}

/* ===== GLOBAL / UTIL ===== */
 
/* Hides mobile menu on desktop by default */
.prompt-mobile-toggle {
  display: none;
}

.index-main {
  padding-top: 7rem;
  position: relative;
  z-index: 2;
}

.container {
  padding: 0;
  margin: 0;
  width: 100%;
}

/* ===== HEADER ===== */
.tm-header {
  position: relative;
  background-color: #F5EFE6;
  padding: 0;
  overflow: visible;
  z-index: 10;
}

.header-thread-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
}

.flair-image {
  width: 100%;
  transform: scaleY(0.7);
  transform-origin: top left;
  opacity: 0.3;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.tm-header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 3rem 2rem 2rem 4rem;
}

.tm-site-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 280px;
  margin-top: -1.5rem;
  margin-left: 150px;
}

.tm-site-logo img {
  max-height: 60px;
  width: auto;
}

.tm-nav {
  position: absolute;
  top: 1rem;
  right: 2rem;
  z-index: 3;
}

.tm-nav-ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tm-nav-link {
  color: #0E3A53;
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 6px;
  transition: all 0.2s ease-in-out;
}

.tm-nav-link:hover,
.tm-nav-link.active {
  border-bottom: 1px solid #0E3A53;
}

.menu-toggle-wrapper {
  display: none;
  text-align: right;
  padding-right: 1rem;
}

.menu-toggle {
  display: block;
  font-size: 2rem;
  cursor: pointer;
}

/* ===== LINKS / BREADCRUMB ===== */

.back-link-wrapper {
  max-width: 900px;
  margin: 1rem auto 0 auto;
  padding: 0 1rem;
  text-align: left;
}

.back-link {
  font-size: 0.9rem;
  color: #13A0A2;
  text-decoration: none;
  border-left: 3px solid #0E3A53;
  padding-left: 0.6rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #FF685F;
}

.gallery-back-link {
  text-align: center;
  margin-top: -1.5rem;  /* reduce space after the h2 */
  margin-bottom: 2.5rem; /* increase space before the thumbnails */
}

/* ===== COMPONENTS ===== */

.prompt-alert {
  background-color: #eee2c8;      /* soft cream with slight warmth */
  color: #4a3b2c;                 /* muted brown for better harmony */
  border-left: 4px solid #c9b27d; /* subtle anchor without boxy shape */
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  border-radius: 0.25rem;
  box-shadow: none;
}

.prompt-alert a {
  color: #694800;
  text-decoration: underline;
}

.prompt-alert a:hover {
  color: #0E3A53;
}

.personal-warning {
  background-color: #f8f1f1;
  border-left: 4px solid #a63f3f;
  padding: 1em 1.25em;
  margin: 1.5em 0;
  font-size: 0.95rem;
  color: #2e2e2e;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-radius: 4px;
  line-height: 1.5;
}

.personal-warning strong {
  color: #a63f3f;
}



/* ---------- BASE ---------- */

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 17px;
  background-color: #F5EFE6; /* lighter super pale violet */
  color: #0E3A53;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

main {
  padding: 4rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

pre {
  background-color: #f4f4f4;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

code {
  font-family: monospace;
  white-space: pre-wrap;
  line-height: 1.5;
  display: block;
  text-align: left;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #fff;
  color: #0E3A53;
  padding: 0.5rem 1rem;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.ai-page h2.tm-section-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.ai-section ul {
  margin-left: 2rem;
  padding-left: 0;
}

.ai-section li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* 
  ========== MODAL OVERLAY ==========
  This container holds the full-screen image viewer.
  It starts hidden (display: none) and is triggered via JavaScript when an image is clicked.
*/
#modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  display: flex;
}


#modal img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  border-radius: 4px;
}

#modalClose {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1000;
}

.definition-table {
  max-width: 700px;
  margin: 2rem auto;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #123A49;
}

.definition-table table {
  width: 100%;
  border-collapse: collapse;
}

.definition-table td {
  padding: 0.4rem 0;
  vertical-align: top;
}

.definition-table td:first-child {
  white-space: nowrap;
  padding-right: 1rem;
  font-weight: bold;
  color: #123A49;
}

.ai-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 0 1rem; /* Ensures edge padding on mobile */
}

.ai-image {
  flex: 1 1 300px;
  max-width: 400px;
  text-align: center;
}

.ai-image img {
  width: 100%;
  height: auto;
  display: block;
}

.ai-copy {
  flex: 1 1 400px;
  max-width: 600px;
  color: #123A49;
}

.ai-copy h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #123A49;
}

.ai-copy p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2.5em;
}
 
.ai-copy a {
  color: #13A0A2;
  text-decoration: underline;
}

/* ---------- AI PROMPT PAGE STYLING ---------- */

.prompt-group {
  background-color: #EEF9F9;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.prompt-group h3 {
  color: #0E3A53;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.4rem;
}

/* Scoped <details> styling – only affects AI Prompts page */
.prompt-group details {
  background-color: #ffffff;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.prompt-group details[open] {
  background-color: #F2FBFC;
  border-color: #A6E7EA;
}

.prompt-group details summary {
  font-weight: 600;
  color: #0E3A53;
  cursor: pointer;
  list-style: none;
}

.prompt-group details p {
  margin-top: 0.75rem;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.5;
    margin-bottom: 2.5em;
}

.smaller-text {
  font-size: 0.9em;
}

/* ---------- DETAILS / SUMMARY STYLING ---------- */

details {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #F5EFE6;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

summary {
  font-weight: 600;
  color: #0E3A53;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

details[open] summary {
  margin-bottom: 1rem;
}



/* ---------- SECTION HEADINGS ---------- */

.tm-section-title {
  font-size: 1.5rem;  /* uniform, not oversized */
  font-weight: 600;
  margin: 2rem 0 1.5rem;
  text-align: center;
  color: #0E3A53;
}

.tm-x-section {
  margin: 2rem 0;
}

/* ---------- TEXT BLOCKS ---------- */

.tm-mb-45 {
  margin-bottom: 2rem;
}

.tm-mb-p {
  margin-bottom: 1.25rem;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.published-date {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: -1rem;
}

 /* ---------- IMAGE GALLERY (Thumbnails) ---------- */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.image-gallery figure {
  margin: 0;
  text-align: center;
}

.image-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: block;
  transition: transform 0.3s ease-in-out;
}

.image-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
}

.image-gallery figcaption {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #444;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

 


/* ---------- LISTS ---------- */

.centered-list {
  list-style: disc;
  padding-left: 1.25rem;
  max-width: 700px;
  margin: 2rem auto;
  color: #0E3A53;
}

.centered-list li {
  margin-bottom: 0.75rem;
}

.use-case-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  padding-left: 0;
}

.use-case-links {
  list-style-type: disc;
  list-style-position: inside;
  margin: 0 auto;
  padding-left: 10rem;
  text-align: left;
  max-width: 600px;
}

.use-case-links li {
  margin-bottom: 1rem;
}

.use-case-links a:hover {
  color: #FF685F;
}

.use-case-description {
  font-size: 0.95rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  color: #0E3A53;
}

.dont-list {
  list-style: none;
  padding-left: 0;
  max-width: 750px;
  margin: 2rem auto;
}

.dont-list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 1rem;
  text-align: left;
  line-height: 1.6;
}

.dont-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: #0E3A53;
  font-size: 1.2rem;
  top: 0;
}

.use-case-item {
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  text-align: left;
}

.use-case-header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0E3A53;
  max-width: 100%;
  flex-wrap: wrap;
  word-break: break-word;
}

.use-case-header .bullet {
  font-size: 1.2rem;
  color: #0E3A53;
}

.use-case-header a {
  color: #0E3A53;
  text-decoration: none;
}

.use-case-header a:hover {
  color: #FF685F;
}

/* Removed duplicate block for: .use-case-description */
.tm-container-inner {
  margin-bottom: 3rem; /* adds space between sections */
}

/* ---------- FORMS & BUTTONS ---------- */

.tm-contact-form {
  max-width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.tm-btn {
  background-color: #0E3A53;
  color: white;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tm-btn:hover {
  background-color: #FF685F;
}

.tm-btn-right {
  align-self: flex-end;
}

/* ---------- PROMPT HELP ---------- */

.ai-prompts-link-wrapper {
  text-align: center;
  font-size: 0.8rem;
  font-weight: normal;
  margin: 1em 0;
}

.ai-prompts-link-wrapper a {
  text-decoration: none;
  color: #007BFF; /* Bootstrap-style medium blue */
}

#menu-close {
  display: none;
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: #0E3A53;
  cursor: pointer;
  z-index: 1001;
}

/* ===== Prompt Stacking Table ===== */
.prompt-stack-table {
  border-collapse: collapse;
  width: 100%;
  margin: 2rem 0;
  background: #fff;
}

.prompt-stack-table th,
.prompt-stack-table td {
  border: 1px solid #d9d9e6;
  padding: 0.9rem;
  vertical-align: top;
  text-align: left;
}

.prompt-stack-table thead th {
  background: #EAF6F6;
  color: #0E3A53;
  font-weight: 700;
}

/* Visual "block" cells */
.stack-layer {
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

/* Distinct colors per layer (muted violets family) */
.layer-system  { background-color: #0E3A53; } /* deepest */
.layer-core    { background-color: #137B7D; }
.layer-project { background-color: #FF685F; }
.layer-session { background-color: #a48dd9; }
.layer-user    { background-color: #c0b0ea; } /* lightest */

/* Compiled final prompt row */
.compiled-row {
  background: #f7f6fb;
  border: 2px solid #9AD7D8;
}

.compiled-label {
  font-weight: 700;
  color: #0E3A53;
  margin: 0.25rem 0 0.5rem 0;
}

.final-prompt pre {
  background-color: #F1FAF8;
  margin: 0.25rem 0 0 0;
  padding: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: 6px;
  white-space: pre-wrap;
  color: #123A49;
}


/* ---------- FOOTER ---------- */

 

.tm-footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #F5EFE6;  /* restore this */
  font-size: 0.9rem;
}

.tm-footer a:hover {
  color: #FF685F;
}



.ai-icon-links {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  margin: 3rem auto 0 auto;
  max-width: 600px;
  text-align: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  padding-top: 0.5rem;
}

.icon-link i {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.icon-link:hover {
  color: #5c3b88; /* Deep violet */
}

.prompt-layout {
  display: flex;
  gap: 2em;
  padding: 2em;
  margin-top: 6em; /* pushes layout clearly below flair image */
  align-items: flex-start;
}

.prompt-sidebar {
  flex: 0 0 240px;
  margin-top: 0;
  padding: 2em 1.5em 1em 1.5em;
  background-color: #E9F5F3; /* lighter violet panel */
  border-right: 2px solid #B8E2E3; /* softened border */
  border-radius: 0 12px 12px 0;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.03);
}

.prompt-category-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.prompt-category-list li {
  margin-bottom: 1em;
}

.prompt-category-list a {
  text-decoration: none;
  color: #2d0f33;
  font-weight: 500;
  font-family: 'Open Sans', sans-serif;
}

.prompt-category-list a:hover {
  color: #5e2f65;
  text-decoration: underline;
}

.prompt-main-content {
  padding-top: 0;
  margin-top: 0;
}

.menu-toggle-wrapper {
  display: none;
  text-align: right;
  padding-right: 1rem;
}





#prevBtn, #nextBtn {
  display: block !important;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.3);  /* optional for visibility */
  cursor: pointer;
  z-index: 1000;
  padding: 0 20px;
  user-select: none;
}

#prevBtn {
  left: 10px;
}

#nextBtn {
  right: 10px;
}

body.menu-open {
  overflow: hidden;
}



/* ---------- QUERIES ---------- */

@media (max-width: 768px) {
  .menu-toggle-wrapper {
    display: block;
    text-align: right;
    padding-right: 1rem;
  }

  .flair-image {
    display: none;
  }
  
  #main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    padding-top: 5rem;
    overflow-y: auto;
  }

  #main-nav.open {
    display: block;
  }

  #main-nav .tm-nav-ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 2rem 1rem;
    margin: 0;
    list-style: none;
  }

  #main-nav .tm-nav-link {
    display: block;
    font-size: 1.25rem;
    text-align: center;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ccc;
    text-decoration: none;
    color: #0E3A53;
  }

  #main-nav.open ~ #menu-close {
    display: block;
  }

.tm-site-logo {
  margin-left: 1rem;
  width: 100%;
  align-items: center;
  text-align: center;
}

.tm-site-logo img {
  max-height: 45px;
  height: auto;
  width: auto;
  margin: 0 auto;
  display: block;
}

  .mobile-branding {
    display: block;
    text-align: center;
    margin: -1.5rem auto 1rem auto;
  }

  .mobile-branding img {
    max-height: 45px;
    width: auto;
    display: block;
    margin: 0 auto;
  }

  .mobile-only {
    display: block !important;
  }

  .mobile-header {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0E3A53;
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    border-bottom: 1px solid #ccc;
    background-color: #fff;
    position: relative;
    z-index: 2;
  }

  .prompt-sidebar {
    display: none;
  }

 
  .prompt-mobile-toggle {
    display: block;
    margin: 1rem auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 1rem;
    max-width: 90%;
    font-size: 1rem;
  }
}


  .prompt-mobile-toggle summary {
    font-weight: bold;
    cursor: pointer;
  }

  .prompt-mobile-toggle ul {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.75rem;
  }

  .prompt-mobile-toggle li {
    margin-bottom: 0.5rem;
  }

  .prompt-mobile-toggle a {
    color: #0E3A53;
    text-decoration: underline;
  }

 
}

@media (min-width: 769px) {
  .ai-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .ai-image {
    flex: 0 0 40%;
    max-width: 40%;
    text-align: right;
  }

  .ai-copy {
    flex: 0 0 55%;
    max-width: 55%;
    color: #123A49;
  }

  .flair-image {
    display: block;
  }

  .tm-site-logo {
    margin-left: 150px;
  }

  .tm-site-logo img {
    max-height: 60px;
  }

  .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: visible;
  }

  .image-gallery figure {
    width: 100%;
    display: block;
  }
    .prompt-mobile-toggle {
    display: none;
  }
  
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

 