/* /education-for-tattoo-artists — type and spacing only from the tokens and .t-* styles of shared/site.css (docs/type-system.md) */
.ed-hero { padding-top: calc(var(--header-h) + var(--sp-grid)); padding-bottom: var(--sp-section); }
.ed-hero__text { max-width: 820px; }
.ed-hero__text > .t-body { max-width: 640px; }
.ed-hero__photo { margin: calc(var(--sp-action) * 1.5) 0 0; }
.ed-hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1449 / 567; object-fit: cover; }

.ed-sec { padding-bottom: var(--sp-section); scroll-margin-top: calc(var(--header-h) + var(--sp-grid)); }
.ed-next { padding-bottom: 0; }
.ed-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-grid) clamp(32px, 6vw, 96px); align-items: start; }
.ed-grid--half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-action) clamp(32px, 6vw, 96px); }
.ed-grid--photo { align-items: center; }
.ed-body { max-width: 640px; }
.ed-head > .t-body, .ed-head > .ed-steps { max-width: 640px; }
.ed-body > .t-h3:not(:first-child), .ed-head > .t-h3 { margin-top: calc(var(--sp-action) * 1.5); }
.ed-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-cap) var(--sp-action); margin-top: var(--sp-action); }
.ed-links:first-child { margin-top: 0; }
.ed-links + .t-body { margin-top: var(--sp-action); }
/* text link inside paragraphs, as on the homepage */
.tx { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease-in-out; }
@media (hover: hover) { .tx:hover { color: var(--accent); text-decoration: none; } }
.tx:focus-visible { color: var(--accent); }

/* lists: hairline rows */
.ed-list, .ed-get, .ed-steps { list-style: none; margin: 0; padding: 0; }
.ed-get { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-grid); margin-top: var(--sp-head); }
.ed-get li { padding: var(--sp-cap) 0; border-top: 1px solid var(--line); }
.ed-get + .t-body { margin-top: var(--sp-head); }
.t-h3 + .ed-list, .t-body + .ed-list, .t-body + .ed-steps, .t-h3 + .ed-steps { margin-top: var(--sp-head); }
.ed-list li { padding: var(--sp-label) 0; border-top: 1px solid var(--line); }
.ed-list li:last-child { padding-bottom: 0; }
.ed-steps { counter-reset: step; }
.ed-steps li { position: relative; padding: var(--sp-cap) 0 var(--sp-cap) 32px; border-top: 1px solid var(--line); counter-increment: step; }
.ed-steps li:last-child { border-bottom: 1px solid var(--line); }
.ed-steps li::before { content: counter(step) "."; position: absolute; left: 0; top: var(--sp-cap); font: 600 var(--fs-label)/1.6 var(--font); letter-spacing: .12em; color: var(--accent); }

/* Patreon lessons: a native horizontal rail with arrows (education.js) */
.ed-railhead { margin-bottom: var(--sp-action); }
.ed-arrows { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: var(--sp-grid); }
.ed-arrow { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer; transition: background-color .2s ease-in-out, opacity .2s ease-in-out; }
.ed-arrow::after { content: ""; position: absolute; left: 19px; top: 17px; width: 9px; height: 9px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.ed-arrow--next::after { left: 15px; border-width: 2px 2px 0 0; }
.ed-arrow:hover { background: #000; }
.ed-arrow:disabled { opacity: .3; cursor: default; background: var(--ink); }
.ed-rail { overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; padding-bottom: var(--sp-cap); }
.ed-rail > ul { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--sp-grid)) / 3); gap: var(--sp-grid); list-style: none; margin: 0; padding: 0; }
.ed-card { display: flex; flex-direction: column; align-items: flex-start; scroll-snap-align: start; }
.ed-card__img { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin-bottom: var(--sp-cap); overflow: hidden; background: var(--ink); }
.ed-card__img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ed-card__alt { opacity: 0; transition: opacity .3s ease-in-out; }
@media (hover: hover) { .ed-card:hover .ed-card__alt { opacity: 1; } }
.ed-card .t-label { color: var(--accent); }
.ed-card .t-h3 + .t-body { margin-top: var(--sp-label); }
.ed-card .t-body { padding-bottom: var(--sp-cap); }
.ed-card .tl { margin-top: auto; }

/* workshop formats */
.ed-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-grid); margin-top: calc(var(--sp-action) * 1.5); }
.ed-type { padding: var(--sp-action); border-radius: var(--radius); background: #f5f5f5; }
.ed-type .t-h3 + .t-body, .ed-day .t-h3 + .t-body { margin-top: var(--sp-label); }
.ed-days { display: grid; gap: var(--sp-grid); }
.ed-day { padding: var(--sp-action); border: 1px solid var(--line); border-radius: var(--radius); }
.ed-note { position: relative; margin-top: var(--sp-action); padding: var(--sp-head) var(--sp-action) var(--sp-head) calc(var(--sp-action) + 40px); border-radius: var(--radius); background: #f5f5f5; }
.ed-note::before { content: "i"; position: absolute; left: var(--sp-action); top: calc(var(--sp-head) + 1px); width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 14px/24px var(--font); text-align: center; }
.ed-photo { margin: 0; }
.ed-photo img { display: block; width: 100%; height: auto; }

/* videos: light cover first, the YouTube player only after a click (education.js) */
.ed-vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-grid); }
.ed-grid + .ed-vids { margin-top: calc(var(--sp-action) * 1.5); }
.ed-vid { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.ed-vid img, .ed-vid iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.ed-vid__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--accent); transition: background-color .2s ease-in-out; }
.ed-vid__play::after { content: ""; position: absolute; left: 25px; top: 20px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.ed-vid:hover .ed-vid__play { background: #000; }

/* questions */
.ed-qa { padding: var(--sp-head) 0; border-top: 1px solid var(--line); }
.ed-qa:last-child { border-bottom: 1px solid var(--line); }
.ed-qa .t-h3 + .t-body { margin-top: var(--sp-label); }
.t-body + .ed-qa { margin-top: var(--sp-head); }

/* recommended pages */
.ed-next__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-action) var(--sp-grid); margin-top: calc(var(--sp-action) * 1.5); }
.ed-next__card { display: flex; flex-direction: column; align-items: flex-start; }
.ed-next__img { display: block; width: 100%; margin-bottom: var(--sp-cap); }
.ed-next__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.ed-next__card .t-h3 + .t-body { margin-top: var(--sp-label); }
.ed-next__card .tl { margin-top: var(--sp-cap); }

@media (max-width: 960px) {
  .ed-grid, .ed-grid--half { grid-template-columns: minmax(0, 1fr); }
  #patreon .ed-grid { row-gap: calc(var(--sp-action) * 1.5); }
  .ed-rail > ul { grid-auto-columns: calc((100% - var(--sp-grid)) / 2); }
  .ed-next__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ed-hero__photo img { aspect-ratio: 3 / 2; object-position: 45% 50%; }
  .ed-rail > ul { grid-auto-columns: 82%; }
  .ed-arrows { display: none; }
  .ed-types, .ed-vids, .ed-next__cards { grid-template-columns: minmax(0, 1fr); }
}
