/* Plume page: what skill-page.css doesn't cover. */

/* Hero: text sits near the bottom, matching Prism's hero copy position */
.pl-hero__img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 75%; }
.pl-hero__copy { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 96px; }
.pl-hero__inner { max-width: min(620px, 50vw); }
.pl-svg-body { font-family: var(--font-body); }
@media (max-width: 900px) { .pl-hero__inner { max-width: 100%; } }
/* Phones: the text sits over the feather, so the sky is darkened behind it. A dedicated mobile crop would be better (see README). */
@media (max-width: 600px) { .pl-hero .sp-hero__shade { background: linear-gradient(180deg, rgba(25,25,25,0.6) 0%, rgba(25,25,25,0.35) 55%, rgba(25,25,25,0) 75%) !important; } }

/* Who sees what: a real table, scrolls sideways inside its frame on small screens */
.pl-matrix-wrap { overflow-x: auto; max-width: 100%; contain: layout; border: 1px solid #262626; border-radius: 16px; background: #202020; }
.pl-matrix { width: 100%; min-width: 600px; border-collapse: collapse; }
.pl-matrix thead td, .pl-matrix thead th { padding: 16px 12px; font-weight: 400; font-size: 13px; line-height: 1.35; color: #919191; text-align: center; }
.pl-matrix tbody th, .pl-matrix tbody td { padding: 18px 12px; border-top: 1px solid #262626; }
.pl-matrix tbody th { padding-left: 20px; text-align: left; white-space: nowrap; font-family: var(--font-title); font-weight: 700; font-size: 15px; }
.pl-matrix tbody th .sp-dot { display: inline-block; margin-right: 10px; vertical-align: 1px; }
.pl-matrix tbody td { text-align: center; }
.pl-yes, .pl-no { display: inline-block; width: 12px; height: 12px; border-radius: 9999px; box-sizing: border-box; vertical-align: middle; }
.pl-yes { background: var(--c); }
.pl-no { border: 1.5px solid #404040; }

/* The marked draft: one post, five stages (data-stage 0 to 4 on .pl-draft, set by plume.js) */
.pl-draft { background: #202020; border: 1px solid #262626; border-radius: 24px; overflow: hidden; }
.pl-draft__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid #262626; }
.pl-draft__bar .sp-chip { height: 36px; padding: 0 14px; }
.pl-n { color: #919191; font-variant-numeric: tabular-nums; }
.pl-draft__body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.pl-post { padding: 32px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid #262626; }
.pl-post__meta { font-size: 13px; color: #919191; }
.pl-line { font-size: 16px; line-height: 1.6; color: #e5e5e5; padding-left: 0; border-left: 0 solid transparent; transition: padding 250ms cubic-bezier(0.4,0,0.2,1), border-color 250ms cubic-bezier(0.4,0,0.2,1); }
.pl-old { padding: 1px 2px; border-radius: 3px; transition: background-color 250ms ease, color 250ms ease; }
.pl-new { display: none; color: #f2f2f2; }
.pl-ph { padding: 0 6px; border: 1px dashed #737373; border-radius: 4px; color: #a3a3a3; font-size: 14px; }
.pl-draft[data-stage="1"] [data-lint] .pl-old { background: rgba(255,186,73,0.22); }
.pl-draft[data-stage="2"] [data-lint] .pl-old { background: rgba(255,186,73,0.12); }
.pl-draft[data-stage="2"] [data-critic] { padding-left: 12px; border-left: 2px solid var(--critic); }
[data-critic="reader"] { --critic: #34BEAE; }
[data-critic="voice"] { --critic: #9045CF; }
[data-critic="fact"] { --critic: #FF5E5E; }
.pl-draft[data-stage="3"] [data-edit] .pl-old { color: #737373; text-decoration: line-through; text-decoration-color: #a3a3a3; }
.pl-draft[data-stage="3"] [data-edit="swap"] .pl-new,
.pl-draft[data-stage="4"] [data-edit="swap"] .pl-new { display: block; }
.pl-draft[data-stage="4"] [data-edit="del"],
.pl-draft[data-stage="4"] [data-edit="swap"] .pl-old { display: none; }
.pl-notes { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.pl-notes [role="tabpanel"] { display: flex; flex-direction: column; gap: 16px; }
.pl-notes__title { font-size: 13px; color: #919191; }
.pl-note { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 2px solid var(--c); }
.pl-note b { font-family: var(--font-title); font-weight: 700; font-size: 14px; color: var(--t, #f2f2f2); }
.pl-note p { font-size: 14px; line-height: 1.55; color: #d9d9d9; text-wrap: pretty; }
.pl-next { align-self: flex-start; display: none; align-items: center; gap: 6px; margin-top: 8px; background: none; border: 0; padding: 0; font: 700 14px/1 var(--font-title); color: #f2f2f2; cursor: pointer; }
.js .pl-next { display: inline-flex; }
.pl-next:hover { color: #9045CF; }

/* Voice pack files */
.pl-pack { margin: 0; display: flex; flex-direction: column; }
.pl-pack > div { display: grid; grid-template-columns: minmax(120px, 150px) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid #262626; }
.pl-pack dt { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: #f2f2f2; }
.pl-pack dd { margin: 0; font-size: 14px; line-height: 1.5; color: #a3a3a3; text-wrap: pretty; }

/* Measured */
.pl-measured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pl-measured__text { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.625; color: #d9d9d9; }
.pl-measured__text p + p { color: #a3a3a3; }

@media (max-width: 900px) {
  .pl-draft__body { grid-template-columns: minmax(0, 1fr); }
  .pl-post { border-right: 0; border-bottom: 1px solid #262626; padding: 24px; }
  .pl-notes { padding: 24px; }
  .pl-pack > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pl-measured { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .pl-line, .pl-old { transition: none; } }
