/* ─── Reset & tokens ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --c-bg:          #F1EDE4;
  --c-surface:     #FBF8F1;
  --c-text:        #181713;
  --c-muted:       #716B5F;
  --c-border:      #CBC3B4;
  --c-practice:    #DC2626;
  --c-performance: #EAB308;
  --c-potential:   #DB2777;
  --c-logout:      #9CA3AF;
  --r-sm:  3px;
  --r-md:  6px;
  --r-lg:  12px;
  --r-xl:  22px;
  --sh-sm: 0 2px 8px rgba(40,34,24,.08);
  --sh-md: 0 18px 48px rgba(40,34,24,.12);
  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.1vw + 11px, 17px);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  letter-spacing: 0;
  padding-top: 72px;
  min-height: 100vh;
  background-image: radial-gradient(circle at 12% 0%, rgba(255,255,255,.72), transparent 31%), linear-gradient(115deg, rgba(117,93,56,.025), transparent 42%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

p {
  margin-top: 0;
  margin-bottom: 1.15em;
  line-height: 1.9;
  max-width: 72ch;
}

main p:last-child {
  margin-bottom: 0;
}

q {
  quotes: "“" "”" "‘" "’";
}

q::before {
  content: open-quote;
}

q::after {
  content: close-quote;
}

.top-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--fab-chrome-height, 96px);
  pointer-events: none;
  opacity: 0;
  z-index: 150;
  background: linear-gradient(to bottom, rgba(247, 247, 245, .92) 0%, rgba(247, 247, 245, .72) 45%, rgba(247, 247, 245, 0) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  transition: opacity .18s ease;
}

body.scrolled .top-chrome {
  opacity: 1;
}

body.fab-open .top-chrome {
  opacity: 1;
}

body.filter-open .top-chrome {
  opacity: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .45em;
  font-family: var(--font-ui);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}

:focus-visible {
  outline: 3px solid var(--c-text);
  outline-offset: 4px;
}

h1 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.5rem); }
h4, h5, h6 {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  letter-spacing: .01em;
}

/* ─── Header navigation ──────────────────────────────────────────── */
.home-link,
.filter-menu {
  position: fixed;
  top: 12px;
  left: 20px;
  z-index: 200;
  font-size: 28px;
  font-weight: 900;
  color: var(--c-text);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 48px;
  text-decoration: none;
  user-select: none;
  font-family: var(--font-ui);
}

.home-link {
  width: 40px;
  height: 40px;
  border: 1.5px solid #000;
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
}

