/* Paper Ledger: the whole look in one file.
   Put class="pl" on <body>. Every piece is prefixed pl- so it can sit beside other CSS. */

:root {
  --pl-canvas: #e7e4dd;       /* page background */
  --pl-paper: #f7f5f0;        /* cards, inputs, menus */
  --pl-cover: #fcfbf7;        /* the document cover on a card */
  --pl-paper-hover: #f1eee7;  /* list row hover and open row */
  --pl-line: #d9d4c8;         /* borders and dividers */
  --pl-edge: #857f73;         /* borders of things you type in or press */
  --pl-ink: #1b1a17;          /* main text, solid buttons */
  --pl-muted: #625d53;        /* secondary text and labels */
  --pl-faint: #9c968a;        /* marks only: dots, rules. Never words. */

  --pl-font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --pl-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pl-content: 1180px;       /* directory width */
  --pl-letter: 720px;         /* reading width */
  --pl-gutter: 20px;
  --pl-radius: 6px;
  --pl-radius-chip: 4px;
  --pl-control: 36px;         /* height of inputs and buttons */
  --pl-header-h: 57px;
  --pl-shadow: 0 1px 2px rgba(27, 26, 23, 0.04), 0 4px 16px rgba(27, 26, 23, 0.05);
  --pl-shadow-lift: 0 2px 4px rgba(27, 26, 23, 0.05), 0 10px 28px rgba(27, 26, 23, 0.09);
}

@media (pointer: coarse) {
  :root { --pl-control: 44px; }
}

/* ---------- base ---------- */

.pl, .pl *, .pl *::before, .pl *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 81px; }
@media (min-width: 768px) and (min-height: 720px) {
  html:has(.pl-bar) { scroll-padding-top: 264px; }
}

.pl {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pl-canvas);
  color: var(--pl-ink);
  font-family: var(--pl-font-mono);
  font-size: 15px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pl ::selection { background: var(--pl-ink); color: var(--pl-paper); }

.pl :focus-visible { outline: 2px solid var(--pl-ink); outline-offset: 2px; }

.pl h1, .pl h2, .pl h3, .pl p { margin: 0; }

.pl [hidden] { display: none !important; }


.pl-main { flex: 1; }

.pl-wrap { width: 100%; max-width: var(--pl-content); margin: 0 auto; padding: 0 var(--pl-gutter); }

.pl-skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  padding: 8px 14px; border-radius: var(--pl-radius);
  background: var(--pl-ink); color: var(--pl-paper); font-size: 13px; text-decoration: none;
}
.pl-skip:focus { top: 12px; }

.pl-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- small pieces ---------- */

.pl-label {
  font-size: 11px; line-height: 1.4; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--pl-muted);
}

.pl-link {
  color: inherit; text-decoration: underline;
  text-decoration-color: var(--pl-faint); text-underline-offset: 4px;
  transition: text-decoration-color 0.15s, color 0.15s;
}
@media (hover: hover) { .pl-link:hover { color: var(--pl-ink); text-decoration-color: var(--pl-ink); } }

.pl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--pl-control); padding: 0 16px;
  border: 1px solid var(--pl-ink); border-radius: var(--pl-radius);
  background: transparent; color: var(--pl-ink);
  font: inherit; font-size: 13px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.pl-btn--solid { background: var(--pl-ink); color: var(--pl-paper); }
@media (hover: hover) {
  .pl-btn:hover { background: var(--pl-ink); color: var(--pl-paper); }
  .pl-btn--solid:hover { background: #3a3832; border-color: #3a3832; color: var(--pl-paper); }
}
.pl-btn--small { min-height: 30px; padding: 0 10px; font-size: 12px; border-color: var(--pl-edge); }
@media (pointer: coarse) { .pl-btn--small { min-height: 44px; padding: 0 14px; } }
.pl-btn svg { width: 12px; height: 12px; flex: none; }

.pl-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pl-ink);
}
.pl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pl-ink); flex: none; }
.pl-badge--draft { color: var(--pl-muted); }
.pl-dot--draft { background: transparent; border: 1.5px solid var(--pl-edge); }

