/* Contract templates — print-friendly educational docs */
.ct-banner {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: #9a3412;
  line-height: 1.55;
}
.ct-banner strong { color: #7c2d12; }
.ct-wrap { max-width: 860px; margin: 0 auto; }
.ct-meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  font-size: 0.85rem; color: #64748b; margin-bottom: 1.25rem;
}
.ct-letterhead {
  border-bottom: 2px solid #0f2844;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.ct-letterhead h1 { font-size: 1.35rem; margin: 0 0 0.35rem; color: #0f2844; }
.ct-letterhead p { margin: 0; font-size: 0.88rem; color: #475569; line-height: 1.5; }
.ct-doc-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #0f172a;
  letter-spacing: 0.02em;
}
.ct-doc-sub {
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1.5rem;
}
.ct-field {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.35rem 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.92rem;
}
.ct-field label { font-weight: 600; color: #334155; }
.ct-field span { color: #64748b; font-style: italic; }
.ct-section { margin: 1.75rem 0; }
.ct-section h2 {
  font-size: 1.05rem;
  color: #0f2844;
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e2e8f0;
}
.ct-section h3 { font-size: 0.95rem; color: #1e293b; margin: 1rem 0 0.4rem; }
.ct-section p, .ct-section li { color: #475569; line-height: 1.7; font-size: 0.92rem; }
.ct-section ul, .ct-section ol { margin: 0.4rem 0 0.8rem 1.2rem; }
.ct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0.75rem 0 1rem;
}
.ct-table th, .ct-table td {
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.ct-table th { background: #f1f5f9; color: #1e293b; }
.ct-blank { border-bottom: 1px solid #94a3b8; display: inline-block; min-width: 8rem; }
.ct-sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.ct-sign-box {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.88rem;
  color: #475569;
}
.ct-sign-box strong { display: block; color: #0f172a; margin-bottom: 0.75rem; }
.ct-sign-line { margin: 1.25rem 0 0.35rem; border-bottom: 1px solid #94a3b8; height: 1.5rem; }
.ct-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}
.ct-flow-step {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.45;
}
.ct-flow-step strong { display: block; color: #0f2844; margin-bottom: 0.3rem; font-size: 0.92rem; }
.ct-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.ct-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ct-card:hover { border-color: #7ba3c9; box-shadow: 0 4px 14px rgba(15, 40, 68, 0.08); }
.ct-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: #0f2844; }
.ct-card p { margin: 0; font-size: 0.88rem; color: #64748b; line-height: 1.55; }
.ct-card .ct-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0369a1;
  background: #e0f2fe;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
@media print {
  .header, .footer, .mobile-menu-btn, .mobile-nav, .ct-noprint { display: none !important; }
  .ct-banner { border: 1px solid #999; }
  body { background: #fff; }
}
@media (max-width: 640px) {
  .ct-field { grid-template-columns: 1fr; }
  .ct-sign { grid-template-columns: 1fr; }
}