.filter-menu { height: 40px; pointer-events: auto; }
.filter-trigger {
  width: 40px;
  height: 40px;
  border: 1.5px solid #000;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 22px;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.filter-menu.open .filter-trigger { transform: rotate(45deg); }
.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  top: 48px;
  left: -12px;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease;
  padding: 10px 16px 14px;
  background: transparent;
  border-radius: var(--r-md);
}
.filter-menu.open .filter-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  background: rgba(247, 247, 245, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, .1);
  box-shadow: 0 4px 24px rgba(34,26,18,.1);
}
.filter-gap { height: 14px; }
.fab-item--week .fab-item-circle { background: #000; color: #fff; }
/* ─── FAB menu ────────────────────────────────────────────────────── */
.fab-menu {
  position: fixed;
  top: 12px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.fab-trigger {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
  pointer-events: auto;
}

.fab-menu.open .fab-trigger {
  transform: rotate(45deg);
}

.fab-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}

.fab-menu.open .fab-items {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fab-item {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.fab-item-label {
  color: var(--c-text);
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  white-space: nowrap;
  font-family: var(--font-ui);
}

.fab-item-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #111;
  border: 0;
  box-shadow: 0 2px 8px rgba(34,26,18,.12);
  flex-shrink: 0;
}

.fab-item--practice .fab-item-circle    { background: var(--c-practice); color: #fff; }
.fab-item--performance .fab-item-circle { background: var(--c-performance); }
.fab-item--potential .fab-item-circle   { background: var(--c-potential); color: #fff; }
.fab-item--logout .fab-item-circle,
.fab-item--nav .fab-item-circle,
.fab-item--utility .fab-item-circle     { background: #000; color: #fff; font-size: 0; }
.fab-item--logout .fab-item-label,
.fab-item--nav .fab-item-label,
.fab-item--utility .fab-item-label      { color: var(--c-muted); opacity: .7; }
.fab-item--logout,
.fab-item--utility { width: 100%; justify-content: flex-end; }
.fab-item--logout { margin-top: 14px; }

/* ─── Inline login panel (inside FAB) ─────────────────────────────── */
.fab-login-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--sh-md);
  width: 230px;
}

.fab-login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fab-login-form input[type="text"],
.fab-login-form input[type="password"] {
  width: 100%;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 14px;
  background: var(--c-bg);
  color: var(--c-text);
  outline: none;
  font-family: inherit;
}

.fab-login-form input:focus {
  border-color: var(--c-text);
}

.fab-login-form button[type="submit"] {
  align-self: flex-end;
  background: var(--c-text);
  color: #fff;
  border: 1px solid var(--c-text);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.fab-login-error {
  font-size: 13px;
  color: #DC2626;
  margin-bottom: 4px;
}

/* ─── Page wrap ───────────────────────────────────────────────────── */
.page-wrap {
  padding: 42px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-wrap > * + * {
  margin-top: 30px;
}

/* ─── Grid ────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 48px 28px;
}

/* ─── Tile ────────────────────────────────────────────────────────── */
.tile {
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow .15s ease, transform .15s ease;
  color: var(--c-text);
  text-decoration: none;
}

.tile:hover {
  box-shadow: none;
  transform: none;
}

.tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tile-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #EFEFEB;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-tile {
  padding-bottom: 0;
}

.landing-tile .tile-media {
  overflow: visible;
}

.tile-media img,
.entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-media-fallback {
  color: var(--c-muted);
  font-size: 13px;
}

.tile-title {
  display: inline-block;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
  font-family: var(--font-ui);
  color: #111;
  max-width: min(100%, calc(100% - 18px));
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tile-meta {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.tile-author {
  display: inline-block;
  width: fit-content;
  max-width: min(100%, calc(100% - 18px));
  font-size: 1rem;
  line-height: 1.4;
  font-family: var(--font-ui);
  color: #111;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.landing-tile .tile-title,
.landing-tile .tile-author { max-width: 100%; }

.tile-type-label {
  position: absolute;
  left: 10px;
  top: 0;
  transform: translateY(-66%);
  z-index: 2;
  display: inline-block;
  padding: .08em .16em;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-family: var(--font-ui);
  color: #111;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-repeat: no-repeat;
  background-size: 100% .78em;
  background-position: 0 90%;
}

.tile-type-label--practice {
  background-image: linear-gradient(color-mix(in srgb, var(--c-practice) 44%, transparent), color-mix(in srgb, var(--c-practice) 44%, transparent));
}

.tile-type-label--performance {
  background-image: linear-gradient(color-mix(in srgb, var(--c-performance) 50%, transparent), color-mix(in srgb, var(--c-performance) 50%, transparent));
}

.tile-type-label--potential {
  background-image: linear-gradient(color-mix(in srgb, var(--c-potential) 44%, transparent), color-mix(in srgb, var(--c-potential) 44%, transparent));
}

/* ─── Badge ───────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-family: var(--font-ui);
  color: #fff;
  width: fit-content;
}

.badge--practice    { background: var(--c-practice); }
.badge--performance { background: var(--c-performance); }
.badge--potential   { background: var(--c-potential); }
.badge--performance { color: #111; }
.badge--hidden { background: #6B7280; }
.badge--tag { background: var(--c-muted); margin-left: 4px; }

.meta {
  font-size: 1rem;
  color: var(--c-muted);
  line-height: 1.75;
}

/* ─── Entry layout ────────────────────────────────────────────────── */
.entry-sheet,
.potential-sheet {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 0;
  box-shadow: var(--sh-md);
  padding: 24px;
}

.page-wrap--entry .entry-sheet,
.page-wrap--entry > .panel,
.page-wrap--form .panel {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.entry-media {
  width: 100%;
  border-radius: var(--r-md);
  min-height: 300px;
  background: #EFEFEB;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ─── Panel ───────────────────────────────────────────────────────── */
.panel {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 0;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--sh-sm);
}

.panel h3 {
  margin-top: 0;
  font-size: 1.02rem;
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: .08em;
  color: var(--c-muted);
}

.page-wrap > .panel + .panel,
.page-wrap > .entry-main + .panel,
.page-wrap > .potential-main + .potential-contribute-panel {
  position: relative;
  padding-top: 34px;
}

.page-wrap > .panel + .panel::before,
.page-wrap > .entry-main + .panel::before,
.page-wrap > .potential-main + .potential-contribute-panel::before {
  content: "·";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: min(260px, calc(100% - 10px));
  border-top: 1px solid color-mix(in srgb, var(--c-border) 92%, #fff);
  text-align: center;
  line-height: 0;
  color: var(--c-muted);
}

.panel--error {
  background: #FEF2F2;
  color: #DC2626;
}

/* ─── Forms ───────────────────────────────────────────────────────── */
.form-wrap {
  max-width: 680px;
}

.page-wrap--form .form-wrap {
  max-width: 760px;
}

.page-wrap--form input[type="text"],
.page-wrap--form input[type="email"],
.page-wrap--form input[type="password"],
.page-wrap--form textarea,
.page-wrap--form select {
  border-width: 0 0 1.5px;
  border-color: var(--c-text);
  border-radius: 0;
  background: transparent;
}

.page-wrap--form .checkbox-list {
  border-width: 0 0 1.5px;
  border-color: var(--c-border);
  border-radius: 0;
  background: transparent;
}

.form-row {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 12px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-family: var(--font-ui);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea,
select {
  width: 100%;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 16px;
  background: var(--c-surface);
  color: var(--c-text);
  outline: none;
  transition: border-color .15s;
  font-family: var(--font-ui);
  line-height: 1.7;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: var(--c-text);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input[type="submit"],
button[type="submit"] {
  display: inline-block;
  background:
    radial-gradient(circle at 18px 50%, var(--c-text) 0 7px, transparent 7.5px),
    #fff;
  color: var(--c-text);
  border: 1px solid var(--c-text);
  border-radius: 0;
  padding: 12px 18px 12px 34px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background-color .15s, color .15s;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
  background:
    radial-gradient(circle at 18px 50%, #fff 0 7px, transparent 7.5px),
    var(--c-text);
  color: #fff;
}

.checkbox-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 12px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-surface);
}

.trace-stack {
  display: grid;
  gap: 8px;
}

.trace-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.trace-link {
  font-size: 14px;
  text-transform: lowercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  font-family: var(--font-ui);
}

.trace-link--practice { color: var(--c-practice); }
.trace-link--performance { color: #A16207; }
.trace-link--potential { color: var(--c-potential); }

.trace-sep {
  color: var(--c-muted);
  font-size: 12px;
}

/* ─── Thread / messages ───────────────────────────────────────────── */
.thread,
.message-list {
  display: grid;
  gap: 14px;
}

.message,
.message-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 0;
  padding: 22px;
  box-shadow: var(--sh-sm);
  font-size: 1.05rem;
  line-height: 1.85;
}

.message-meta {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 8px;
  font-family: var(--font-ui);
}

.small-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-links a {
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 0;
  padding: 4px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: border-color .15s;
  font-family: var(--font-ui);
}

.small-links a:hover {
  border-color: var(--c-text);
  text-decoration: none;
}

.connection-link {
  border: 0;
  background-repeat: no-repeat;
  background-size: 100% .78em;
  background-position: 0 90%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.connection-link--practice {
  background-image: linear-gradient(color-mix(in srgb, var(--c-practice) 44%, transparent), color-mix(in srgb, var(--c-practice) 44%, transparent));
}

.connection-link--performance {
  background-image: linear-gradient(color-mix(in srgb, var(--c-performance) 50%, transparent), color-mix(in srgb, var(--c-performance) 50%, transparent));
}

.empty-note {
  color: var(--c-muted);
  font-size: 14px;
}

/* ─── Potential layout ────────────────────────────────────────────── */
.potential-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.appendix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.appendix-item {
  border: 1px solid var(--c-border);
  border-radius: 0;
  padding: 8px;
  display: grid;
  gap: 8px;
  background: #fff;
}

.appendix-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.appendix-item strong {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-ui);
  word-break: break-word;
}

.appendix-item-filetype {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  border-radius: 0;
  background: var(--c-bg);
  color: var(--c-muted);
  font-size: 12px;
  text-align: center;
  padding: 6px;
}

.upload-dropzone {
  margin-top: 8px;
  border: 1.5px dashed var(--c-border);
  border-radius: 0;
  padding: 12px;
  color: var(--c-muted);
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  font-family: var(--font-ui);
}

.upload-dropzone.is-dragging {
  border-color: var(--c-text);
  background: #f8f8f8;
  color: var(--c-text);
}

.upload-progress {
  margin-top: 14px;
}

.upload-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 0;
  background: #ECECEC;
  overflow: hidden;
}

.upload-progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--c-practice), var(--c-performance));
  transition: width .14s linear;
}

.upload-progress-text {
  margin: 7px 0 0;
  font-size: 12px;
  color: var(--c-muted);
  font-family: var(--font-ui);
}

.potential-columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 33%);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.potential-column {
  min-height: 220px;
}

/* ─── Potential 3-column dialectical layout ───────────────────────── */
.potential-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 72vh;
  border: 1px solid var(--c-border);
  overflow: hidden;
}

.potential-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.potential-col + .potential-col {
  border-left: 2px solid var(--c-potential);
}

.potential-col-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--font-ui);
  flex-shrink: 0;
}

.potential-col--context {
  background: #fff;
  color: var(--c-text);
}

.potential-col--others {
  background: #fff;
  color: var(--c-text);
}

.potential-col--author {
  background: var(--c-potential);
  color: #fff;
}

.potential-col--author .potential-col-header {
  color: rgba(255,255,255,.75);
  border-bottom-color: rgba(255,255,255,.2);
}

.potential-col-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 20px;
}

.potential-msg {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}

.potential-col--author .potential-msg {
  border-bottom-color: rgba(255,255,255,.2);
}

.potential-msg:last-child {
  border-bottom: 0;
}

.potential-msg-text {
  margin: 0 0 6px;
  line-height: 1.6;
  font-size: .95rem;
}

.potential-col--others .potential-msg-text {
  color: var(--c-potential);
}

.potential-col--author .potential-msg-text {
  color: #fff;
}

.potential-msg-author {
  font-size: 11px;
  font-family: var(--font-ui);
  opacity: .65;
  letter-spacing: .03em;
}

.potential-col-form {
  flex-shrink: 0;
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.potential-col--author .potential-col-form {
  border-top-color: rgba(255,255,255,.2);
}

.potential-col-form textarea {
  min-height: 80px;
  font-size: 14px;
}

.potential-col--author .potential-col-form textarea {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

.potential-col-form button[type="submit"],
.potential-col-form input[type="submit"] {
  margin-top: 8px;
  font-size: 13px;
  padding: 8px 14px 8px 30px;
  background:
    radial-gradient(circle at 14px 50%, var(--c-text) 0 5px, transparent 5.5px),
    #fff;
}

.potential-col--author .potential-col-form button[type="submit"],
.potential-col--author .potential-col-form input[type="submit"] {
  background:
    radial-gradient(circle at 14px 50%, var(--c-potential) 0 5px, transparent 5.5px),
    #fff;
  color: var(--c-potential);
  border-color: #fff;
}

.potential-col-context-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #EFEFEB;
  margin-bottom: 14px;
}

.potential-col-context-media-fallback {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EFEFEB;
  color: var(--c-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.potential-col-context-desc {
  font-size: .9rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─── Potential drawer ────────────────────────────────────────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.potential-drawer {
  position: fixed;
  z-index: 301;
  top: 0;
  right: 0;
  bottom: 0;
  width: 33.333vw;
  min-width: 360px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, .88);
  color: #fff;
  box-shadow: -12px 0 32px rgba(0, 0, 0, .18);
  transform: translateX(100%);
  transition: transform .25s ease;
  font-family: var(--font-ui);
}

.potential-drawer.open {
  transform: translateX(0);
}

.potential-drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, .24);
  padding-bottom: 20px;
}

.potential-drawer h2,
.potential-drawer p {
  margin-top: 0;
}

.potential-drawer-kicker {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: var(--font-ui);
}

.drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.potential-reflections {
  flex: 1;
  overflow-y: auto;
}

.potential-reflection {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.potential-reflection p {
  margin-bottom: 8px;
}

.potential-reflection-author {
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  font-family: var(--font-ui);
}

.potential-drawer-empty {
  padding-top: 22px;
  color: rgba(255, 255, 255, .7);
}

.potential-drawer-footer {
  padding-top: 20px;
}

.potential-add-button {
  width: 44px;
  height: 44px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.potential-reflection-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.potential-reflection-form textarea {
  min-height: 120px;
  resize: vertical;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
}

.potential-reflection-form button[type="submit"] {
  justify-self: start;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  padding: 10px 16px;
  cursor: pointer;
}

.potential-login-link {
  color: #fff;
  text-decoration: underline;
}

body.drawer-open {
  overflow: hidden;
}

/* ─── Standalone login page ───────────────────────────────────────── */
.login-wrap {
  max-width: 400px;
  margin: 60px auto 0;
  padding: 0 24px;
}

.login-wrap h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 28px;
}

.entry-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--c-border);
  padding: 8px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.profile-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 0;
  box-shadow: var(--sh-sm);
  overflow: hidden;
}

.profile-summary {
  cursor: pointer;
  list-style: none;
}

.profile-summary::-webkit-details-marker {
  display: none;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.profile-body {
  padding: 12px;
}

.profile-bio {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ─── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .potential-drawer {
    width: 100vw;
    min-width: 0;
    padding: 24px;
  }

  .potential-layout {
    grid-template-columns: 1fr;
  }

  .page-wrap {
    padding: 24px 18px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 32px 12px;
  }

  .potential-columns {
    grid-auto-columns: minmax(200px, 86%);
  }

  .potential-3col {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .potential-col + .potential-col {
    border-left: 0;
    border-top: 2px solid var(--c-potential);
  }
}

/* ─── Filter active tags ──────────────────────────────────────────── */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 20px;
  min-height: 0;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--c-text);
  color: #fff;
  padding: 4px 10px 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--font-ui);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.filter-tag:hover {
  background: #444;
}

.filter-tag-x {
  font-size: 13px;
  line-height: 1;
  margin-left: 2px;
  opacity: .7;
}

/* ─── Media player ────────────────────────────────────────────────── */
.tile-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.tile-audio-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  color: rgba(255,255,255,.6);
  font-size: 32px;
}