.pl-chip {
  display: inline-block; padding: 2px 8px;
  border: 1px solid var(--pl-line); border-radius: var(--pl-radius-chip);
  font-size: 11px; color: var(--pl-muted);
}

.pl-tabular { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */

.pl-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--pl-line);
  background: rgba(231, 228, 221, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pl-header-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px;
}
.pl-brand {
  font-family: var(--pl-font-display); font-size: 18px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--pl-ink); text-decoration: none;
}
.pl-nav { display: flex; align-items: center; gap: 4px; margin-right: -10px; font-size: 12px; }
.pl-nav a {
  display: inline-flex; align-items: center; min-height: var(--pl-control); padding: 0 10px;
  border-radius: var(--pl-radius); color: var(--pl-muted); text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
@media (hover: hover) { .pl-nav a:hover { color: var(--pl-ink); background: var(--pl-paper-hover); } }
.pl-nav a[aria-current="page"] { color: var(--pl-ink); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- hero ---------- */

.pl-hero { border-bottom: 1px solid var(--pl-line); }
.pl-hero-in { display: grid; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.pl-hero-text { max-width: var(--pl-letter); }
.pl-eyebrow { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pl-muted); }
.pl-title {
  margin-top: 16px !important;
  font-family: var(--pl-font-display); font-size: 48px; font-weight: 500;
  line-height: 0.98; letter-spacing: -0.025em;
}
.pl-lede { margin-top: 24px !important; }
.pl-lede + .pl-lede { margin-top: 16px !important; color: var(--pl-muted); }
.pl-lede em { font-family: var(--pl-font-display); font-size: 1.1em; }
.pl-seal { display: none; width: 168px; height: 168px; opacity: 0.9; }

@media (min-width: 640px) {
  .pl-hero-in { padding-top: 80px; padding-bottom: 80px; }
  .pl-title { font-size: 60px; }
}
@media (min-width: 768px) {
  .pl-hero-in { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; }
  .pl-seal { display: block; }
}

/* ---------- filter bar ---------- */

.pl-directory { padding-top: 40px; padding-bottom: 40px; }

.pl-bar {
  margin: 0 calc(var(--pl-gutter) * -1) 32px; padding: 12px var(--pl-gutter) 10px;
  border-bottom: 1px solid var(--pl-line);
}
@media (min-width: 768px) and (min-height: 720px) {
  .pl-bar {
    position: sticky; top: var(--pl-header-h); z-index: 30;
    background: rgba(231, 228, 221, 0.92);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
}
.pl-bar-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }

/* every control carries a small visible label above it */
.pl-control { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pl-control--grow { flex: 1 1 200px; }
.pl-control .pl-field { flex: none; width: 100%; }

.pl-field, .pl-select {
  height: var(--pl-control); border: 1px solid var(--pl-edge); border-radius: var(--pl-radius);
  background-color: var(--pl-paper); color: var(--pl-ink); font: inherit; font-size: 13px;
}
.pl-field { flex: 1 1 200px; min-width: 0; padding: 0 12px; }
.pl-field::placeholder { color: var(--pl-muted); opacity: 1; }
.pl-select {
  -webkit-appearance: none; appearance: none; padding: 0 30px 0 10px; font-size: 12px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%231b1a17' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
}

.pl-toggle { display: inline-flex; }
.pl-toggle button {
  height: var(--pl-control); min-width: 44px; padding: 0 12px; border: 1px solid var(--pl-edge);
  background: var(--pl-paper); color: var(--pl-muted); font: inherit; font-size: 12px; cursor: pointer;
  /* no transition: the pressed state must be right the instant the page loads */
}
.pl-toggle button:first-child { border-radius: var(--pl-radius) 0 0 var(--pl-radius); }
.pl-toggle button:last-child { border-radius: 0 var(--pl-radius) var(--pl-radius) 0; }
.pl-toggle button + button { margin-left: -1px; }
@media (hover: hover) { .pl-toggle button:not([aria-pressed="true"]):hover { color: var(--pl-ink); background: var(--pl-paper-hover); } }
.pl-toggle button[aria-pressed="true"] { background: var(--pl-ink); border-color: var(--pl-ink); color: var(--pl-paper); }
.pl-toggle button:focus-visible { position: relative; z-index: 1; }

.pl-bar-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin-top: 10px; font-size: 12px; color: var(--pl-muted);
}
.pl-count b { font-weight: 500; color: var(--pl-ink); }

.pl-help { margin: -16px 0 24px; font-size: 12px; color: var(--pl-muted); }
.pl-help summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 10px; list-style: none; cursor: pointer;
  border: 1px solid var(--pl-edge); border-radius: var(--pl-radius); color: var(--pl-ink);
}
.pl-help summary::-webkit-details-marker { display: none; }
.pl-help summary::after { content: "+"; color: var(--pl-muted); }
.pl-help[open] summary::after { content: "-"; }
@media (hover: hover) { .pl-help summary:hover { background: var(--pl-paper-hover); } }
.pl-help p { margin-top: 6px; max-width: 42rem; }
.pl-help b { font-weight: 500; color: var(--pl-ink); }
@media (pointer: coarse) { .pl-help summary { min-height: 44px; } }

/* ---------- card (grid view) ---------- */

.pl-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 640px) { .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .pl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pl-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--pl-line); border-radius: var(--pl-radius);
  background: var(--pl-paper); box-shadow: var(--pl-shadow);
}

