/* Styles for the programmatic "[material] cut optimizer" landing pages. Loaded
   alongside theme.css. Kept same-origin because the site CSP blocks inline styles.
   The example cut diagram is a real, build-time-solved SVG. */

.example-cut { margin: 1.4rem auto 0; max-width: 720px; }
.cut-sheets { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cut-sheet {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow); padding: 0.7rem; max-width: 340px;
}
.cut-sheet .cs-head { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 0.45rem; }
.cut-sheet .cs-head .t { font-weight: 700; }
.cut-sheet .cs-head .w { color: var(--muted); }
.cut-sheet svg { width: 100%; height: auto; display: block; background: var(--surface-2); border-radius: 6px; }
.cut-note { text-align: center; color: var(--muted); font-size: 0.82rem; margin: 0.9rem 0 0; }

/* baked SVG parts (fill is a per-part presentation attribute → CSP-safe) */
.bb-sheet { fill: var(--surface-2); stroke: var(--border); stroke-width: 1; }
.bb-part { stroke: #ffffff; stroke-width: 1.2; }
.bb-plabel { font: 600 11px var(--font); fill: #0b1220; }
.bb-pdim { font: 500 9px var(--font); fill: #0b1220; opacity: 0.72; }

/* example job table */
.job-table { width: 100%; border-collapse: collapse; margin: 1rem 0; max-width: 460px; }
.job-table th, .job-table td { text-align: left; padding: 0.35rem 0.6rem; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.job-table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.job-table .num { text-align: right; }
.swatch-svg { width: 0.85rem; height: 0.85rem; vertical-align: -1px; margin-right: 0.45rem; }

/* related links + hub grid */
.related { margin-top: 2.4rem; }
.related-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; }
.related-links a { color: var(--brand-ink); }
@media (prefers-color-scheme: dark) { .related-links a { color: var(--brand); } }

.mat-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.mat-card {
  display: flex; flex-direction: column; gap: 0.15rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.9rem 1rem; text-decoration: none; color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mat-card:hover { border-color: var(--brand); box-shadow: var(--shadow); text-decoration: none; }
.mc-name { font-weight: 700; }
.mc-sub { color: var(--muted); font-size: 0.85rem; }