.tile-video-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.12), transparent 24%),
    linear-gradient(145deg, #302e29, #151512);
  color: #fff;
}

.tile-video-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  font-size: 17px;
}

.tile-video-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .68;
}

.tile-video-overlay {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 50%;
  background: rgba(18,18,16,.66);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.entry-video-player {
  position: relative;
  width: 100%;
  background: #111;
  margin-bottom: 20px;
  display: block;
}

.entry-video-player video {
  width: 100%;
  max-height: 65vh;
  display: block;
  background: #000;
}

.entry-video-load {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.34));
  color: #fff;
  cursor: pointer;
}

.entry-video-load span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: rgba(20,20,18,.55);
  font-size: 19px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.entry-video-load small {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.entry-video-player.is-loaded .entry-video-load {
  display: none;
}

.entry-video-player--appendix {
  min-height: 180px;
  margin-bottom: 0;
}

.entry-video-player--appendix video {
  min-height: 180px;
}

.entry-audio-player {
  width: 100%;
  background: #111;
  border-radius: 0;
  padding: 20px 20px 16px;
  margin-bottom: 20px;
}

.audio-waveform-canvas {
  width: 100%;
  height: 72px;
  display: block;
  cursor: pointer;
  margin-bottom: 10px;
  border-radius: 0;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  color: #111;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.audio-time {
  color: rgba(255,255,255,.65);
  font-size: 12px;
  font-family: var(--font-ui);
  white-space: nowrap;
  flex-shrink: 0;
}

.audio-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,.2);
  cursor: pointer;
  border-radius: 2px;
  position: relative;
}