.pl-cover {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  aspect-ratio: 4 / 5; padding: 20px; cursor: pointer;
  border-bottom: 1px solid var(--pl-line); background: var(--pl-cover);
}
.pl-cover-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl-cover-top .pl-badge { white-space: nowrap; }
.pl-card-title {
  margin-top: 16px !important;
  font-family: var(--pl-font-display); font-size: 22px; font-weight: 500;
  line-height: 1.15; letter-spacing: -0.02em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.pl-card-summary {
  margin-top: 12px !important; font-size: 13px; color: var(--pl-muted);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.pl-ruled {
  flex: 1; min-height: 20px; margin-top: 16px; opacity: 0.6;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 13px, var(--pl-line) 13px, var(--pl-line) 14px);
}
.pl-byline {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--pl-line);
  font-size: 11px; color: var(--pl-muted);
}
.pl-byline span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pl-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 16px; }
.pl-card-foot .pl-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pl-panel { padding: 12px 16px 16px; border-top: 1px solid var(--pl-line); font-size: 13px; }
.pl-panel p + p { margin-top: 12px; color: var(--pl-muted); }
.pl-panel-actions { justify-content: flex-end; }
.pl-panel-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--pl-line);
}

/* ---------- row (list view) ---------- */

.pl-list {
  overflow: hidden; border: 1px solid var(--pl-line); border-radius: var(--pl-radius);
  background: var(--pl-paper); box-shadow: var(--pl-shadow);
}
.pl-row + .pl-row { border-top: 1px solid var(--pl-line); }
.pl-row.is-open { background: var(--pl-paper-hover); }
.pl-row-main { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 16px; cursor: pointer; transition: background-color 0.15s; }
@media (hover: hover) { .pl-row-main:hover { background: var(--pl-paper-hover); } }
.pl-row-year { flex: none; width: 40px; text-align: right; font-size: 12px; color: var(--pl-muted); }
.pl-row-text { flex: 1 1 0; min-width: 0; }
.pl-row-main .pl-dot { flex: none; }
.pl-row-title {
  font-family: var(--pl-font-display); font-size: 16px; font-weight: 500; line-height: 1.375; letter-spacing: -0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-row-meta { margin-top: 2px !important; font-size: 11px; color: var(--pl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-row-summary { display: none; flex: 1 1 0; min-width: 0; font-size: 12px; color: var(--pl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-row-topic { display: none; flex: none; width: 84px; }
.pl-row-yr { display: none; }
[data-pl-toggle] { min-width: 70px; }
.pl-row .pl-panel { padding-left: 16px; }
@media (min-width: 640px) {
  .pl-row-topic { display: inline; }
  .pl-row .pl-panel { padding-left: 72px; }
}
@media (min-width: 1024px) {
  .pl-row-text { flex: 0 0 27%; }
  .pl-row-summary { display: block; }
}
@media (max-width: 639px) {
  .pl-row-title { white-space: normal; }
}

/* ---------- empty state ---------- */

.pl-empty { padding: 96px 0; text-align: center; font-size: 14px; color: var(--pl-muted); }
.pl-empty .pl-btn { margin-top: 16px; }
@media (max-width: 639px) { .pl-empty { padding: 40px 0; } }

/* ---------- entry page ---------- */

.pl-entry { max-width: var(--pl-letter); margin: 0 auto; padding: 48px var(--pl-gutter); }
.pl-entry-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 32px; }
.pl-entry-title {
  margin-top: 20px !important;
  font-family: var(--pl-font-display); font-size: 36px; font-weight: 500; line-height: 1.1; letter-spacing: -0.025em;
}
@media (min-width: 640px) { .pl-entry-title { font-size: 48px; } }
.pl-entry-by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 16px; font-size: 14px; color: var(--pl-muted); }
.pl-entry-by b { font-weight: 400; color: var(--pl-ink); }
.pl-entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.pl-status { flex-basis: 100%; min-height: 20px; font-size: 12px; color: var(--pl-muted); }
.pl-code-actions .pl-status { flex-basis: auto; flex: 1 1 200px; }

.pl-quote { margin: 40px 0 0; padding-left: 20px; border-left: 2px solid var(--pl-ink); }
.pl-quote p { font-family: var(--pl-font-display); font-size: 24px; font-weight: 500; font-style: italic; line-height: 1.375; }
.pl-quote p::before { content: "\201C"; }
.pl-quote p::after { content: "\201D"; }

.pl-sections { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
.pl-sections h2 { font-family: var(--pl-font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: var(--pl-muted); }
.pl-sections p { margin-top: 12px; font-size: 16px; }
.pl-steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: step; font-size: 16px; }
.pl-steps li { position: relative; padding: 10px 0 10px 40px; border-top: 1px solid var(--pl-line); counter-increment: step; }
.pl-steps li:last-child { border-bottom: 1px solid var(--pl-line); }
.pl-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-size: 12px; color: var(--pl-muted); }

.pl-note {
  margin-top: 40px; padding: 20px;
  border: 1px solid var(--pl-line); border-radius: var(--pl-radius);
  background: var(--pl-paper); box-shadow: var(--pl-shadow);
}
.pl-note p { margin-top: 8px; color: var(--pl-muted); }

.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pl-entry-end { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--pl-line); font-size: 14px; color: var(--pl-muted); }
.pl-back { font-size: 13px; color: var(--pl-muted); }

/* ---------- style guide page ---------- */

.pl-guide { max-width: var(--pl-content); margin: 0 auto; padding: 48px var(--pl-gutter) 24px; }
.pl-guide-intro { max-width: var(--pl-letter); }
.pl-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--pl-line); }
.pl-section > h2 { font-family: var(--pl-font-display); font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.pl-section > p { margin-top: 12px; max-width: var(--pl-letter); color: var(--pl-muted); }

.pl-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 24px; }
.pl-swatch { border: 1px solid var(--pl-line); border-radius: var(--pl-radius); overflow: hidden; background: var(--pl-paper); }
.pl-swatch-color { height: 72px; border-bottom: 1px solid var(--pl-line); }
.pl-swatch-text { padding: 10px 12px 12px; font-size: 12px; color: var(--pl-muted); }
.pl-swatch-text b { display: block; font-weight: 500; color: var(--pl-ink); }
.pl-swatch-text code { display: block; }

