/* =========================================
   dancephl * — stylesheet
   A community resource for Philadelphia 
   dance and performance
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&family=IBM+Plex+Mono:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* --- Tokens --- */
:root {
  --bg: #fcfbf9;
  --ink: #1a1a1a;
  --mid: #6b6b6b;
  --light: #a3a3a3;
  --faint: #e5e4e0;
  --warm: #c45a3c;
  --warm-bg: #fdf3ef;
  --cool: #3a5ea6;
  --cool-bg: #eef2f9;
  --earth: #6b7c4e;
  --earth-bg: #f2f4ed;
  --violet: #7a5caa;
  --violet-bg: #f3eff8;
  --sans: 'Syne', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', 'Menlo', monospace;
  --max-w: 740px;
  --side-pad: 40px;
  --transition: 0.15s ease;
}

@media (max-width: 640px) {
  :root {
    --side-pad: 20px;
    --max-w: 100%;
  }
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }


/* =========================================
   Radio bar
   ========================================= */
.radio-bar {
  padding: 8px var(--side-pad);
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
  z-index: 100;
}
.radio-live {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.radio-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}
.radio-now {
  color: rgba(252,251,249,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio-play {
  background: none;
  border: 1px solid rgba(252,251,249,0.3);
  color: var(--bg);
  padding: 4px 14px;
  font-size: 10px;
  cursor: pointer;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: all var(--transition);
  flex-shrink: 0;
}
.radio-play:hover {
  border-color: var(--bg);
  background: rgba(252,251,249,0.1);
}

@media (max-width: 640px) {
  .radio-now { display: none; }
}


/* =========================================
   Top / header
   ========================================= */
.top {
  padding: 28px var(--side-pad) 0;
  max-width: var(--max-w);
}
.site-name {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.site-name span {
  font-weight: 400;
  color: var(--warm);
}
.site-desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 4px;
}
.site-links {
  font-size: 12px;
  color: var(--light);
  margin-top: 10px;
  margin-bottom: 24px;
}
.site-links a {
  color: var(--mid);
  cursor: pointer;
  border-bottom: 1px solid var(--faint);
  padding-bottom: 1px;
  transition: color var(--transition);
}
.site-links a:hover {
  color: var(--ink);
  border-color: var(--ink);
}


/* =========================================
   Start here banner
   ========================================= */
.start-here {
  margin: 0 var(--side-pad) 24px;
  max-width: var(--max-w);
  padding: 16px 20px;
  background: var(--cool-bg);
  border: 1px solid rgba(58,94,166,0.12);
  border-radius: 3px;
  font-size: 12px;
  color: var(--cool);
  line-height: 1.65;
  cursor: pointer;
  transition: background var(--transition);
}
.start-here:hover {
  background: rgba(58,94,166,0.08);
}
.start-here strong {
  font-family: var(--sans);
  font-weight: 600;
}


/* =========================================
   Filters
   ========================================= */
.filters {
  padding: 0 var(--side-pad);
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.f {
  padding: 5px 12px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--light);
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all var(--transition);
  background: none;
  letter-spacing: 0.01em;
}
.f:hover { color: var(--ink); }
.f.on {
  color: var(--warm);
  background: var(--warm-bg);
  border-color: rgba(196,90,60,0.15);
}

@media (max-width: 640px) {
  .f { padding: 4px 8px; font-size: 11px; }
}


/* =========================================
   Feed container
   ========================================= */
.feed {
  padding: 0 var(--side-pad);
  max-width: var(--max-w);
}
.count {
  font-size: 11px;
  color: var(--light);
  margin-bottom: 12px;
  font-style: italic;
}


/* =========================================
   Section labels
   ========================================= */
.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light);
  padding: 14px 0 8px;
  border-top: 1.5px solid var(--ink);
  margin-top: 28px;
}
.section-label:first-child { margin-top: 0; }
.section-primary {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 16px 0 10px;
  border-top-width: 2px;
}
.sl-warm { color: var(--warm); }
.sl-cool { color: var(--cool); }
.sl-earth { color: var(--earth); }
.sl-violet { color: var(--violet); }