.audio-progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 0;
  pointer-events: none;
}

.audio-volume {
  width: 60px;
  height: 3px;
  cursor: pointer;
  accent-color: #fff;
  flex-shrink: 0;
}

.external-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  background: #111;
}

.external-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── 2026 atelier refresh: landing archive ─────────────────────── */
.page-wrap--landing {
  width: min(100%, 1540px);
  max-width: none;
  padding: clamp(30px, 4vw, 58px) clamp(20px, 4vw, 68px) 100px;
}

.landing-hero {
  min-height: clamp(330px, 46vw, 610px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: 1px solid var(--c-text);
  padding: 0 0 clamp(24px, 3vw, 42px);
  position: relative;
}

.landing-kicker {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-muted);
}

.landing-kicker::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--c-practice);
}

.landing-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(5rem, 15.5vw, 14.5rem);
  font-weight: 400;
  line-height: .7;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.landing-title span {
  font-style: italic;
  color: var(--c-practice);
}

.landing-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: clamp(34px, 6vw, 76px);
}

.landing-intro p {
  max-width: 560px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.5vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.landing-count,
.landing-toolbar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.landing-toolbar {
  min-height: 48px;
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--c-border);
}

.landing-toolbar-label { color: var(--c-muted); }

.landing-toolbar .filter-tags {
  padding: 8px 0;
  justify-content: flex-end;
}

