/* RoomMath V2 design system — home and tool catalog styling */

/* Tool catalog grid */
.tools-catalog {
  margin: 48px 0;
}

.tools-catalog h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #233757;
}

.experimental-heading {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #666;
}

.tool-card {
  border: 1px solid #cad9e1;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tool-card[data-status="released"] {
  cursor: pointer;
}

.tool-card[data-status="released"]:hover {
  border-color: #567990;
  box-shadow: 0 2px 8px rgba(35, 55, 87, 0.1);
}

.tool-card[data-status="experimental"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.tool-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tool-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: #233757;
}

.tool-card p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}

.tool-card .cta {
  display: inline-block;
  color: #0066cc;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid #0066cc;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.tool-card[data-status="released"]:hover .cta {
  background: #0066cc;
  color: #fff;
}

/* Tool icon (from illustrations.py) */
.rm-tool-icon {
  display: block;
  margin: 0 auto;
}

/* Measurement diagram (from illustrations.py) */
.rm-measure {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 32px auto;
}

.rm-measure .hit {
  cursor: pointer;
  transition: fill 0.2s;
}

.rm-measure .hit:hover {
  fill: rgba(89, 121, 149, 0.1);
}

.rm-measure text {
  user-select: none;
}

/* Samples section */
.samples-section {
  margin: 48px 0;
  padding: 24px;
  background: #f4fafc;
  border-radius: 8px;
}

.samples-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #233757;
}

.samples-section p {
  color: #555;
  margin-bottom: 16px;
}

.samples-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.samples-section li {
  margin: 8px 0;
}

.samples-section a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.samples-section a:hover {
  text-decoration: underline;
}

/* Field guide (existing from tool page, enhanced for home) */
.field-guide {
  margin: 48px 0;
}

.field-guide header {
  margin-bottom: 32px;
}

.field-guide header p {
  font-size: 13px;
  color: #666;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.field-guide h2 {
  font-size: 28px;
  font-weight: 600;
  color: #233757;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.guide-grid section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #233757;
}

.guide-grid section p {
  color: #555;
  line-height: 1.6;
}

.worked {
  margin: 32px 0;
  padding: 24px;
  background: #f9f9f9;
  border-left: 4px solid #567990;
  border-radius: 4px;
}

.worked h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #233757;
}

.worked p {
  color: #555;
  line-height: 1.6;
}

/* Page intro (existing, preserved for tool page) */
.pageintro {
  margin: 32px 0 48px;
  text-align: center;
}

.pageintro p {
  font-size: 13px;
  color: #666;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.pageintro h1 {
  font-size: 36px;
  font-weight: 700;
  color: #233757;
  margin-bottom: 16px;
}

.pageintro div {
  font-size: 18px;
  color: #555;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .pageintro h1 {
    font-size: 28px;
  }
  
  .guide-grid {
    grid-template-columns: 1fr;
  }
  
  .tool-card {
    padding: 16px;
  }
}