/* Divider between primary and secondary content */
.section-divider {
  margin: 36px 0 8px;
  padding: 12px 0;
  border-top: 1px solid var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--light);
  font-style: italic;
}
.section-divider::after {
  content: 'archive · features · community';
}


/* =========================================
   Calendar / opportunity items
   ========================================= */
.item {
  padding: 14px 0;
  border-bottom: 1px solid var(--faint);
  cursor: pointer;
  transition: background var(--transition);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}
.item:hover {
  background: rgba(196,90,60,0.02);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}
.item-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 2px;
  letter-spacing: -0.2px;
}
.item-meta {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.55;
}
.item-when {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.55;
  margin-bottom: 2px;
}
.item-type {
  font-size: 11px;
  font-family: var(--mono);
  text-align: right;
  padding-top: 2px;
  white-space: nowrap;
}
.t-class { color: var(--earth); }
.t-perf { color: var(--warm); }
.t-ws { color: var(--cool); }
.t-social { color: var(--violet); }
.t-aud { color: var(--warm); }
.t-job { color: var(--mid); }
.t-fund { color: var(--earth); }


/* =========================================
   Feature items
   ========================================= */
.item-feat {
  padding: 16px 0;
  border-bottom: 1px solid var(--faint);
  cursor: pointer;
  transition: background var(--transition);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.item-feat:hover {
  background: rgba(58,94,166,0.02);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}
.feat-kicker {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--cool);
  margin-bottom: 3px;
}
.feat-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin-bottom: 3px;
}
.feat-desc {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.65;
  max-width: 520px;
}
.feat-byline {
  font-size: 11px;
  color: var(--light);
  margin-top: 4px;
}
.feat-type {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--cool);
  text-align: right;
  padding-top: 2px;
  white-space: nowrap;
}


/* =========================================
   Radio / audio items
   ========================================= */
.item-radio {
  padding: 14px 0;
  border-bottom: 1px solid var(--faint);
  cursor: pointer;
  transition: background var(--transition);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.item-radio:hover {
  background: rgba(122,92,170,0.02);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}
.radio-kicker {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--violet);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.radio-ep-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}
.radio-ep-desc {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.6;
}
.radio-ep-meta {
  font-size: 11px;
  color: var(--light);
  margin-top: 4px;
}
.radio-ep-type {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--violet);
  text-align: right;
  padding-top: 2px;
  white-space: nowrap;
}


/* =========================================
   People items
   ========================================= */
.item-person {
  padding: 10px 0;
  border-bottom: 1px solid var(--faint);
  cursor: pointer;
  transition: background var(--transition);
}
.item-person:hover {
  background: rgba(196,90,60,0.02);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}
.person-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
}
.person-info {
  font-size: 12px;
  color: var(--mid);
}


/* =========================================
   Directory items
   ========================================= */
.item-dir {
  padding: 10px 0;
  border-bottom: 1px solid var(--faint);
  cursor: pointer;
  transition: background var(--transition);
}
.item-dir:hover {
  background: rgba(196,90,60,0.02);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}
.item-dir-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
}
.item-dir-info {
  font-size: 12px;
  color: var(--mid);
}


/* =========================================
   Resource items
   ========================================= */
.item-res {
  padding: 12px 0;
  border-bottom: 1px solid var(--faint);
  cursor: pointer;
  transition: background var(--transition);
}
.item-res:hover {
  background: rgba(196,90,60,0.02);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}
.item-res-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}
.item-res-desc {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.6;
}


/* =========================================
   Add yours / submission form
   ========================================= */