.landing-grid {
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(14px, 2vw, 30px);
  row-gap: clamp(52px, 7vw, 108px);
  margin-top: clamp(48px, 6vw, 84px) !important;
}

.landing-tile {
  grid-column: span 4;
  position: relative;
}

.landing-tile:nth-child(6n + 2),
.landing-tile:nth-child(6n + 5) {
  transform: translateY(clamp(28px, 4vw, 64px));
}

.landing-tile:nth-child(7n + 4) { grid-column: span 5; }
.landing-tile:nth-child(7n + 5) { grid-column: span 3; }

.landing-tile .tile-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  background: #D8D0C2;
  box-shadow: 0 0 0 1px rgba(24,23,19,.13), 0 10px 32px rgba(50,41,27,.06);
  transition: transform .45s cubic-bezier(.2,.75,.25,1), box-shadow .45s ease;
}

.landing-tile:nth-child(7n + 4) .tile-media { aspect-ratio: 5 / 4; }
.landing-tile:nth-child(7n + 5) .tile-media { aspect-ratio: 3 / 4; }

.landing-tile .tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 8px solid rgba(251,248,241,.16);
  pointer-events: none;
  transition: border-width .35s ease;
}

.landing-tile .tile-media img,
.landing-tile .tile-media video {
  filter: saturate(.86) contrast(1.03);
  transition: transform .65s cubic-bezier(.2,.75,.25,1), filter .35s ease;
}

.landing-tile:hover .tile-media {
  transform: translateY(-7px) rotate(-.35deg);
  box-shadow: 7px 10px 0 color-mix(in srgb, var(--c-text) 12%, transparent), 0 22px 48px rgba(50,41,27,.15);
}

.landing-tile:nth-child(even):hover .tile-media { transform: translateY(-7px) rotate(.35deg); }
.landing-tile:hover .tile-media img,
.landing-tile:hover .tile-media video { transform: scale(1.025); filter: saturate(1) contrast(1.02); }
.landing-tile:hover .tile-media::after { border-width: 4px; }

.landing-tile .tile-type-label {
  top: 12px;
  left: 12px;
  transform: rotate(-2deg);
  padding: 6px 9px 5px;
  border-radius: 2px;
  background-image: none;
  color: #fff;
  font-size: 9px;
  letter-spacing: .12em;
  box-shadow: 2px 3px 0 rgba(0,0,0,.18);
}

