/* type-study.css: components for the Creating a Type Study lesson.
   Loaded after ../css/site.css. The sample sheets stay paper-white
   in dark mode, the way a printed type study would look. */

/* ---- Sample sheet (looks like the class template) ---- */
.ts-sheet { --band: #8a1fc4; background: #fff; color: #17212b; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; max-width: var(--measure); margin: 16px 0 24px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ts-sheet .ts-band { background: var(--band); color: #fff; padding: 10px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ts-sheet .ts-band strong { font: 700 1.15rem/1.1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.ts-sheet .ts-band span { font-size: .85rem; opacity: .9; }
.ts-row { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: 18px; padding: 18px; border-top: 1px solid #e3e3dc; align-items: start; }
.ts-row:first-of-type { border-top: 0; }
.ts-sample { min-width: 0; overflow-wrap: anywhere; }
.ts-sample .ts-h1 { margin: 0 0 .15em; line-height: 1.05; font-weight: 400; color: #17212b; }
.ts-sample .ts-h2 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #4a4a4a; }
.ts-sample .ts-p { margin: 0; color: #17212b; max-width: 34em; }
.ts-label { font: .82rem/1.45 var(--font-body); color: #3c4650; background: #f4f1f8; border-left: 4px solid var(--band); padding: 8px 10px; border-radius: 0 6px 6px 0; }
.ts-label b { color: #17212b; }
.ts-label .ts-lead-note { display: block; color: #6b7480; font-style: italic; margin-top: 2px; }
.ts-tag { display: inline-block; font: 700 .7rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--band); margin-bottom: 6px; }
@media (max-width: 640px) { .ts-row { grid-template-columns: 1fr; } }

/* Callout numbers on the anatomy sheet */
.ts-pin { display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--spot); color: var(--sheet); font: 700 .78rem var(--font-code); vertical-align: middle; margin-right: 6px; flex: none; }
.ts-sheet .ts-pin { background: #17212b; color: #fff; }
.ts-key { list-style: none; padding: 0; margin: 0 0 24px; max-width: var(--measure); }
.ts-key li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.ts-key li:last-child { border-bottom: 0; }

/* ---- Suggested pairings ---- */
.ts-pairs { list-style: none; margin: 18px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; max-width: var(--measure); }
.ts-pairs > li { margin: 0; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule); border-top: 5px solid var(--spot); border-radius: var(--radius); overflow: hidden; }
.ts-pairs .ts-mini { background: #fff; color: #17212b; padding: 16px 16px 14px; border-bottom: 1px solid var(--rule); }
.ts-pairs .ts-mini .h { display: block; font-size: 1.65rem; line-height: 1.1; margin-bottom: 4px; }
.ts-pairs .ts-mini .s { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4a4a4a; margin-bottom: 6px; }
.ts-pairs .ts-mini .b { display: block; font-size: .98rem; line-height: 1.5; }
.ts-pairs .body { padding: 12px 16px 14px; }
.content .ts-pairs h3 { margin: 0 0 4px; font-size: 1.05rem; }
.ts-pairs p { margin: 0 0 6px !important; font-size: .93rem; }
.ts-pairs .src { font-size: .8rem; color: var(--muted); margin: 0 !important; }

/* ---- Adobe Fonts tools ---- */
.ts-tools { list-style: none; margin: 16px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: var(--measure); }
.ts-tools > li { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; }
.content .ts-tools h3 { margin: 0 0 6px; font-size: 1.15rem; }
.ts-tools p, .ts-tools ul { font-size: .97rem; }
.ts-tools ul { padding-left: 1.1rem; margin: 0 0 10px; }
.ts-tools .btn-link { display: inline-block; font-weight: 700; }

/* ---- Type study lab ---- */
.ts-lab { max-width: var(--measure); margin: 16px 0 28px; }
.ts-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; padding: 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 14px; }
.ts-controls label, .ts-sizes legend { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ts-controls select, .ts-controls input[type="text"] { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); }
.ts-sizes { border: 0; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ts-sizes label { font-size: .72rem; font-weight: 700; color: #55616b; display: block; }
.ts-sizes input { width: 100%; font: inherit; font-size: .9rem; padding: 4px 6px; border: 1px solid #d5d5cd; border-radius: 6px; background: #fff; color: #17212b; }
.ts-row .ts-side { display: flex; flex-direction: column; gap: 4px; }
.ts-reset { margin-top: 4px; font: inherit; font-size: .9rem; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--spot); background: transparent; color: var(--spot); cursor: pointer; }
.ts-reset:hover { background: var(--spot-soft); }
@media (max-width: 640px) { .ts-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media print { .ts-controls { display: none; } }
