/* TSASCE7 Styles */

body {
  background: #f5f6fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* Tool cards on landing page */
.tool-card {
  border: 2px solid transparent;
  border-radius: 12px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: #212529;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
.tool-icon i {
  transition: transform 0.2s;
}
.tool-card:hover .tool-icon i {
  transform: scale(1.1);
}

/* Chapter accordion */
.accordion-button {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
}
.accordion-button:not(.collapsed) {
  background: #212529;
  color: #fff;
}
.accordion-button:not(.collapsed) .badge {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
}

/* Function list items */
.func-item {
  border-left: 3px solid transparent;
  transition: border-color 0.1s;
}
.func-item:hover {
  border-left-color: #212529;
  background: #f8f9fa;
}
.func-name {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.78rem;
  color: #0d6efd;
}
.func-list {
  max-height: 300px;
  overflow-y: auto;
}

/* Result parameter tables */
.param-table {
  margin: 0;
}
.param-table th {
  background: #f8f9fa;
  font-weight: 600;
  width: 40%;
  white-space: nowrap;
}
.param-table td, .param-table th {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}
.param-value {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-weight: 600;
  color: #212529;
}

/* SDC badges */
.sdc-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 700;
  color: #fff;
}
.sdc-A { background: #28a745; }
.sdc-B { background: #5cb85c; }
.sdc-C { background: #ffc107; color: #212529; }
.sdc-D { background: #fd7e14; }
.sdc-E { background: #dc3545; }
.sdc-F { background: #721c24; }

/* Responsive */
@media (max-width: 768px) {
  .func-list { max-height: 200px; }
}

/* ---------------------------------------------------------------------------
   Claude Tutorial
   --------------------------------------------------------------------------- */
.tut-lessons p { line-height: 1.65; }
.tut-lessons ul, .tut-lessons ol { line-height: 1.6; }
.tut-lessons li { margin-bottom: .35rem; }
.tut-lessons h3 {
  font-size: 1.05rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: .5rem;
  color: #1B3A5C;
}
.tut-lessons code {
  background: #f1f3f5; color: #b3005e; padding: 1px 5px; border-radius: 3px;
  font-size: .875em;
}
.tut-lessons pre {
  background: #212529; color: #e9ecef; padding: .9rem 1rem; border-radius: 6px;
  overflow-x: auto; font-size: .82rem; line-height: 1.5;
}
.tut-lessons pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.tut-lessons blockquote {
  border-left: 4px solid #ffc107; background: #fff9e6; margin: 1rem 0;
  padding: .75rem 1rem; border-radius: 0 6px 6px 0;
}
.tut-lessons blockquote p:last-child { margin-bottom: 0; }
.tut-lessons table {
  width: 100%; font-size: .875rem; margin: 1rem 0;
  border-collapse: collapse; display: block; overflow-x: auto;
}
.tut-lessons th, .tut-lessons td {
  border: 1px solid #dee2e6; padding: .45rem .6rem; vertical-align: top;
}
.tut-lessons th { background: #f8f9fa; font-weight: 600; text-align: left; }
.tut-lessons .callout-warn {
  border-left: 4px solid #dc3545; background: #fdf0f1; padding: .75rem 1rem;
  border-radius: 0 6px 6px 0; margin: 1rem 0;
}
.tut-lessons .callout-good {
  border-left: 4px solid #198754; background: #eefaf3; padding: .75rem 1rem;
  border-radius: 0 6px 6px 0; margin: 1rem 0;
}
.tut-choice { border: 1px solid #dee2e6; border-radius: 6px; padding: .55rem .75rem .55rem 2.25rem; }
.tut-choice:hover { background: #f8f9fa; border-color: #adb5bd; }
.tut-choice label { cursor: pointer; }
.tut-choice:has(input:checked) { border-color: #0d6efd; background: #eef5ff; }