.landing-tile .tile-type-label--practice { background: var(--c-practice); }
.landing-tile .tile-type-label--performance { background: var(--c-performance); color: var(--c-text); }
.landing-tile .tile-type-label--potential { background: var(--c-potential); }

.landing-tile .tile-meta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  padding-top: 15px;
  border-top: 1px solid transparent;
}

.landing-tile .tile-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.015em;
}

.landing-tile .tile-author {
  padding-top: 3px;
  color: var(--c-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: right;
}

.filter-trigger,
.fab-trigger,
.home-link {
  width: 46px;
  height: 46px;
  border-color: var(--c-text);
  box-shadow: 0 5px 18px rgba(36,31,23,.12);
}

.filter-trigger,
.home-link { background: var(--c-surface); }
.fab-trigger { background: var(--c-text); }

.filter-menu,
.fab-menu { top: 18px; }
.filter-menu { left: 24px; }
.fab-menu { right: 24px; }

.filter-panel {
  top: 56px;
  left: 0;
  width: 230px;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  gap: 5px;
  padding: 18px;
}

.filter-menu.open .filter-panel {
  background: color-mix(in srgb, var(--c-surface) 94%, transparent);
  border-color: var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

.filter-panel-title {
  margin-bottom: 13px;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1;
}

.filter-panel-section {
  width: 100%;
  margin-bottom: 4px;
  color: var(--c-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.filter-panel-section--week { margin-top: 13px; }

.filter-panel .fab-item {
  width: 100%;
  min-height: 31px;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 10px;
  padding: 3px 6px;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 0;
  background: transparent;
}

.filter-panel .fab-item:hover,
.filter-panel .fab-item.is-active { background: rgba(24,23,19,.07); }
.filter-panel .fab-item.is-active .fab-item-label { font-weight: 700; }
.filter-panel .fab-item.is-active .fab-item-circle { box-shadow: 0 0 0 3px var(--c-surface), 0 0 0 5px var(--c-text); }

.filter-tag {
  border-radius: 999px;
  padding: 6px 11px;
  background: var(--c-text);
}

@media (max-width: 980px) {
  .landing-tile { grid-column: span 6; }
  .landing-tile:nth-child(7n + 4),
  .landing-tile:nth-child(7n + 5) { grid-column: span 6; }
}

@media (max-width: 620px) {
  body { padding-top: 62px; }
  .page-wrap--landing { padding: 30px 16px 72px; }
  .landing-hero { min-height: 0; display: block; }
  .landing-kicker { position: relative; margin-bottom: 28px; line-height: 1.35; max-width: 30ch; }
  .landing-title { font-size: clamp(4.1rem, 24vw, 7.2rem); line-height: .78; white-space: normal; max-width: 5ch; }
  .landing-title span { display: block; }
  .landing-intro { align-items: flex-start; flex-direction: column; gap: 24px; margin-top: 36px; }
  .landing-intro p { font-size: 1.45rem; max-width: 20ch; }
  .landing-count { align-self: flex-end; }
  .landing-grid { display: grid; grid-template-columns: 1fr; row-gap: 52px; }
  .landing-tile,
  .landing-tile:nth-child(7n + 4),
  .landing-tile:nth-child(7n + 5) { grid-column: 1; transform: none; }
  .landing-tile:nth-child(3n + 2) { margin-left: 12vw; }
  .landing-tile:nth-child(3n + 3) { margin-right: 8vw; }
  .landing-tile:nth-child(7n + 5) .tile-media { aspect-ratio: 4 / 3; }
  .landing-tile .tile-title { font-size: 1.65rem; }
  .filter-menu { left: 14px; }
  .fab-menu { right: 14px; }
  .filter-menu, .fab-menu { top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ─── Archive structure refresh ─────────────────────────────────── */
body {
  padding-top: 0;
  background-image: none;
}

body::before { display: none; }
.top-chrome, .filter-menu, .fab-menu, .home-link { display: none !important; }

.site-masthead {
  position: sticky;
  top: 0;
  z-index: 250;
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(420px, 2.5fr) minmax(190px, .9fr);
  gap: 28px;
  align-items: center;
  min-height: 150px;
  padding: 22px 30px;
  border-bottom: 1px solid #111;
  background: rgba(250,249,245,.97);
}

.site-masthead-nav { display: grid; align-content: center; }
.site-masthead-nav a {
  padding: 5px 4px;
  border-bottom: 1px solid #777;
  font-size: 14px;
  line-height: 1.15;
  text-align: center;
}
.site-masthead-nav a:last-child { border-bottom: 0; }
.site-masthead-nav a.is-active { font-weight: 800; }
.site-masthead-brand > a {
  display: block;
  font-size: clamp(3.2rem, 6vw, 6.6rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.07em;
}
.site-masthead-brand p {
  margin: 18px 0 0;
  max-width: 720px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.35;
}

.page-wrap--landing {
  width: 100%;
  max-width: none;
  padding: 0 30px 90px;
  background: #050505;
  color: #f5f1e8;
}

.archive-filter-panel {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 3fr);
  gap: clamp(28px, 5vw, 90px);
  margin: 0 -30px;
  padding: 32px 30px 38px;
  border-bottom: 1px solid #777;
  background: #050505;
  color: #f5f1e8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.archive-filter-group { align-content: start; }
.archive-filter-heading, .archive-filter-panel label {
  display: block;
  margin-bottom: 9px;
  color: #aaa49a;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.archive-filter-panel input {
  width: 100%;
  height: 34px;
  border: 1px solid #aaa49a;
  border-radius: 0;
  background: transparent;
  color: #fff;
}
.archive-filter-panel button {
  margin: 0 7px 6px 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.archive-filter-panel button:hover,
.archive-filter-panel button.is-active { border-bottom-color: currentColor; }

.page-wrap--landing .filter-tags { padding: 14px 0 0; }
.page-wrap--landing .filter-tag { background: #f5f1e8; color: #111; }
.landing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 58px 30px;
  margin-top: 34px !important;
}
.landing-tile,
.landing-tile:nth-child(n) {
  grid-column: span 1;
  margin: 0;
  transform: none;
  color: #f5f1e8;
}
.landing-tile .tile-media,
.landing-tile:nth-child(n) .tile-media {
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #222;
}
.landing-tile:hover .tile-media,
.landing-tile:nth-child(even):hover .tile-media { transform: translateY(-4px); box-shadow: none; }
.landing-tile .tile-media::after { display: none; }
.landing-tile .tile-meta {
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 13px;
  color: inherit;
}
.landing-tile .tile-title {
  padding-bottom: 8px;
  border-bottom: 1px solid #817d75;
  color: inherit;
  font-family: var(--font-ui);
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  font-weight: 750;
}
.landing-tile .tile-author { color: #d1ccc2; text-align: left; }
.tile-taxonomy, .entry-taxonomy { margin: 0; }
.tile-taxonomy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}
.tile-taxonomy div { padding: 7px 8px 7px 0; border-bottom: 1px solid #817d75; }
.tile-taxonomy dt, .entry-taxonomy dt { color: #9d978c; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.tile-taxonomy dd, .entry-taxonomy dd { margin: 2px 0 0; line-height: 1.35; }

.page-wrap--entry { max-width: none; padding: 60px; background: #dedede; }
.page-wrap--entry .entry-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  column-gap: 58px;
  align-items: start;
  padding: 0;
}
.page-wrap--entry .entry-media { grid-column: 1; grid-row: 1 / span 8; margin: 0; border-radius: 0; }
.page-wrap--entry .entry-sheet > :not(.entry-media):not(.panel) { grid-column: 2; }
.page-wrap--entry .entry-sheet > .panel { grid-column: 1 / -1; margin-top: 50px; }
.page-wrap--entry .entry-title-row h2 {
  margin-top: 8px;
  font-size: clamp(2.8rem, 5vw, 6.2rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.055em;
}
.entry-taxonomy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 24px;
  padding: 22px 0;
  border-top: 1px solid #777;
  border-bottom: 1px solid #777;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.entry-taxonomy div { margin-bottom: 12px; }
.entry-taxonomy a { text-decoration: underline; }
.entry-copy { padding-top: 26px; font-family: Georgia, serif; font-size: 1.25rem; }
.entry-copy p { line-height: 1.55; }

.location-picker { display: grid; gap: 10px; }
.location-map { width: 100%; height: 360px; border: 1px solid var(--c-border); background: #ddd; }
.location-picker-footer { display: flex; justify-content: space-between; gap: 12px; color: var(--c-muted); font-size: 12px; }
.location-clear { border: 0; border-bottom: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.label-optional { font-weight: 400; text-transform: lowercase; letter-spacing: 0; }

@media (max-width: 900px) {
  .site-masthead { grid-template-columns: 1fr 2fr; min-height: 110px; padding: 18px; }
  .site-masthead-nav--left { display: none; }
  .site-masthead-nav--right { grid-template-columns: repeat(2, 1fr); }
  .site-masthead-brand > a { font-size: clamp(2.5rem, 9vw, 4.5rem); }
  .site-masthead-brand p { display: none; }
  .archive-filter-panel { grid-template-columns: 1fr 1fr; }
  .archive-filter-weeks { grid-column: 1 / -1; }
  .landing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-wrap--entry { padding: 34px 22px; }
  .page-wrap--entry .entry-sheet { grid-template-columns: 1fr; gap: 26px; }
  .page-wrap--entry .entry-media,
  .page-wrap--entry .entry-sheet > :not(.entry-media):not(.panel),
  .page-wrap--entry .entry-sheet > .panel { grid-column: 1; grid-row: auto; }
}

@media (max-width: 560px) {
  .site-masthead { position: relative; grid-template-columns: 1fr; gap: 14px; }
  .site-masthead-nav--right { display: flex; flex-wrap: wrap; }
  .site-masthead-nav--right a { flex: 1 1 42%; }
  .archive-filter-panel { grid-template-columns: 1fr; margin: 0 -16px; padding: 25px 16px; }
  .archive-filter-weeks { grid-column: auto; }
  .page-wrap--landing { padding-left: 16px; padding-right: 16px; }
  .landing-grid { grid-template-columns: 1fr; }
  .landing-tile:nth-child(n) { margin: 0; }
  .location-map { height: 280px; }
}

/* ─── Consolidated archive masthead and contextual actions ─────── */
.site-masthead { display: none !important; }

.archive-masthead {
  position: sticky;
  top: 0;
  z-index: 260;
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 3fr) minmax(90px, .45fr);
  gap: clamp(28px, 5vw, 90px);
  min-height: 154px;
  padding: 30px;
  border-bottom: 1px solid #777;
  background: #050505;
  color: #f5f1e8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.archive-masthead-account {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.archive-masthead-account > a,
.masthead-login-toggle,
.archive-masthead-back {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.archive-masthead-filters {
  display: grid;
  grid-template-columns: minmax(160px, .7fr) minmax(0, 2.3fr);
  gap: clamp(28px, 5vw, 84px);
  align-content: start;
}

.archive-masthead .archive-filter-group button {
  margin: 0 9px 7px 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.archive-masthead .archive-filter-group button:hover,
.archive-masthead .archive-filter-group button.is-active {
  border-bottom-color: currentColor;
}

.archive-masthead-mark {
  justify-self: end;
  align-self: center;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 800;
  line-height: .65;
  letter-spacing: -.08em;
}

.archive-masthead-page {
  align-self: end;
  color: #aaa49a;
  font-size: 12px;
}

.masthead-login-panel {
  position: absolute;
  top: 54px;
  left: 0;
  z-index: 20;
  width: min(300px, 80vw);
  padding: 15px;
  border: 1px solid #777;
  background: #050505;
  box-shadow: 0 18px 38px rgba(0,0,0,.3);
}

.masthead-login-panel[hidden],
.contextual-actions-menu[hidden] { display: none !important; }

.masthead-login-form { display: grid; gap: 9px; }
.masthead-login-form input {
  border: 1px solid #777;
  border-radius: 0;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 13px;
}
.masthead-login-form button {
  justify-self: start;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.contextual-actions {
  position: fixed;
  top: 176px;
  right: 30px;
  z-index: 240;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

.contextual-actions-trigger {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #111;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0,0,0,.15);
  transition: transform .2s ease;
}

.contextual-actions-trigger::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.contextual-actions-trigger::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 18px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.contextual-actions.is-open .contextual-actions-trigger { transform: rotate(45deg); }
.contextual-actions-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 190px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}
.contextual-action {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 4px 0;
  border: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-align: right;
}
.contextual-action-label {
  padding: 3px 7px;
  background: #050505;
  color: #fff;
}
.contextual-action-circle {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  border-radius: 50%;
  background: #777;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  margin-right: 12px;
}
.contextual-action.fab-item--practice .contextual-action-circle { background: var(--c-practice); }
.contextual-action.fab-item--performance .contextual-action-circle { background: var(--c-performance); color: #111; }
.contextual-action.fab-item--potential .contextual-action-circle { background: var(--c-potential); }

.tile-taxonomy-type {
  display: inline-block;
  width: fit-content;
  padding: 2px 6px;
  border-radius: 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.tile-taxonomy-type--practice { background: var(--c-practice); }
.tile-taxonomy-type--performance { background: var(--c-performance); color: #111; }

.page-wrap--landing { padding-top: 1px; }
.page-wrap--landing .landing-grid { margin-top: 78px !important; }

@media (max-width: 900px) {
  .archive-masthead {
    grid-template-columns: minmax(120px, .7fr) minmax(0, 2.4fr) 80px;
    gap: 20px;
    padding: 22px 18px;
  }
  .archive-masthead-filters { grid-template-columns: 1fr; gap: 14px; }
  .contextual-actions { top: 170px; right: 18px; }
}

@media (max-width: 560px) {
  .archive-masthead {
    position: relative;
    grid-template-columns: 1fr 70px;
    min-height: 0;
  }
  .archive-masthead-account { grid-column: 1; grid-row: 1; }
  .archive-masthead-filters { grid-column: 1 / -1; grid-row: 2; }
  .archive-masthead-mark { grid-column: 2; grid-row: 1; font-size: 4.2rem; }
  .contextual-actions { top: auto; bottom: 18px; right: 16px; }
  .page-wrap--landing .landing-grid { margin-top: 54px !important; }
}