.add-section {
  padding: 0 var(--side-pad);
  max-width: var(--max-w);
  margin-top: 40px;
  padding-top: 32px;
  padding-bottom: 40px;
  border-top: 1.5px solid var(--ink);
}
.add-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.add-desc {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 20px;
  line-height: 1.65;
  max-width: 480px;
}
.add-desc a {
  color: var(--cool);
  border-bottom: 1px solid var(--cool);
  cursor: pointer;
}
.add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.add-full {
  margin-bottom: 10px;
}
.add-label {
  font-size: 11px;
  color: var(--light);
  margin-bottom: 4px;
  display: block;
}
.add-input,
.add-select,
.add-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--faint);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color var(--transition);
}
.add-input:focus,
.add-textarea:focus {
  outline: none;
  border-color: var(--warm);
}
.add-textarea {
  resize: vertical;
  min-height: 64px;
}
.add-submit {
  padding: 9px 24px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--transition);
  margin-top: 6px;
}
.add-submit:hover {
  background: var(--warm);
}
.add-ok {
  display: none;
  font-size: 12px;
  color: var(--earth);
  margin-top: 8px;
}
.add-note {
  font-size: 11px;
  color: var(--light);
  margin-top: 8px;
  line-height: 1.6;
}

/* Pricing table */
.pricing {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--faint);
}
.pricing-head {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.price-col {
  border: 1px solid var(--faint);
  border-radius: 3px;
  padding: 14px 16px;
}
.price-col-head {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--faint);
}
.price-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
  color: var(--mid);
}
.price-amt {
  font-weight: 400;
  color: var(--ink);
}
.price-item:first-of-type .price-amt {
  color: var(--earth);
}
.pricing-note {
  font-size: 11px;
  color: var(--light);
  margin-top: 10px;
  font-style: italic;
}

/* Form sub-header */
.add-form-head {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-top: 4px;
}

/* Price indicator */
.price-indicator {
  font-size: 12px;
  color: var(--earth);
  margin: -4px 0 12px;
  min-height: 18px;
  font-weight: 400;
  transition: color var(--transition);
}

/* Price summary */
.price-summary {
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--warm-bg);
  border-radius: 3px;
  min-height: 20px;
  display: none;
}
.price-summary.visible {
  display: block;
}

/* Image upload */
.image-upload {
  position: relative;
}
.image-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.image-placeholder {
  border: 1.5px dashed var(--faint);
  border-radius: 3px;
  padding: 24px 16px;
  text-align: center;
  color: var(--light);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.image-upload:hover .image-placeholder {
  border-color: var(--warm);
  color: var(--mid);
}
.image-icon {
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
}
.image-text {
  font-size: 12px;
}
.image-hint {
  font-size: 10px;
  color: var(--light);
}
.image-preview {
  position: relative;
  border: 1px solid var(--faint);
  border-radius: 3px;
  overflow: hidden;
}
.image-preview img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}
.image-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 4px 10px;
  font-size: 11px;
  font-family: var(--mono);
  cursor: pointer;
  border-radius: 2px;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.image-remove:hover {
  opacity: 1;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--mid);
  cursor: pointer;
  margin-top: 6px;
}
.checkbox-label input[type="checkbox"] {
  accent-color: var(--warm);
}

@media (max-width: 640px) {
  .add-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}


/* =========================================
   Footer
   ========================================= */
.bottom {
  padding: 32px var(--side-pad);
  margin-top: 20px;
  border-top: 1px solid var(--faint);
  font-size: 11px;
  color: var(--light);
  line-height: 1.7;
  max-width: var(--max-w);
}
.bottom a {
  color: var(--mid);
  border-bottom: 1px solid var(--faint);
  cursor: pointer;
}
.bottom a:hover {
  color: var(--ink);
}


/* =========================================
   Utility
   ========================================= */
.hidden { display: none !important; }


/* =========================================
   Loading & empty states
   ========================================= */
.feed-loading {
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  color: var(--light);
  letter-spacing: 0.5px;
}
.empty-state {
  padding: 20px 0;
  font-size: 13px;
  color: var(--light);
  line-height: 1.6;
}
.empty-state a {
  color: var(--warm);
  cursor: pointer;
  border-bottom: 1px solid rgba(196,90,60,0.3);
}


/* =========================================
   Mobile responsive
   ========================================= */