.pl-specimens { margin-top: 24px; border: 1px solid var(--pl-line); border-radius: var(--pl-radius); background: var(--pl-paper); }
.pl-specimen { display: grid; gap: 4px 24px; padding: 16px 20px; }
.pl-specimen + .pl-specimen { border-top: 1px solid var(--pl-line); }
@media (min-width: 768px) { .pl-specimen { grid-template-columns: 200px minmax(0, 1fr); align-items: baseline; } }
.pl-specimen-how { font-size: 12px; color: var(--pl-muted); }

.pl-demo { margin-top: 24px; padding: 24px; border: 1px dashed var(--pl-edge); border-radius: var(--pl-radius); }
.pl-demo + .pl-demo { margin-top: 16px; }
.pl-demo-name { margin-bottom: 16px !important; }
.pl-demo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pl-demo .pl-quote, .pl-demo .pl-note, .pl-demo .pl-chips { margin-top: 0; }
.pl-demo-card { max-width: 290px; }

.pl-rules { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: rule; max-width: var(--pl-letter); }
.pl-rules li { position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--pl-line); counter-increment: rule; }
.pl-rules li::before { content: counter(rule, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-size: 12px; color: var(--pl-muted); }
.pl-rules b { font-weight: 500; }

.pl-code {
  margin: 24px 0 0; padding: 16px 20px; overflow-x: auto;
  border: 1px solid var(--pl-line); border-radius: var(--pl-radius);
  background: var(--pl-paper); font-family: var(--pl-font-mono); font-size: 12.5px; line-height: 1.7;
}
.pl-code-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }

/* ---------- footer ---------- */

.pl-footer { margin-top: 40px; border-top: 1px solid var(--pl-line); }
.pl-footer-in { padding-top: 40px; padding-bottom: 40px; }
.pl-footer-top { display: flex; flex-direction: column; gap: 24px; }
.pl-footer-top p { margin-top: 8px; max-width: 24rem; font-size: 14px; color: var(--pl-muted); }
.pl-footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--pl-muted); }
.pl-footer-bottom {
  display: flex; flex-direction: column; gap: 8px; margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--pl-line); font-size: 12px; color: var(--pl-muted);
}
@media (min-width: 640px) {
  .pl-footer-top { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .pl-footer-links { align-items: flex-end; }
  .pl-footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- phones and short screens ---------- */

@media (pointer: coarse) {
  .pl-field, .pl-select { font-size: 16px; }   /* under 16px an iPhone zooms the page on focus */
  .pl-bar-meta { min-height: 44px; }
  .pl-back, .pl-footer-links .pl-link, .pl-header .pl-brand { display: inline-flex; align-items: center; min-height: 44px; }
  .pl-footer-links { gap: 0; }
}

@media (max-width: 639px) {
  .pl-hero-in { padding-top: 36px; padding-bottom: 32px; }
  .pl-directory { padding-top: 16px; }
  .pl-status { min-height: 40px; }
  /* list rows: the year joins the status line, so nothing wraps mid-word */
  .pl-row-year, .pl-row-main .pl-dot { display: none; }
  .pl-row-who { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pl-row-status { display: block; white-space: nowrap; }
  .pl-row-sep { display: none; }
  .pl-row-yr { display: inline; }
  .pl-bar-row { display: grid; grid-template-columns: 1fr 1fr; }
  .pl-bar-row .pl-control--grow, .pl-bar-row .pl-control--wide { grid-column: 1 / -1; }
  .pl-bar-row .pl-select { width: 100%; }
  .pl-bar-row .pl-toggle { display: flex; }
  .pl-bar-row .pl-toggle button { flex: 1; }
  .pl-row-meta { white-space: normal; }
}

/* A tall cover is mostly blank on a phone or a short window, so let it shrink to its content. */
@media (max-width: 639px), (max-height: 560px) {
  .pl-cover { aspect-ratio: auto; }
  .pl-ruled { flex: none; height: 56px; }
}

/* ---------- motion: one small moment, off when the reader asks for less ---------- */

@media (prefers-reduced-motion: no-preference) {
  .pl-panel { animation: pl-reveal 0.2s ease-out; }
  @media (hover: hover) {
    .pl-card { transition: transform 0.18s ease-out, box-shadow 0.18s ease-out; }
    .pl-card:hover { transform: translateY(-2px); box-shadow: var(--pl-shadow-lift); }
  }
}
/* Slide only, no fade: if a browser pauses animations (a background tab), the text is still readable. */
@keyframes pl-reveal {
  from { transform: translateY(-6px); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pl *, .pl *::before, .pl *::after { transition: none !important; animation: none !important; }
}
