/* OnlyPlans publishing shell. Application controls remain inside their own styles. */
body.op-site {
  --op-sidebar-width: 300px;
  --op-bg: #221e1f;
  --op-panel: #181516;
  --op-line: #3a3437;
  --op-text: #f0ecee;
  --op-muted: #b0a5aa;
  --op-accent: #f67d20;
  --op-link: #68bbd5;
  box-sizing: border-box;
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background: var(--op-bg);
  color: var(--op-text);
  font-family: 'Nunito Sans', 'Avenir', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
.op-site .op-sidebar, .op-site .op-sidebar *, .op-site .op-main { box-sizing: border-box; }
.op-site [hidden] { display: none !important; }
.op-skip { position: fixed; top: 12px; left: 12px; z-index: 200; transform: translateY(-180%); padding: 10px 16px; border-radius: 4px; background: #fff; color: #151213; }
.op-skip:focus { transform: translateY(0); }
.op-site .op-sidebar {
  position: relative;
  inset: 0 auto 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: var(--op-sidebar-width);
  height: auto;
  background: var(--op-panel);
  border-right: 1px solid var(--op-line);
  color: var(--op-text);
  font-family: 'Source Sans 3', 'Avenir', system-ui, sans-serif;
  line-height: 1.4;
}
.op-site.op-shell-ready .op-sidebar { position:fixed; height:100dvh; }
.op-sidebar-head { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 27px 24px 20px; }
.op-site .op-brand { display: block; padding: 27px 24px 20px; color: var(--op-text); text-decoration: none; font: 500 24px/1.1 'Nunito Sans', 'Avenir', system-ui, sans-serif; letter-spacing: -.045em; }
.op-sidebar-head .op-brand { padding: 0; }
.op-sidebar-actions { display:flex; align-items:center; gap:8px; }
.op-utilities { position:static; }
.op-site .op-utilities-toggle { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; padding:9px; border:1px solid var(--op-line); border-radius:5px; background:transparent; color:var(--op-muted); cursor:pointer; }
.op-site .op-utilities-toggle:hover, .op-site .op-utilities-toggle[aria-expanded="true"] { border-color:var(--op-accent); color:var(--op-text); background:#262023; }
.op-utilities-panel { position:absolute; z-index:2; top:79px; left:20px; right:20px; padding:12px; border:1px solid #665a60; border-radius:6px; background:var(--op-panel); box-shadow:0 12px 36px #0007; }
.op-workspace-status { margin:0 0 8px; padding:0 4px 10px; border-bottom:1px solid var(--op-line); color:var(--op-muted); font-size:11px; line-height:1.4; }
.op-site .op-utilities-panel nav { display:grid; grid-template-columns:minmax(0,1fr); align-items:stretch; justify-content:normal; gap:2px; margin:0; letter-spacing:0; }
.op-utilities-panel a { display:block; padding:8px; border-radius:4px; color:var(--op-link); text-decoration:none; font-size:13px; line-height:1.3; }
.op-utilities-panel a:hover { background:#262023; color:var(--op-text); }
.op-site nav.op-workspace-navigation { display:grid; grid-template-columns:1.1fr 1fr 1.4fr 1fr 1.1fr; align-items:stretch; gap:2px; flex:none; margin:0; padding:0 16px 12px; letter-spacing:0; }
.op-workspace-navigation a { color:var(--op-link); text-align:center; text-decoration:none; font-size:12px; line-height:1.3; padding:4px 0; overflow-wrap:anywhere; }
.op-workspace-navigation a:hover { color:var(--op-text); }
.op-site .op-brand:hover { color: var(--op-accent); }
.op-site .op-category-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; flex:none; padding:0 20px 12px; }
.op-site .op-category-filters button { min-width:0; min-height:31px; padding:5px 8px; border:1px solid var(--op-line); border-radius:4px; background:transparent; color:var(--op-muted); font:12px/1.2 'Source Sans 3','Avenir',system-ui,sans-serif; cursor:pointer; }
.op-site .op-category-filters button[aria-pressed="true"] { border-color:#674127; background:#302016; color:#fbb477; }
.op-site .op-category-filters button:hover { border-color:var(--op-accent); color:var(--op-text); }
.op-site .op-type-filters { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); flex: none; gap: 3px; padding: 0 12px 12px; border-bottom: 1px solid var(--op-line); }
.op-site .op-type-filter {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  height: 58px;
  padding: 8px 4px;
  background: transparent;
  border: 1px solid var(--op-line);
  border-radius: 5px;
  color: var(--op-muted);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.op-site .op-type-filter[data-op-type="all"] { grid-column: span 1; }
.op-visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.op-index-search { display:block; flex:none; padding:12px 20px 8px; }
.op-index-search input { width:100%; box-sizing:border-box; border:1px solid var(--op-line); border-radius:4px; padding:7px 9px; background:var(--op-bg); color:var(--op-text); font:13px/1.3 'Source Sans 3',sans-serif; }
.op-site .op-filter-label { font: 11px/1.1 'Source Sans 3', 'Avenir', system-ui, sans-serif; letter-spacing: 0; }
.op-site .op-type-filter[aria-pressed="true"] { border-color: #674127; background: #302016; color: #fbb477; }
.op-site .op-type-filter:hover { color: var(--op-text); border-color: var(--op-accent); }
.op-site [data-op-icon] { display: inline-flex; width: 19px; height: 19px; flex: none; vertical-align: middle; }
.op-site [data-op-icon] svg { display: block; width: 100%; height: 100%; max-width: none; }
.op-site .op-index-summary { flex: none; color: var(--op-muted); font-size: 11px; letter-spacing: .025em; margin: 0; padding: 6px 24px 8px; }
.op-site .op-index-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; padding: 0 20px 9px; }
.op-site .op-sort-control { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--op-muted); font: 11px/1.2 'Source Sans 3', 'Avenir', system-ui, sans-serif; }
.op-site .op-view-switch { display: inline-flex; gap: 4px; flex: none; }
.op-site select[data-op-sort] { min-width: 0; padding: 6px 22px 6px 8px; border: 1px solid var(--op-line); border-radius: 4px; background: var(--op-bg); color: var(--op-text); font: 12px/1.2 'Source Sans 3', 'Avenir', system-ui, sans-serif; }
.op-site button[data-op-view] { min-height: 31px; padding: 5px 8px; border: 1px solid var(--op-line); border-radius: 4px; background: transparent; color: var(--op-muted); font: 12px/1.2 'Source Sans 3', 'Avenir', system-ui, sans-serif; cursor: pointer; }
.op-site button[data-op-view][aria-pressed="true"] { border-color: #674127; background: #302016; color: #fbb477; }
.op-site button[data-op-view]:hover { border-color: var(--op-accent); color: var(--op-text); }
.op-site nav.op-index { display: block; flex: 1; min-height: 0; margin: 0; padding: 0 12px 8px; overflow: visible; }
.op-index-pager { display:flex; align-items:center; justify-content:space-between; gap:12px; flex:none; padding:8px 20px 12px; color:var(--op-muted); font-size:12px; }
.op-index-pager button { border:1px solid var(--op-line); background:transparent; color:var(--op-link); border-radius:4px; width:42px; height:36px; font:18px/1 'Source Sans 3',sans-serif; cursor:pointer; }
.op-index-pager button:disabled { opacity:.35; cursor:default; }
.op-index-pager button:focus-visible { outline:2px solid var(--op-link); outline-offset:2px; }
.op-site .op-index ol { margin: 0; padding: 0; list-style: none; }
.op-site .op-index-item { margin: 0; padding: 0; list-style: none; }
.op-site .op-index-item > a { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0; padding: 11px 12px; border: 1px solid transparent; border-radius: 5px; color: #d8ced2; text-decoration: none; }
.op-site .op-index-item > a:hover { background: #262023; color: var(--op-text); }
.op-site .op-index-item > a[aria-current] { border-color: #674127; background: #302016; color: #ffc599; }
.op-site .op-item-icon { display: block; flex: none; margin-top: 2px; opacity: .68; }
.op-site .op-index-item > a[aria-current] .op-item-icon { opacity: 1; }
.op-site .op-item-thumbnail { display: none; }
.op-site .op-item-rating { display: inline-block; margin-top: 4px; color: #fbb477; font: 11px/1.2 'Source Sans 3', 'Avenir', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.op-site .op-item-rating[hidden] { display: none !important; }
.op-site .op-item-copy { display: block; min-width: 0; }
.op-site .op-item-title { display: block; font-size: 13px; font-weight: 400; line-height: 1.35; overflow-wrap: anywhere; }
.op-site .op-item-copy time, .op-site .op-item-copy .op-undated { display: block; margin-top: 5px; font-size: 10px; line-height: 1.3; color: var(--op-muted); font-variant-numeric: tabular-nums; }
.op-site .op-sidebar[data-op-view="images"] nav.op-index ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 8px; }
.op-site .op-sidebar[data-op-view="images"] .op-index-item > a { height: 100%; flex-direction: column; gap: 7px; margin: 0; padding: 7px; border-color: var(--op-line); }
.op-site .op-sidebar[data-op-view="images"] .op-item-icon { display: none; }
.op-site .op-sidebar[data-op-view="images"] .op-item-thumbnail { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--op-line); border-radius: 3px; background: var(--op-bg); color: var(--op-muted); text-align: center; }
.op-site .op-sidebar[data-op-view="images"] .op-item-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.op-site .op-sidebar[data-op-view="images"] .op-item-thumbnail span { padding: 6px; font: 11px/1.3 'Source Sans 3', 'Avenir', system-ui, sans-serif; }
.op-site .op-sidebar[data-op-view="images"] .op-thumbnail-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--op-muted); text-align: center; }
.op-site .op-sidebar[data-op-view="images"] .op-thumbnail-fallback [data-op-icon] { width: 22px; height: 22px; opacity: .8; }
.op-site .op-sidebar[data-op-view="images"] .op-item-copy { width: 100%; }
.op-site .op-sidebar[data-op-view="images"] .op-item-title { font-size: 12px; line-height: 1.3; }
.op-site .op-sidebar[data-op-view="images"] .op-item-copy time { margin-top: 3px; font-size: 10px; }
.op-site .op-index-empty { margin: 15px 24px; color: var(--op-muted); font-size: 13px; }
.op-site .op-main { min-width: 0; min-height: 100dvh; margin-left: var(--op-sidebar-width); padding: 64px 36px 56px; }
.op-site .op-content, .op-site .op-main > article, .op-site .op-main > header, .op-site .op-main > section, .op-site .op-main > footer { width: 100%; max-width: 760px; margin-left: auto; margin-right: auto; }
.op-site .op-main pre { white-space:pre-wrap; overflow-wrap:anywhere; overflow:visible; max-width:100%; }
.op-site .op-main table { width:100%; max-width:100%; margin:1.6em 0; border-collapse:collapse; font:15px/1.45 'Source Sans 3','Avenir',system-ui,sans-serif; font-variant-numeric:tabular-nums; color:var(--op-text); }
.op-site .op-main table caption { caption-side:top; padding:0 0 8px; text-align:left; color:var(--op-muted); font-size:13px; }
.op-site .op-main th, .op-site .op-main td { padding:9px 12px; text-align:left; vertical-align:top; border-bottom:1px solid var(--op-line); overflow-wrap:normal; }
.op-site .op-main th:first-child, .op-site .op-main td:first-child { padding-left:0; }
.op-site .op-main th:last-child, .op-site .op-main td:last-child { padding-right:0; }
.op-site .op-main thead th, .op-site .op-main table tr:first-child > th { color:var(--op-muted); font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; vertical-align:bottom; border-bottom:2px solid var(--op-accent); }
.op-site .op-main tbody th { font-weight:600; color:var(--op-text); }
.op-site .op-main tbody tr:hover > * { background:color-mix(in srgb, var(--op-accent) 7%, transparent); }
.op-site .op-main [data-op-num] { text-align:right; white-space:nowrap; }
.op-site .op-main figure.wp-block-table, .op-site .op-main .exhibit-table { margin:1.6em 0; overflow-x:auto; }
.op-site .op-main .exhibit-table > table { margin:0; }
.op-site .op-main figure.wp-block-table table { margin:0; }
@media (max-width: 640px) { .op-site .op-main table { display:block; overflow-x:auto; font-size:14px; } .op-site .op-main th, .op-site .op-main td { padding:8px 10px; } }
.op-site .op-main article.essay { max-width: 760px; margin: 0 auto; padding: 0; background: transparent; }
.op-site .op-main .post-meta { margin-bottom: 14px; color: var(--op-muted); font-size: 12px; }
.op-site .op-main .post-title, .op-site .op-main article.essay > h1, .op-site .op-main > header h1, .op-site .op-content > header h1 { margin: 0 0 28px; font-size: clamp(28px, 3.3vw, 42px); font-weight: 400; line-height: 1.18; letter-spacing: -.025em; color: var(--op-accent); }
.op-site .op-main .post-body, .op-site .op-main .essay-body { font-size: 17px; line-height: 1.8; }
.op-site .op-main .post-body > :last-child, .op-site .op-main .essay-body > :last-child { margin-bottom: 0; }
.op-site .op-main .post-body a, .op-site .op-main .essay-body a { overflow-wrap: anywhere; }
.op-site .op-main .essay-copyright { margin: 52px auto 0; max-width: 760px; padding: 20px 0 0; border-top: 1px solid var(--op-line); background: transparent; color: var(--op-muted); }
.op-site .op-main .post-updated { color: var(--op-muted); }
.op-site .post-meta:has(.op-updated) { line-height: 1.7; }
.op-revision-history { margin: 28px 0; padding: 14px 0; border-top: 1px solid var(--op-line, #5f5558); font-size: 14px; line-height: 1.6; }
.op-revision-history summary { min-height: 44px; display: list-item; align-content: center; cursor: pointer; font-weight: 600; }
.op-revision-history summary:focus-visible { outline: 2px solid var(--op-link, #f67d20); outline-offset: 4px; }
.op-revision-history dl { margin: 8px 0 0; }
.op-revision-history dl > div + div { margin-top: 12px; }
.op-revision-history dt { font-weight: 600; }
.op-revision-history dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.op-site .op-main .app-section { height: min(740px, 85dvh); padding-top: 0; margin: 0 auto 40px; }
.op-site .op-main .app-section iframe { width: 100%; height: 100%; }
.op-site .op-main .related-links { margin-top: 24px; }
.op-site .op-published { display: inline; font: 12px/1.4 'Source Sans 3', system-ui, sans-serif; color: var(--op-muted); }
.op-site .op-content > header { margin-bottom: 38px; }
.op-site .op-content > header > p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--op-muted); }
.op-site .op-content > header > .op-home-author { margin: 0 0 14px; font: 12px/1.4 'Source Sans 3', system-ui, sans-serif; }
.op-site .op-publication-list { margin: 0; padding: 0; list-style: none; }
.op-site .op-publication-item { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--op-line); }
.op-site .op-publication-item > a { display: block; padding: 22px 0; color: var(--op-text); text-decoration: none; }
.op-site .op-publication-item > a:hover h2 { color: var(--op-accent); }
.op-site .op-publication-item > a:focus-visible { outline: 2px solid var(--op-link); outline-offset: 5px; }
.op-site .op-publication-item h2 { margin: 7px 0 0; padding: 0; font: 400 23px/1.3 'Nunito Sans', 'Avenir', system-ui, sans-serif; letter-spacing: -.012em; color: var(--op-text); }
.op-site .op-publication-item p { margin: 9px 0 0; color: var(--op-muted); font-size: 14px; line-height: 1.65; }
.op-site .op-archive-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--op-muted); font: 11px/1.5 'Source Sans 3', system-ui, sans-serif; }
.op-site .op-latest > h2 { margin: 0 0 18px; font-size: 14px; font-weight: 400; color: var(--op-muted); }
.op-site .op-archive-link { display: inline-block; margin-top: 22px; color: var(--op-link); font-size: 14px; text-decoration: none; }
.op-site .op-video { width: 100%; aspect-ratio: 16 / 9; margin: 0 0 20px; border: 1px solid var(--op-line); border-radius: 5px; overflow: hidden; background: #0c0a0b; }
.op-site .op-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.op-site .op-content > p > a { color: var(--op-link); font-size: 14px; text-underline-offset: 3px; }
.op-site .op-page-footer { margin: 48px auto 0; padding: 20px 0 0; border-top: 1px solid var(--op-line); color: var(--op-muted); font: 12px/1.5 'Source Sans 3', system-ui, sans-serif; }
.op-site .op-page-footer a { color: inherit; }
.op-site .op-index-toggle, .op-site .op-index-close { display: none; }
.op-site .op-drawer-backdrop { display: none; }
.op-site .op-sidebar :focus-visible, .op-site .op-index-toggle:focus-visible { outline: 2px solid var(--op-link); outline-offset: 3px; }
@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }
  .op-site .op-sidebar { position: relative; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid var(--op-line); }
  .op-site .op-main { margin-left: 0; padding: 38px 24px 48px; }
  .op-site.op-shell-ready .op-main { padding-top: 82px; }
  .op-site.op-shell-ready .op-sidebar { position: fixed; height: 100dvh; max-height: none; width: min(320px, calc(100vw - 44px)); border-right: 1px solid var(--op-line); border-bottom: 0; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease; }
  .op-site.op-shell-ready.op-index-open .op-sidebar { transform: translateX(0); visibility: visible; }
  .op-site.op-shell-ready .op-index-toggle { position: fixed; top: 17px; left: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 12px; border: 1px solid #665a60; border-radius: 5px; background: var(--op-panel); color: var(--op-text); font: 13px/1.2 'Source Sans 3', system-ui, sans-serif; cursor: pointer; }
  .op-site.op-shell-ready .op-index-close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 9px; background: transparent; border: 1px solid var(--op-line); border-radius: 5px; color: var(--op-muted); cursor: pointer; }
  .op-site.op-index-open { overflow: hidden; }
  .op-site.op-index-open .op-drawer-backdrop { position: fixed; inset: 0; z-index: 80; display: block; background: #070506b8; backdrop-filter: blur(2px); }
  .op-site .op-main .post-title, .op-site .op-main article.essay > h1, .op-site .op-main > header h1, .op-site .op-content > header h1 { font-size: clamp(28px, 6vw, 38px); }
}
@media (max-height:600px) {
  .op-sidebar-head { padding:16px 20px 12px; }
  .op-utilities-panel { top:64px; }
  .op-site .op-utilities-panel nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .op-utilities-panel a { padding:7px 5px; font-size:12px; }
  .op-site nav.op-workspace-navigation { padding-bottom:8px; }
  .op-site .op-type-filter { height:40px; gap:3px; padding:4px; }
  .op-site .op-type-filters { padding-bottom:10px; }
  .op-site .op-index-summary { padding:8px 20px 6px; }
  .op-site .op-sidebar[data-op-view="images"] .op-item-thumbnail { aspect-ratio:auto; height:44px; }
}
@media (max-width: 480px) {
  .op-site .op-main { padding: 34px 18px 42px; }
  .op-site.op-shell-ready .op-main { padding-top: 76px; }
  .op-site .op-main .post-body, .op-site .op-main .essay-body { font-size: 16px; }
  .op-site .op-main .app-section { height: 76dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .op-site .op-type-filter, .op-site.op-shell-ready .op-sidebar { transition: none; }
}

/* Small labelled filters above the personal library's continuous index. */
body.op-site:has(.op-sidebar[data-op-compact]) { --op-sidebar-width:300px; }
.op-site.op-shell-ready .op-sidebar[data-op-compact] { width:min(var(--op-sidebar-width),calc(100vw - 44px)); }
.op-site .op-sidebar[data-op-compact] .op-sidebar-head { padding:6px 10px; }
.op-site .op-sidebar[data-op-compact] .op-brand { padding:0; font-size:20px; }
.op-site .op-sidebar[data-op-compact] .op-sidebar-actions { gap:4px; }
.op-site .op-sidebar[data-op-compact] .op-utilities-toggle,
.op-site.op-shell-ready .op-sidebar[data-op-compact] .op-index-close { width:28px; height:28px; padding:5px; }
.op-site .op-sidebar[data-op-compact] .op-utilities-panel { inset:40px 0 0; min-height:0; padding:12px 10px; border:0; border-top:1px solid var(--op-line); border-radius:0; box-shadow:none; overflow-y:auto; scrollbar-width:none; overscroll-behavior:contain; }
.op-site .op-sidebar[data-op-compact] .op-utilities-panel::-webkit-scrollbar { display:none; }
.op-site .op-sidebar[data-op-compact].op-utilities-open > .op-compact-controls,
.op-site .op-sidebar[data-op-compact].op-utilities-open > [data-op-sidebar-feed],
.op-site .op-sidebar[data-op-compact].op-utilities-open > .op-compact-footer { visibility:hidden; pointer-events:none; }
.op-site .op-post-feedback { margin:0 0 16px; padding:0 0 16px; border-bottom:1px solid var(--op-line); }
.op-site .op-post-feedback h2 { margin:0 0 12px; color:var(--op-text); font:400 14px/1.4 'Source Sans 3','Avenir',system-ui,sans-serif; overflow-wrap:anywhere; }
.op-site .op-sidebar[data-op-compact] .op-utilities-panel nav { grid-template-columns:minmax(0,1fr); }
.op-site .op-sidebar[data-op-compact] .op-utilities-panel a { padding:8px 5px; font-size:12px; }
.op-site .op-sidebar[data-op-compact] .op-workspace-status { padding:0 3px 8px; font-size:10px; }
.op-site .op-compact-controls { display:grid; gap:4px; flex:none; padding:0 10px 7px; }
.op-site .op-filter-cluster { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
.op-site .op-sidebar[data-op-compact] .op-filter-cluster button { display:inline-flex; flex-direction:row; justify-content:flex-start; align-items:center; gap:4px; width:100%; min-width:0; height:30px; min-height:30px; padding:4px; border:1px solid var(--op-line); border-radius:4px; background:#1d191b; color:var(--op-muted); font:11px/1.2 'Source Sans 3','Avenir',system-ui,sans-serif; cursor:pointer; }
.op-site .op-sidebar[data-op-compact] .op-filter-cluster button[data-op-tag] { border-color:#29404a; background:#19242a; color:#86b5c7; }
.op-site .op-sidebar[data-op-compact] .op-filter-cluster button[data-op-tag][aria-pressed="true"] { border-color:#68bbd5; background:#233c47; color:#b6efff; }
.op-site .op-sidebar[data-op-compact] .op-filter-cluster button[data-op-type],
.op-site .op-sidebar[data-op-compact] .op-filter-cluster button[data-op-category] { border-color:#453225; background:#251d17; color:#d8a985; }
.op-site .op-sidebar[data-op-compact] .op-filter-cluster button[data-op-type][aria-pressed="true"],
.op-site .op-sidebar[data-op-compact] .op-filter-cluster button[data-op-category][aria-pressed="true"] { border-color:#f67d20; background:#49301e; color:#ffc38d; }
.op-site .op-sidebar[data-op-compact] .op-filter-cluster button:hover { border-color:#8b8287; color:var(--op-text); }
.op-site .op-sidebar[data-op-compact] .op-filter-cluster [data-op-icon],
.op-site .op-sidebar[data-op-compact] [data-op-sort-toggle] [data-op-icon] { width:12px; height:12px; }
.op-site .op-sidebar[data-op-compact] .op-filter-label { font-size:11px; }
.op-site .op-sidebar-feed { display:block; flex:1; min-height:0; margin:0; padding:3px 4px 3px 6px; border-top:1px solid var(--op-line); list-style:none; overflow-y:auto; overscroll-behavior:contain; }
.op-site .op-sidebar-feed > li { margin:0; padding:0; list-style:none; }
.op-site .op-sidebar-feed > li.op-sidebar-feed-status { display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:28px; padding:5px 8px; color:var(--op-muted); font-size:10px; line-height:1.3; }
.op-site .op-sidebar-feed [data-op-feed-retry] { min-height:28px; padding:4px 7px; border:1px solid var(--op-line); border-radius:4px; background:transparent; color:var(--op-link); font:11px/1.2 'Source Sans 3',sans-serif; cursor:pointer; }
.op-site .op-compact-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; flex:none; margin:0; padding:7px 10px; border-top:1px solid var(--op-line); }
.op-site .op-compact-footer > a { color:var(--op-link); text-decoration:none; font:11px/1.3 'Source Sans 3','Avenir',system-ui,sans-serif; }
.op-site .op-compact-footer > a:hover { color:var(--op-text); }
.op-site .op-sidebar[data-op-compact] .op-index-summary { padding:0; font-size:10px; letter-spacing:0; }

/* One reading frame for every post (exhibit.js). The page never scrolls: the exhibit fills
   the left with no scroll bars and the text scrolls on the right. On a phone held upright
   the exhibit takes the top half and the text the bottom half. */
html:has(body.exhibit-mode) { height: 100%; overflow: hidden; }
body.op-site.exhibit-mode { height: 100%; overflow: hidden; }
.op-site.exhibit-mode .op-main { height: 100dvh; min-height: 0; padding: 0; overflow: hidden; box-sizing: border-box; }
.op-site.exhibit-mode .op-main .op-content[data-exhibit] { width: 100%; max-width: none; height: 100%; margin: 0; }
/* reader-studies/study.css caps every non-study child of a thesis page at 760px; the grid is the page now. */
.op-site.exhibit-mode .op-main .op-content[data-exhibit] > .exhibit-grid { max-width: none; margin: 0; }
.op-site.exhibit-mode .op-main .op-content[data-exhibit] article, .op-site.exhibit-mode .op-main .op-content[data-exhibit] article > * { max-width: none; }
.op-site .exhibit-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); height: 100%; min-height: 0; }
.op-site .exhibit-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; box-sizing: border-box; padding: 22px 28px 18px; border-right: 1px solid var(--op-line); overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.op-site .exhibit-pane::-webkit-scrollbar { display: none; }
.op-site .exhibit-stage { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.op-site .exhibit-text { min-width: 0; height: 100%; overflow-y: auto; box-sizing: border-box; padding: 48px 40px 72px; scrollbar-width: thin; scrollbar-color: var(--op-line) transparent; outline: none; }
.op-site .exhibit-text > article > .post-body, .op-site .exhibit-text > .post-body, .op-site .exhibit-text > p { max-width: 640px; }
.op-site .exhibit-text .post-title { font-size: clamp(26px, 2.6vw, 38px); }
/* Studies fit the pane: the drawing takes the room the rest leaves. */
.op-site .exhibit-stage > .exhibit-item { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.op-site .exhibit-stage > .exhibit-item[hidden] { display: none; }
.op-site .exhibit-stage > .exhibit-item { position: static !important; left: auto !important; transform: none !important; width: auto !important; max-width: 100% !important; }
.op-site .exhibit-stage > .exhibit-item > * { flex: none; }
.op-site .exhibit-stage > .exhibit-item > svg, .op-site .exhibit-stage .bm-workspace, .op-site .exhibit-stage .bm-canvas { flex: 1 1 auto; min-height: 0; }
.op-site .exhibit-stage .bm-workspace { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.op-site .exhibit-stage .bm-canvas { display: flex; flex-direction: column; }
.op-site .exhibit-stage .bm-canvas > svg { flex: 1 1 auto; min-height: 0; }
.op-site .exhibit-stage svg[data-study-scene], .op-site .exhibit-stage svg[data-bm-scene], .op-site .exhibit-stage svg[data-retired-scene], .op-site .exhibit-stage svg[data-es-scene] { width: 100%; height: 100%; min-height: 140px; max-height: none; }
.op-site .exhibit-stage .bm-outcomes { padding-left: 0; border-left: 0; }
.op-site .exhibit-stage [data-bm-metrics], .op-site .exhibit-stage .early-metrics, .op-site .exhibit-stage .retired-metrics, .op-site .exhibit-stage .es-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0 14px; }
.op-site .exhibit-stage .bm-quantities, .op-site .exhibit-stage .bm-progress, .op-site .exhibit-stage .early-supplement:empty { display: none; }
.op-site .exhibit-stage .bm-caption, .op-site .exhibit-stage [data-study-caption], .op-site .exhibit-stage [data-retired-caption], .op-site .exhibit-stage [data-es-caption] { margin: 4px 0 8px; }
/* Explorations, embedded apps and videos fill the pane. */
.op-site .exhibit-stage > .exploration-lab, .op-site .exhibit-stage > .app-section, .op-site .exhibit-stage > .op-video { height: 100%; }
/* A page's own exhibit fills the stage; its drawing (svg or canvas) takes the room its controls leave. */
.op-site .exhibit-stage > section[data-exhibit] { height: 100%; }
.op-site .exhibit-stage > section[data-exhibit] > svg, .op-site .exhibit-stage > section[data-exhibit] > canvas, .op-site .exhibit-stage > section[data-exhibit] > .exhibit-canvas { flex: 1 1 auto; min-height: 0; width: 100%; }
.op-site .exhibit-stage > .app-section iframe, .op-site .exhibit-stage > .op-video iframe { width: 100%; height: 100%; min-height: 0; border: 0; }
.op-site .exhibit-stage > .op-video { justify-content: center; }
.op-site .exhibit-stage > .op-video iframe { height: auto; aspect-ratio: 16 / 9; max-height: 100%; }
/* Figures fit whole, never larger than their own pixels. */
.op-site .exhibit-stage > img.exhibit-item { flex: 0 1 auto; align-self: center; margin: auto !important; }
.op-site .exhibit-stage > .exhibit-item:not(section):not(.op-video) { justify-content: center; align-items: center; }
.op-site .exhibit-stage > .exhibit-item img, .op-site .exhibit-stage > img.exhibit-item, .op-site .exhibit-stage > .exhibit-item video, .op-site .exhibit-stage > .exhibit-item:not([data-exhibit]) > svg { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; }
.op-site .exhibit-stage figure.exhibit-item figcaption { margin-top: 10px; color: var(--op-muted); font-size: 13px; text-align: center; }
.op-site .exhibit-stage figure.wp-block-gallery.exhibit-item { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; align-content: center; }
/* A video page's only link: in the site's link colour, not the browser default. */
.op-site .op-video-source a { color: var(--op-link); font-size: 14px; text-decoration: none; }
.op-site .op-video-source a:hover, .op-site .op-video-source a:focus-visible { text-decoration: underline; }
/* A page with no figures shows its cover and outline. The cover carries the title and date,
   so the text column keeps them for screen readers only instead of printing them twice. */
.op-site .exhibit-grid:has(.exhibit-cover) .exhibit-text :is(.post-title, .post-meta) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.op-site .exhibit-cover { margin: auto 0; display: grid; gap: 10px; max-width: 560px; }
.op-site .exhibit-cover-title { margin: 0; color: var(--op-accent); font-size: clamp(30px, 3.4vw, 52px); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.op-site .exhibit-cover-meta { margin: 0; color: var(--op-muted); font-size: 13px; }
.op-site .exhibit-outline { list-style: none; margin: 18px 0 0; padding: 0; border-left: 1px solid var(--op-line); counter-reset: section; }
.op-site .exhibit-outline li { counter-increment: section; }
.op-site .exhibit-outline button { display: block; width: 100%; padding: 6px 0 6px 14px; border: 0; background: none; color: var(--op-muted); font: 15px/1.35 'Source Sans 3', sans-serif; text-align: left; cursor: pointer; }
.op-site .exhibit-outline button::before { content: counter(section, decimal-leading-zero) "  "; font-variant-numeric: tabular-nums; color: var(--op-line); }
.op-site .exhibit-outline li[data-current] button { color: var(--op-text); box-shadow: inset 2px 0 0 var(--op-accent); }
.op-site .exhibit-tabs { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; margin: 0 0 12px; flex: none; }
.op-site .exhibit-tabs button { min-width: 28px; height: 26px; padding: 0 7px; border: 1px solid var(--op-line); border-radius: 4px; background: transparent; color: var(--op-muted); font: 600 12px/1 'Source Sans 3', sans-serif; font-variant-numeric: tabular-nums; cursor: pointer; }
.op-site .exhibit-tabs button[aria-current="true"] { border-color: var(--op-accent); color: var(--op-accent); }
.op-site .exhibit-anchor { margin: 1.4em 0; }
.op-site .exhibit-anchor button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1px solid var(--op-line); border-left: 3px solid var(--op-accent); border-radius: 3px; background: transparent; color: var(--op-muted); font: 600 12px/1.3 'Source Sans 3', sans-serif; letter-spacing: .04em; text-transform: uppercase; text-align: left; cursor: pointer; }
.op-site .exhibit-anchor[data-current] button { color: var(--op-accent); }
.op-site .exhibit-text .exhibit-supplement { margin: 0 0 1.4em; overflow-x: auto; }
.op-site .exhibit-notes { margin: -.6em 0 1.4em; color: var(--op-muted); font-size: 14px; line-height: 1.55; }
.op-site .exhibit-notes summary { cursor: pointer; color: var(--op-link); font-size: 13px; }
.op-site .exhibit-notes p { margin: .6em 0 0; }
.op-site .exhibit-anchor button:focus-visible, .op-site .exhibit-tabs button:focus-visible, .op-site .exhibit-outline button:focus-visible { outline: 2px solid var(--op-link); outline-offset: 2px; }
@media (max-width: 1099px) and (orientation: portrait), (max-width: 639px) {
  .op-site .exhibit-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: 50% 50%; }
  .op-site .exhibit-pane { padding: 62px 16px 10px; border-right: 0; border-bottom: 1px solid var(--op-line); }
  .op-site .exhibit-text { padding: 20px 16px 48px; }
  .op-site .exhibit-stage .bm-legend, .op-site .exhibit-stage .bm-progress, .op-site .exhibit-stage .early-progress, .op-site .exhibit-stage .retired-progress { display: none; }
  .op-site .exhibit-stage [data-bm-metrics], .op-site .exhibit-stage .early-metrics, .op-site .exhibit-stage .retired-metrics, .op-site .exhibit-stage .es-metrics { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); font-size: 12px; }
  .op-site .exhibit-stage > .exhibit-item img, .op-site .exhibit-stage > img.exhibit-item, .op-site .exhibit-stage > .exhibit-item video, .op-site .exhibit-stage > .exhibit-item:not([data-exhibit]) > svg { max-height: calc(50dvh - 110px); }
  .op-site .exhibit-stage > figure.exhibit-item:has(figcaption) img, .op-site .exhibit-stage > figure.exhibit-item:has(figcaption) video, .op-site .exhibit-stage > figure.exhibit-item:has(figcaption) > svg { max-height: calc(50dvh - 160px); }
  .op-site .exhibit-stage figure.exhibit-item figcaption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: 12px; }
  .op-site .exhibit-stage .bm-caption, .op-site .exhibit-stage [data-study-caption], .op-site .exhibit-stage [data-retired-caption], .op-site .exhibit-stage [data-es-caption] { display: none; }
  .op-site .exhibit-stage .bm-outcomes, .op-site .exhibit-stage [data-bm-metrics], .op-site .exhibit-stage .early-metrics, .op-site .exhibit-stage .retired-metrics, .op-site .exhibit-stage .es-metrics, .op-site .exhibit-stage .early-supplement, .op-site .exhibit-stage .rs-object-dimensions { display: none; }
  .op-site .exhibit-stage .bm-heading h2, .op-site .exhibit-stage .early-heading h2, .op-site .exhibit-stage .retired-heading h2, .op-site .exhibit-stage .es-heading h2 { font-size: 17px; }
  .op-site .exhibit-stage svg[data-study-scene], .op-site .exhibit-stage svg[data-bm-scene], .op-site .exhibit-stage svg[data-retired-scene], .op-site .exhibit-stage svg[data-es-scene] { min-height: 0; }
  /* Too little height to shrink a drawing legibly: on a phone the drawing keeps its width and the pane swipes. */
  .op-site .exhibit-stage, .op-site .exhibit-stage > .exhibit-item:not(.op-video):not(.app-section), .op-site .exhibit-stage .bm-workspace, .op-site .exhibit-stage .bm-canvas { flex: none; }
  /* A page's own exhibit draws to whatever room it has: it fills the top half instead. */
  .op-site.exhibit-mode .exhibit-stage:has(> section[data-exhibit]:not([hidden])) { flex: 1 1 auto; min-height: 0; }
  .op-site.exhibit-mode .exhibit-stage > section.exhibit-item[data-exhibit] { flex: 1 1 auto; height: auto; min-height: 0; }
  .op-site .exhibit-stage svg[data-study-scene], .op-site .exhibit-stage svg[data-bm-scene], .op-site .exhibit-stage svg[data-retired-scene], .op-site .exhibit-stage svg[data-es-scene] { height: auto; flex: none; }
  .op-site .exhibit-cover-title { font-size: 26px; }
  .op-site .exhibit-outline { display: none; }
  /* The top half is all the exhibit has: the library button shrinks to its icon and the
     exhibit's heading row sits beside it, so the drawing gets the height they used. */
  .op-site.exhibit-mode.op-shell-ready .op-index-toggle { top: 10px; left: 12px; width: 40px; height: 40px; min-height: 0; padding: 0; justify-content: center; gap: 0; font-size: 0; }
  .op-site.exhibit-mode .exhibit-pane { padding-top: 10px; }
  .op-site.exhibit-mode .exhibit-pane > .exhibit-tabs { margin-left: 52px; min-height: 40px; align-items: center; }
  .op-site.exhibit-mode .exhibit-pane:not(:has(> .exhibit-tabs)) .exhibit-stage > .exhibit-item:not([data-exhibit]) > :is(.bm-heading, .early-heading, .retired-heading, .es-heading, h2):first-child { margin-left: 52px; min-height: 40px; }
  /* Everything else (figures, videos, a page's own exhibit, which draws its own header) starts below the button. */
  .op-site.exhibit-mode .exhibit-pane:not(:has(> .exhibit-tabs)) .exhibit-stage:not(:has(> .exhibit-item:not([hidden]):not([data-exhibit]) > :is(.bm-heading, .early-heading, .retired-heading, .es-heading, h2):first-child)) { padding-top: 46px; }
  .op-site .exhibit-stage :is(.bm-heading, .early-heading, .retired-heading, .es-heading) { align-items: center; gap: 10px; }
  .op-site .exhibit-stage :is(.bm-heading, .early-heading, .retired-heading, .es-heading) h2, .op-site .exhibit-stage > section[data-exhibit] > h2 { min-width: 0; margin: 0; overflow: hidden; font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  .op-site .exhibit-stage :is(.bm-heading, .early-heading, .retired-heading, .es-heading) > div { min-width: 0; }
  .op-site .exhibit-stage .early-eyebrow { display: none; }
  .op-site .exhibit-stage :is(.bm-heading, .early-heading, .retired-heading, .es-heading) button { flex: none; min-height: 34px; padding: 4px 12px; }
  /* A drawing shrunk below 60% to fit the top half can open full screen at its natural size. */
  .op-site .exhibit-pane[data-zoomable] .exhibit-expand { display: block; position: fixed; z-index: 60; right: 12px; top: calc(50dvh - 44px); min-height: 32px; padding: 4px 12px; border: 1px solid var(--op-line); border-radius: 4px; background: var(--op-panel); color: var(--op-link); font: 600 13px/1 'Source Sans 3', sans-serif; cursor: pointer; }
  .op-site.exhibit-expanded .exhibit-grid { grid-template-rows: 100% 0; }
  .op-site.exhibit-expanded .exhibit-text { visibility: hidden; }
  .op-site.exhibit-expanded .exhibit-pane { border-bottom: 0; scrollbar-width: thin; }
  .op-site.exhibit-expanded .exhibit-pane::-webkit-scrollbar { display: block; width: 4px; }
  .op-site.exhibit-expanded .exhibit-pane[data-zoomable] .exhibit-expand { top: auto; bottom: 16px; }
}
.op-site .exhibit-expand { display: none; }

/* Desktop: the index is fixed from the first paint, not only once the scripts run,
   so the page never lays out under a full-height list and then jumps. */
@media (min-width: 901px) {
  .op-site .op-sidebar { position:fixed; height:100dvh; }
}
/* Home and the full list are places, not works: a fixed row above the index. */
.op-site nav.op-site-nav { display:flex; gap:4px; flex:none; margin:0; padding:0 10px 8px; letter-spacing:0; }
.op-site .op-site-nav a { display:inline-flex; align-items:center; gap:6px; flex:1; min-width:0; height:30px; padding:0 8px; border:1px solid var(--op-line); border-radius:4px; color:var(--op-text); text-decoration:none; font:12px/1.2 'Source Sans 3','Avenir',system-ui,sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.op-site .op-site-nav a:hover { border-color:#8b8287; }
.op-site .op-site-nav a[aria-current="page"] { border-color:#674127; background:#302016; color:#ffc599; }
.op-site .op-site-nav [data-op-icon] { width:13px; height:13px; }
.op-site .op-sidebar[data-op-compact] .op-brand:hover { color:var(--op-accent); }
/* Filters fold into one row; the row names whatever is narrowing the list. Sort stays out. */
.op-site .op-compact-controls { position:relative; }
.op-site .op-filter-details { display:grid; gap:4px; }
.op-site .op-filter-details > summary { display:flex; align-items:center; gap:6px; height:30px; margin-right:84px; padding:0 8px; border:1px solid var(--op-line); border-radius:4px; color:var(--op-muted); font:11px/1.2 'Source Sans 3','Avenir',system-ui,sans-serif; cursor:pointer; list-style:none; }
.op-site .op-filter-details > summary::-webkit-details-marker { display:none; }
.op-site .op-filter-details > summary::after { content:'▾'; margin-left:auto; font-size:10px; }
.op-site .op-filter-details[open] > summary::after { content:'▴'; }
.op-site .op-filter-details > summary:hover { border-color:#8b8287; color:var(--op-text); }
.op-site .op-filter-details > summary [data-op-icon] { width:12px; height:12px; }
.op-site .op-filter-active { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#ffc38d; }
.op-site .op-filter-active:not(:empty)::before { content:'· '; color:var(--op-muted); }
.op-site .op-compact-controls > .op-sort-controls { position:absolute; top:0; right:10px; width:80px; grid-template-columns:minmax(0,1fr); }
.op-site .op-filter-details:focus-within > summary:focus-visible { outline:2px solid var(--op-link); outline-offset:2px; }
.op-site .op-site-nav a:first-child { flex:none; }

/* Library view: collections (pillars of album covers) or the full list with its filters. */
.op-site .op-library-tabs { display:grid; grid-template-columns:1fr 1fr; flex:none; margin:0 10px 8px; padding:2px; border:1px solid var(--op-line); border-radius:5px; }
.op-site .op-library-tabs button { height:26px; border:0; border-radius:3px; background:transparent; color:var(--op-muted); font:12px/1 'Source Sans 3','Avenir',system-ui,sans-serif; cursor:pointer; }
.op-site .op-library-tabs button:hover { color:var(--op-text); }
.op-site .op-sidebar[data-op-library="collections"] [data-op-library-tab="collections"],
.op-site .op-sidebar[data-op-library="all"] [data-op-library-tab="all"] { background:#302016; color:#ffc599; }
.op-site .op-sidebar[data-op-library="collections"] > .op-compact-controls,
.op-site .op-sidebar[data-op-library="collections"] > .op-sidebar-feed,
.op-site .op-sidebar[data-op-library="all"] > .op-collections { display:none; }
.op-site .op-collections { flex:1; min-height:0; padding:0 4px 16px 10px; border-top:1px solid var(--op-line); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--op-line) transparent; scrollbar-gutter:stable; }
.op-site .op-collections::-webkit-scrollbar { width:6px; }
.op-site .op-collections::-webkit-scrollbar-thumb { background:var(--op-line); border-radius:3px; }
.op-site .op-collections:focus-visible { outline:1px solid var(--op-link); outline-offset:-1px; }
.op-site .op-pillar { padding:14px 0 6px; }
/* A pillar's card leads its section and opens the pillar's page. */
.op-site .op-pillar-card { display:grid; grid-template-columns:auto minmax(0,1fr); gap:2px 10px; margin:0 0 12px; padding:12px; border:1px solid color-mix(in srgb, var(--pillar) 45%, var(--op-line)); border-left:3px solid var(--pillar); border-radius:5px; background:color-mix(in srgb, var(--pillar) 8%, #181516); color:var(--op-text); text-decoration:none; }
.op-site .op-pillar-card:hover { background:color-mix(in srgb, var(--pillar) 14%, #181516); }
.op-site .op-pillar-card[aria-current="page"] { border-color:var(--pillar); background:color-mix(in srgb, var(--pillar) 18%, #181516); }
.op-site .op-pillar-card:focus-visible { outline:2px solid var(--op-link); outline-offset:2px; }
.op-site .op-pillar-n { grid-row:1 / span 2; align-self:start; color:var(--pillar); font:600 22px/1 'Nunito Sans','Avenir',system-ui,sans-serif; font-variant-numeric:tabular-nums; }
.op-site .op-pillar-name { color:var(--pillar); font:600 13px/1.25 'Source Sans 3','Avenir',system-ui,sans-serif; letter-spacing:.06em; text-transform:uppercase; }
.op-site .op-pillar-line { color:var(--op-muted); font:12.5px/1.35 'Source Sans 3','Avenir',system-ui,sans-serif; }
/* Topics: one row each, an icon like every other row in the list, opening its tracks below. */
.op-site .op-albums { display:grid; grid-template-columns:minmax(0,1fr); gap:2px; }
.op-site .op-album { display:grid; grid-template-columns:15px minmax(0,1fr) auto; gap:8px; align-items:center; min-width:0; min-height:32px; padding:5px 6px; border:1px solid transparent; border-radius:3px; background:none; color:var(--op-text); text-align:left; cursor:pointer; }
.op-site .op-album:hover { background:#262023; }
.op-site .op-album[aria-expanded="true"] { background:#1d191b; border-color:color-mix(in srgb, var(--pillar) 45%, transparent); border-radius:3px 3px 0 0; }
.op-site .op-album:focus-visible { outline:2px solid var(--op-link); outline-offset:-2px; }
.op-site .op-album-icon, .op-site .op-track-icon { display:flex; width:15px; height:15px; flex:none; color:var(--op-muted); }
.op-site .op-album-icon { color:var(--pillar); }
.op-site .op-album-icon svg, .op-site .op-track-icon svg { display:block; width:100%; height:100%; }
.op-site .op-album-title { font:600 13px/1.3 'Source Sans 3','Avenir',system-ui,sans-serif; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.op-site .op-album-current .op-album-title { color:#ffc599; }
.op-site .op-album-meta { color:var(--op-muted); font:11px/1.2 'Source Sans 3','Avenir',system-ui,sans-serif; font-variant-numeric:tabular-nums; white-space:nowrap; }
.op-site .op-tracks { grid-column:1 / -1; margin:0 0 6px; padding:4px 0; border-top:2px solid var(--pillar); border-radius:0 0 4px 4px; background:#1d191b; list-style:none; }
.op-site .op-tracks li { margin:0; padding:0; list-style:none; }
.op-site .op-tracks a { display:grid; grid-template-columns:15px minmax(0,1fr) auto; gap:8px; align-items:center; padding:5px 8px; color:var(--op-text); text-decoration:none; font:12.5px/1.3 'Source Sans 3','Avenir',system-ui,sans-serif; }
.op-site .op-tracks a:hover { background:#262023; }
.op-site .op-tracks a[aria-current="page"] { background:#302016; color:#ffc599; }
.op-site .op-tracks a:focus-visible { outline:2px solid var(--op-link); outline-offset:-2px; }
.op-site .op-tracks time { color:var(--op-muted); font-size:10.5px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.op-site .op-track-thesis { margin-right:5px; color:var(--pillar); font-size:10.5px; font-variant-numeric:tabular-nums; }
.op-site .op-track-label { color:var(--op-muted); }

/* Reading on: the next post waits under the last line; scrolling on fills its bar and opens it. */
.op-site .exhibit-end { height:0; }
.op-site .exhibit-next { --pull:0; --pillar:var(--op-accent); display:grid; grid-template-columns:72px minmax(0,1fr); gap:6px 16px; align-items:center; max-width:640px; margin:56px 0 24px; padding:16px; border:1px solid var(--op-line); border-radius:6px; color:var(--op-text); text-decoration:none; background:#1d191b; transition:border-color .2s; }
.op-site .exhibit-next:hover, .op-site .exhibit-next[data-pulling] { border-color:var(--pillar); }
.op-site .exhibit-next:focus-visible { outline:2px solid var(--op-link); outline-offset:3px; }
.op-site .exhibit-next-art { grid-row:1; width:72px; height:72px; border-radius:4px; overflow:hidden; background:#141112; display:grid; place-items:center; }
.op-site .exhibit-next-art > svg.op-cover, .op-site .exhibit-next-art > img { width:100%; height:100%; box-shadow:none; border-radius:0; object-fit:cover; }
.op-site .exhibit-next-art > .op-feed-icon, .op-site .exhibit-next-art > .op-track-icon { width:28px; height:28px; color:var(--op-muted); }
.op-site .exhibit-next-copy { display:grid; gap:3px; min-width:0; }
.op-site .exhibit-next-kicker { color:var(--pillar); font:600 11px/1.3 'Source Sans 3',system-ui,sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.op-site .exhibit-next-title { font:400 22px/1.2 'Nunito Sans','Avenir',system-ui,sans-serif; letter-spacing:-.01em; }
.op-site .exhibit-next-date { color:var(--op-muted); font:12px/1.3 'Source Sans 3',system-ui,sans-serif; font-variant-numeric:tabular-nums; }
.op-site .exhibit-next-pull { grid-column:1 / -1; display:grid; gap:6px; margin-top:8px; }
.op-site .exhibit-next-bar { display:block; height:3px; border-radius:2px; background:var(--op-line); overflow:hidden; }
.op-site .exhibit-next-bar > span { display:block; height:100%; width:calc(var(--pull) * 100%); background:var(--pillar); transition:width .12s linear; }
.op-site .exhibit-next-hint { color:var(--op-muted); font:12px/1.3 'Source Sans 3',system-ui,sans-serif; }
.op-site .exhibit-next[data-leaving] { opacity:.6; }
/* Under the card, room to keep scrolling so the reader can feel the pull. */
.op-site .exhibit-next + * { margin-top:0; }
.op-site .exhibit-text:has(.exhibit-next:not([hidden])) { padding-bottom:25vh; }

/* A sparse post lists its study's examples in the study's own words, one line each. */
.op-site .exhibit-stills { max-width:640px; margin:1.6em 0; padding:0; list-style:none; counter-reset:example; }
.op-site .exhibit-stills li { counter-increment:example; position:relative; margin:0; padding:10px 0 10px 34px; border-top:1px solid var(--op-line); color:var(--op-muted); font-size:15px; line-height:1.55; }
.op-site .exhibit-stills li::before { content:counter(example, decimal-leading-zero); position:absolute; left:0; top:12px; color:var(--op-muted); font:12px/1.3 'Source Sans 3',system-ui,sans-serif; font-variant-numeric:tabular-nums; }
.op-site .exhibit-stills li strong { color:var(--op-text); font-weight:600; }
.op-site .exhibit-stills li[data-current] { color:var(--op-text); }
.op-site .exhibit-stills li[data-current]::before { color:var(--op-accent); }
@media (prefers-reduced-motion: reduce) { .op-site .exhibit-next, .op-site .exhibit-next-bar > span { transition:none; } }

/* Reading on: the post slides up and away as the next one rises from below. The library panel
   is the same on both pages, so it stays where it is. Other navigations skip this (site.html). */
@view-transition { navigation: auto; }
.op-site .op-sidebar { view-transition-name: op-library; }
/* One continuous scroll: the post leaves the top as the next rises right behind it. The incoming
   page is live while it moves, and a short hold lets it finish building below first. */
::view-transition-old(root) { animation: op-read-out .55s .15s cubic-bezier(.3, .7, .2, 1) both; }
::view-transition-new(root) { animation: op-read-in .55s .15s cubic-bezier(.3, .7, .2, 1) both; }
::view-transition-group(op-library) { animation: none; }
@keyframes op-read-out { to { transform: translateY(-100%); } }
@keyframes op-read-in { from { transform: translateY(100%); } }
/* Going back runs the other way: the post drops away as the previous one comes down from above. */
:root[data-read-on="up"]::view-transition-old(root) { animation-name: op-read-out-up; }
:root[data-read-on="up"]::view-transition-new(root) { animation-name: op-read-in-up; }
@keyframes op-read-out-up { to { transform: translateY(100%); } }
@keyframes op-read-in-up { from { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* The first paint waits for the library panel to be in place (site.html), and a post's body
   waits for its reading frame: it fades in once built instead of showing the plain article
   first. If scripts never run, it shows anyway after a moment. */
body.op-site:not(.op-shell-ready) .op-main > .op-content { opacity:0; animation:op-show 0s 2.5s forwards; }
body.op-site.op-shell-ready .op-main > .op-content { animation:op-fade .2s ease-out; }
@keyframes op-show { to { opacity:1; } }
@keyframes op-fade { from { opacity:0; } }
@media (prefers-reduced-motion: reduce) { body.op-site.op-shell-ready .op-main > .op-content { animation:none; } }

/* Step bar: a many-step study's examples as ticks, pinned to the top of the text column. */
/* Sticky offsets count from inside the column's padding, so the bar sits up by that padding. */
.op-site .exhibit-steps { position:sticky; top:-48px; z-index:3; max-width:none; margin:-48px -40px 28px; padding:12px 40px 8px; background:color-mix(in srgb, var(--op-bg) 94%, transparent); border-bottom:1px solid var(--op-line); backdrop-filter:blur(2px); }
.op-site .exhibit-steps-ticks { display:flex; gap:2px; max-width:640px; }
.op-site .exhibit-steps-ticks button { flex:1 1 0; min-width:0; height:14px; padding:4px 0; border:0; background:none; cursor:pointer; }
.op-site .exhibit-steps-ticks button::before { content:''; display:block; height:6px; border-radius:2px; background:var(--op-line); transition:background .15s; }
.op-site .exhibit-steps-ticks button[data-passed]::before { background:color-mix(in srgb, var(--op-accent) 45%, var(--op-line)); }
.op-site .exhibit-steps-ticks button[data-current]::before { background:var(--op-accent); }
.op-site .exhibit-steps-ticks button:hover::before { background:var(--op-text); }
.op-site .exhibit-steps-ticks button:focus-visible { outline:2px solid var(--op-link); outline-offset:1px; }
.op-site .exhibit-steps-label { margin:4px 0 0; color:var(--op-muted); font:12px/1.3 'Source Sans 3',system-ui,sans-serif; font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:640px; }
@media (max-width: 1099px) and (orientation: portrait), (max-width: 639px) {
  .op-site .exhibit-steps { top:-20px; margin:-20px -16px 18px; padding:8px 16px 6px; }
}
@media (prefers-reduced-motion: reduce) { .op-site .exhibit-steps-ticks button::before { transition:none; } }

/* Going back: a slim bar at the top of the text column while the reader keeps scrolling up. */
.op-site .exhibit-prev { --pull:0; --pillar:var(--op-accent); position:fixed; z-index:40; display:grid; gap:6px; padding:10px 40px 8px; background:color-mix(in srgb, var(--op-bg) 92%, transparent); border-bottom:1px solid var(--pillar); color:var(--op-text); text-decoration:none; font:13px/1.3 'Source Sans 3',system-ui,sans-serif; opacity:0; transform:translateY(-100%); pointer-events:none; transition:opacity .15s, transform .15s; }
.op-site .exhibit-prev[data-pulling] { opacity:1; transform:none; pointer-events:auto; }
.op-site .exhibit-prev .exhibit-next-bar > span { background:var(--pillar); }
.op-site .exhibit-prev-label { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (prefers-reduced-motion: reduce) { .op-site .exhibit-prev { transition:none; } }

/* List size: a slider from the house (icon rows) to the mountain (big covers). The inline script
   by the tabs sets data-op-size (icon, row, stack) and --op-cover before the first paint. */
.op-site .op-size { display:flex; align-items:center; gap:6px; margin:0 10px 8px; }
.op-site .op-size button { display:grid; place-items:center; width:24px; height:24px; padding:0; border:0; border-radius:3px; background:none; color:var(--op-muted); cursor:pointer; }
.op-site .op-size button:hover { color:var(--op-text); background:#262023; }
.op-site .op-size button:focus-visible { outline:2px solid var(--op-link); outline-offset:-2px; }
.op-site .op-size button span { display:flex; width:15px; height:15px; }
.op-site .op-size button:last-child span { width:19px; height:19px; }
.op-site .op-size svg { display:block; width:100%; height:100%; }
.op-site .op-size input { flex:1; min-width:0; margin:0; accent-color:var(--op-accent); }
.op-site .op-album .op-cover, .op-site .op-feed-thumbnail { display:none; }
/* Row: a cover beside each title, 20 to 72px. */
.op-site .op-sidebar[data-op-size="row"] .op-album { grid-template-columns:var(--op-cover) minmax(0,1fr) auto; }
.op-site .op-sidebar[data-op-size="row"] .op-album-icon { display:none; }
.op-site .op-sidebar[data-op-size="row"] .op-album .op-cover { display:block; width:var(--op-cover); height:var(--op-cover); border-radius:3px; background:#141112; box-shadow:0 0 0 1px var(--op-line); }
.op-site .op-sidebar[data-op-size="row"] .op-feed-thumbnail { display:block; width:var(--op-cover); height:var(--op-cover); flex:none; object-fit:cover; border-radius:3px; background:#141112; }
.op-site .op-sidebar:is([data-op-size="row"], [data-op-size="stack"]) .op-sidebar-feed a:has(.op-feed-thumbnail) .op-feed-icon { display:none; }
.op-site .op-sidebar[data-op-size="row"] .op-feed-icon { box-sizing:border-box; width:var(--op-cover); height:var(--op-cover); padding:calc(var(--op-cover) * .22); border-radius:3px; background:#141112; }
/* Stack: a grid of covers, three across, then two, then one full-width column; title under each. */
.op-site .op-sidebar[data-op-size="stack"] .op-albums { grid-template-columns:repeat(auto-fill, minmax(min(100%, var(--op-cover)), 1fr)); gap:14px 10px; }
.op-site .op-sidebar[data-op-size="stack"] .op-album { display:flex; flex-direction:column; align-items:stretch; gap:5px; padding:0; border:0; background:none; }
.op-site .op-sidebar[data-op-size="stack"] .op-album-icon { display:none; }
.op-site .op-sidebar[data-op-size="stack"] .op-album .op-cover { display:block; width:100%; height:auto; aspect-ratio:1; border-radius:4px; background:#141112; box-shadow:0 0 0 1px var(--op-line), 0 6px 14px #0007; transition:transform .15s ease, box-shadow .15s ease; }
.op-site .op-sidebar[data-op-size="stack"] .op-album:hover .op-cover { transform:translateY(-2px); box-shadow:0 0 0 1px var(--pillar), 0 10px 20px #0009; }
.op-site .op-sidebar[data-op-size="stack"] .op-album[aria-expanded="true"] .op-cover { box-shadow:0 0 0 2px var(--pillar), 0 10px 20px #0009; }
.op-site .op-sidebar[data-op-size="stack"] .op-album-title { white-space:normal; overflow-wrap:anywhere; }
.op-site .op-sidebar[data-op-size="stack"] .op-album-meta { margin-top:-3px; }
.op-site .op-sidebar[data-op-size="stack"] .op-tracks { border-radius:4px; }
.op-site .op-sidebar[data-op-size="stack"]:not([data-op-library="collections"]) > .op-sidebar-feed { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, var(--op-cover)), 1fr)); gap:12px 10px; align-content:start; padding-top:8px; }
.op-site .op-sidebar[data-op-size="stack"] .op-sidebar-feed > li.op-sidebar-feed-status { grid-column:1 / -1; }
.op-site .op-sidebar[data-op-size="stack"] .op-sidebar-feed a { flex-direction:column; align-items:stretch; gap:5px; padding:0; }
.op-site .op-sidebar[data-op-size="stack"] .op-feed-thumbnail.op-feed-cover { aspect-ratio:1; }
.op-site .op-sidebar[data-op-size="stack"] .op-feed-thumbnail { display:block; width:100%; height:auto; aspect-ratio:4 / 3; object-fit:cover; border-radius:4px; background:#141112; box-shadow:0 0 0 1px var(--op-line); }
.op-site .op-sidebar[data-op-size="stack"] .op-feed-icon { box-sizing:border-box; width:100%; height:auto; aspect-ratio:4 / 3; padding:30%; border-radius:4px; background:#141112; box-shadow:0 0 0 1px var(--op-line); }
.op-site .op-sidebar[data-op-size="stack"] .op-feed-copy { flex-direction:column; gap:1px; padding:0 2px 4px; }
.op-site .op-sidebar[data-op-size="stack"] .op-feed-title { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.op-site .op-sidebar[data-op-size="stack"] .op-feed-copy time { margin-left:0; }
@media (prefers-reduced-motion: reduce) { .op-site .op-sidebar[data-op-size="stack"] .op-album .op-cover { transition:none; } }

/* The app: the site's one public tool. The home page points to it; its own page has a slim bar. */
.op-site .op-app-cta { display:inline-flex; align-items:center; gap:8px; margin-top:14px; padding:9px 16px; border:1px solid var(--op-accent); border-radius:4px; background:#302016; color:#ffc599; font:600 14px/1.2 'Source Sans 3',system-ui,sans-serif; text-decoration:none; }
.op-site .op-app-cta:hover { background:#3d2717; }
.op-site .op-app-cta:focus-visible { outline:2px solid var(--op-link); outline-offset:2px; }
body.op-site.op-app-page { min-height:100vh; margin:0; background:var(--op-bg); color:var(--op-text); }
.op-site .op-app-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 20px; border-bottom:1px solid var(--op-line); }
.op-site .op-app-bar .op-brand { padding:0; color:var(--op-text); text-decoration:none; font:400 20px/1 'Nunito Sans','Avenir',system-ui,sans-serif; }
.op-site .op-app-bar-link { color:var(--op-muted); font:13px/1.2 'Source Sans 3',system-ui,sans-serif; text-decoration:none; }
.op-site .op-app-bar-link:hover { color:var(--op-text); }
@media (max-width: 640px) { .op-site .op-app-bar-link span { display:none; } }

/* Optional collection guides; ordinary OnlyPlans collections keep their existing order. */
.op-site .op-topic-guide { color:var(--op-muted); font:14px/1.5 'Source Sans 3','Avenir',system-ui,sans-serif; }
.op-site .op-topic-guide span { display:block; margin-top:5px; }
.op-site .op-tracks .op-track-guide { padding:8px; }
.op-site .op-tracks .op-topic-guide { margin:0; font-size:12.5px; }
.op-site .op-track-start { color:var(--op-link); font-weight:600; }