@media (max-width: 640px) {
  :root {
    --side-pad: 16px;
  }
  .top { padding: 20px var(--side-pad) 16px; }
  .site-name { font-size: 22px; }
  .site-desc { font-size: 12px; }
  .site-links { font-size: 11px; }
  .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .f { white-space: nowrap; flex-shrink: 0; }
  .search-input { font-size: 14px; }
  .panel {
    width: 100vw;
    max-width: 100vw;
  }
  .panel-body { padding: 20px 20px 32px; }
  .panel-title { font-size: 18px; }
  .add-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .item { padding: 10px 0; }
  .item-title { font-size: 13px; }
  .item-type { font-size: 9px; }
  .detail-title { font-size: 18px; }
  .detail-image img { max-height: 280px; }
  .nl-form { flex-direction: column; }
  .nl-input { border-right: 1px solid var(--faint); border-radius: 3px; }
  .nl-btn { border-radius: 3px; margin-top: 6px; }
  .date-type-row { flex-direction: column; }
  .date-type-btn { border-right: none; border-bottom: 1px solid var(--faint); }
  .date-type-btn:last-child { border-bottom: none; }
  .start-here { font-size: 12px; padding: 10px var(--side-pad); }
  .bottom { font-size: 11px; padding: 20px var(--side-pad); }
}


/* =========================================
   Featured / promoted items
   ========================================= */
.section-featured {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--warm);
  border-top-width: 2px;
  border-top-color: var(--warm);
}
.item-featured {
  background: var(--warm-bg);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-bottom-color: rgba(196,90,60,0.12);
}
.item-featured:hover {
  background: rgba(196,90,60,0.06);
}
.item-featured .item-type {
  color: var(--warm);
  font-weight: 400;
}


/* =========================================
   Submit tabs
   ========================================= */
.submit-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--faint);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
}
.submit-tab {
  flex: 1;
  padding: 10px 8px;
  border: none;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--light);
  cursor: pointer;
  border-right: 1px solid var(--faint);
  transition: all var(--transition);
  text-align: center;
}
.submit-tab:last-child { border-right: none; }
.submit-tab:hover { color: var(--ink); }
.submit-tab.on { background: var(--ink); color: var(--bg); }


/* =========================================
   Date selection
   ========================================= */
.date-type-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--faint);
  border-radius: 3px;
  overflow: hidden;
}
.date-type-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--light);
  cursor: pointer;
  border-right: 1px solid var(--faint);
  transition: all var(--transition);
}
.date-type-btn:last-child {
  border-right: none;
}
.date-type-btn:hover {
  color: var(--ink);
}
.date-type-btn.on {
  background: var(--ink);
  color: var(--bg);
}
.add-date-btn {
  background: none;
  border: 1px dashed var(--faint);
  border-radius: 3px;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--light);
  cursor: pointer;
  margin-top: 6px;
  transition: all var(--transition);
  width: 100%;
  text-align: left;
}
.add-date-btn:hover {
  border-color: var(--warm);
  color: var(--warm);
}
.date-row {
  position: relative;
}
.date-remove {
  position: absolute;
  right: 0;
  top: 22px;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--light);
  cursor: pointer;
  padding: 4px 8px;
}
.date-remove:hover {
  color: var(--warm);
}


/* =========================================
   Listing detail panel
   ========================================= */
.detail-type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 8px;
}
.detail-title {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.detail-org {
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 20px;
}
.detail-image {
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--faint);
}
.detail-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
}

/* Image upload preview */
.image-preview img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  border-radius: 3px;
}
.detail-meta {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--warm-bg);
  border-radius: 4px;
}
.detail-row {
  font-size: 13px;
  padding: 4px 0;
  display: flex;
  gap: 8px;
}
.detail-row:empty {
  display: none;
}
.detail-row-label {
  color: var(--light);
  min-width: 70px;
  flex-shrink: 0;
}
.detail-row-value {
  color: var(--ink);
}
.detail-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mid);
  margin-bottom: 24px;
  white-space: pre-wrap;
}
.detail-desc:empty {
  display: none;
}
.detail-actions {
  margin-bottom: 24px;
}
.detail-link {
  display: inline-block;
  padding: 10px 24px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  border-radius: 3px;
  transition: background var(--transition);
}
.detail-link:hover {
  background: var(--warm);
}
.detail-footer {
  padding-top: 16px;
  border-top: 1px solid var(--faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.detail-posted {
  font-size: 11px;
  color: var(--light);
}
.detail-share {
  font-size: 11px;
  color: var(--warm);
  cursor: pointer;
  border-bottom: 1px solid rgba(196,90,60,0.3);
}


/* =========================================
   Search bar
   ========================================= */
.search-bar {
  padding: 0 var(--side-pad);
  margin-bottom: 20px;
  max-width: var(--max-w);
  position: relative;
}
.search-input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--faint);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color var(--transition);
}
.search-input:focus {
  outline: none;
  border-color: var(--warm);
}
.search-input::placeholder {
  color: var(--light);
}
.search-clear {
  position: absolute;
  right: calc(var(--side-pad) + 12px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--light);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.search-clear:hover {
  color: var(--ink);
}


/* =========================================
   Newsletter inline
   ========================================= */
.newsletter-inline {
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--faint);
}
.nl-inner {
  max-width: 520px;
}
.nl-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.nl-desc {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 14px;
}
.nl-form {
  display: flex;
  gap: 0;
}
.nl-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--faint);
  border-right: none;
  border-radius: 3px 0 0 3px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--bg);
}
.nl-input:focus {
  outline: none;
  border-color: var(--warm);
}
.nl-btn {
  padding: 9px 18px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 0 3px 3px 0;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.nl-btn:hover {
  background: var(--warm);
  border-color: var(--warm);
}
.nl-ok {
  font-size: 12px;
  color: var(--earth);
  margin-top: 8px;
}
.nl-count {
  font-size: 11px;
  color: var(--light);
  margin-top: 8px;
}


/* =========================================
   Panels (about, account)
   ========================================= */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  z-index: 150;
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.panel {
  width: 520px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg);
  overflow-y: auto;
  animation: slideIn 0.2s ease;
  position: relative;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.panel-close {
  position: sticky;
  top: 0;
  float: right;
  background: var(--bg);
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--light);
  padding: 16px 20px;
  z-index: 2;
  transition: color var(--transition);
}
.panel-close:hover { color: var(--ink); }
.panel-body {
  padding: 24px 32px 40px;
}
.panel-title {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}
.panel-section {
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mid);
}
.panel-section p {
  margin-bottom: 10px;
}
.panel-section a {
  color: var(--warm);
  border-bottom: 1px solid rgba(196,90,60,0.3);
}
.panel-section strong {
  color: var(--ink);
  font-weight: 500;
}
.panel-heading {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.panel-intro {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 16px;
}


/* =========================================
   Account management
   ========================================= */
.acct-form {
  margin-bottom: 0;
}
.acct-ok {
  font-size: 12px;
  color: var(--earth);
  margin-top: 8px;
}
.acct-divider {
  text-align: center;
  font-size: 12px;
  color: var(--light);
  margin: 20px 0;
  position: relative;
}
.acct-divider::before,
.acct-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 20px);
  height: 1px;
  background: var(--faint);
}
.acct-divider::before { left: 0; }
.acct-divider::after { right: 0; }

.acct-user {
  padding: 14px 16px;
  background: var(--warm-bg);
  border-radius: 4px;
}
.acct-user-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}
.acct-user-type {
  font-size: 12px;
  color: var(--mid);
  margin-top: 2px;
}

.acct-listing {
  padding: 12px 0;
  border-bottom: 1px solid var(--faint);
}
.acct-listing-status {
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 2px;
}
.status-live { color: var(--earth); }
.status-review { color: var(--cool); }
.status-expired { color: var(--light); }
.acct-listing-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}
.acct-listing-meta {
  font-size: 12px;
  color: var(--mid);
  margin-top: 2px;
}
.acct-listing-meta a {
  color: var(--warm);
  cursor: pointer;
  border-bottom: 1px solid rgba(196,90,60,0.3);
}

.acct-sub-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
}
.acct-sub-actions {
  font-size: 12px;
  padding: 4px 0;
}
.acct-sub-actions a {
  color: var(--warm);
  cursor: pointer;
  border-bottom: 1px solid rgba(196,90,60,0.3);
}
