/* 10AM+ keeps a quiet list; a single floating card holds each full record. */
.plus-page .plus-grid {
  gap: 20px 7%;
}
.plus-page .plus-group-heading { margin-bottom: 28px; }
.plus-page .plus-project-entry {
  position: relative;
  min-width: 0;
  padding: 24px 0 28px;
  border: 0;
  scroll-margin-top: 100px;
  --plus-hover: var(--lime);
}
#collaboration .plus-project-entry { --plus-hover: var(--pink); }
.plus-project-entry::before {
  content: "";
  position: absolute;
  inset: 0 -18px;
  border-radius: 10px;
  background: var(--plus-hover);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}
.plus-project-entry:has(.plus-project-open:focus-visible)::before { opacity: 1; }
.plus-project-entry:has(.plus-project-open:focus-visible) :is(.plus-project-time, .plus-project-summary, .plus-project-open) { color: #24151c; }
.plus-page .plus-project-time {
  position: relative;
  font-size: 11px;
  letter-spacing: .025em;
  color: #89917d;
  line-height: 1.6;
}
.plus-page .plus-project-entry h3 {
  position: static;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 400;
  line-height: 1.5;
  margin: 12px 0;
}
.plus-project-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  text-align: left;
  font: inherit;
}
.plus-project-open::after { content: ""; position: absolute; inset: 0; }
.plus-project-open > span { position: relative; }
.plus-project-open:focus-visible { outline-offset: 8px; border-radius: 2px; }
.plus-open-mark {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #8a9778;
  border-radius: 50%;
  background: #edf0e6;
  transition: color 220ms ease, background 220ms ease, transform 300ms ease;
}
.plus-open-mark::before, .plus-open-mark::after {
  content: "";
  position: absolute;
  background: currentColor;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.plus-open-mark::before { width: 10px; height: 1px; }
.plus-open-mark::after { width: 1px; height: 10px; }
.plus-page .plus-project-summary {
  position: relative;
  pointer-events: none;
  font-size: 15px;
  line-height: 1.9;
  color: #6b765f;
  max-width: 30em;
  padding-right: 42px;
}
@media (hover: hover) {
  .plus-project-entry:hover::before { opacity: 1; }
  .plus-project-entry:hover :is(.plus-project-time, .plus-project-summary, .plus-project-open) { color: #24151c; }
  .plus-project-entry:hover .plus-open-mark {
    color: #24151c;
    background: #ffffff55;
    transform: rotate(90deg);
  }
}

#plus-project-dialog {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 24px;
  background: transparent;
  color: var(--ink);
}
#plus-project-dialog[open] { display: grid; place-items: center; }
#plus-project-dialog::backdrop {
  background: rgb(37 43 32 / 15%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.plus-dialog-shell {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 24px 90px #25301826;
}
.plus-dialog-shell > [data-plus-dialog-content] {
  max-height: calc(100dvh - 48px);
  padding: 36px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #bcc5b3 transparent;
}
#plus-project-dialog[open] .plus-dialog-shell {
  animation: plus-card-in 350ms cubic-bezier(.2,.75,.25,1) both;
}
.plus-dialog-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #727c66;
  background: var(--paper);
}
.plus-dialog-close svg { width: 20px; stroke: currentColor; stroke-width: 1.4; }
.plus-dialog-close:hover { color: var(--pink); }
/* Keep the 44px touch target. Indicate keyboard focus directly under the ×. */
#plus-project-dialog .plus-dialog-close:focus { outline: none; }
.plus-dialog-close:focus-visible::after {
  content: "";
  position: absolute;
  top: calc(50% + 9px);
  width: 16px;
  left: calc(50% - 8px);
  border-bottom: 2px solid currentColor;
}
.plus-detail-heading { padding-right: 28px; }
.plus-detail-heading h2 {
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.plus-detail-meta { margin: 18px 0 0; color: #7a856f; font-size: 12px; line-height: 1.8; }
.plus-detail-meta > div { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.plus-detail-meta dt { color: #909986; }
.plus-detail-meta dd { margin: 0; }
.plus-detail-intro { margin: 24px 0 28px; font-size: 15px; line-height: 1.95; color: #626e58; }
.plus-detail-intro p + p { margin-top: 14px; }
.plus-detail-intro .plus-detail-pending { color: #929a87; font-size: 13px; }
.plus-gallery { min-width: 0; }
.plus-gallery-track {
  display: flex;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  border-radius: 5px;
}
.plus-gallery-track::-webkit-scrollbar { display: none; }
.plus-gallery-track:focus-visible { outline: 2px solid #8a9b72; outline-offset: 4px; }
.plus-gallery-slide { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; }
.plus-photo { width: 100%; aspect-ratio: 1.8; background: #eeefe9; border-radius: 5px; overflow: hidden; }
.plus-photo img { width: 100%; height: 100%; object-fit: contain; }
.plus-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8d9880;
}
.plus-photo-placeholder.placeholder-2 { background: #f0ede7; }
.plus-photo-placeholder.placeholder-3 { background: #e8eeea; }
.plus-photo-placeholder svg { width: 44px; height: 33px; stroke: #a6b098; stroke-width: 1; margin-bottom: 14px; }
.plus-photo-placeholder span { font-size: 12px; letter-spacing: .05em; }
.plus-photo-placeholder small { font-size: 10px; margin-top: 7px; color: #99a28e; }
.plus-gallery-slide figcaption { font-size: 12px; line-height: 1.8; color: #7f8a72; margin-top: 12px; }
.plus-gallery-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 6px; }
.plus-gallery-dots { grid-column: 2; display: flex; justify-content: center; gap: 0; }
.plus-gallery-dots button { width: 34px; min-height: 44px; display: grid; place-items: center; }
.plus-gallery-dots button span { width: 5px; height: 5px; border-radius: 50%; background: #bbc4af; transition: background 200ms, transform 200ms; }
.plus-gallery-dots button[aria-current] span { background: var(--pink); transform: scale(1.25); }
.plus-gallery-dots button:focus-visible { outline-offset: -5px; border-radius: 50%; }
.plus-gallery-counter { grid-column: 3; justify-self: end; font-size: 10px; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: #8c977f; }
@keyframes plus-card-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .plus-page .plus-grid { gap: 8px; }
  .plus-page .plus-group-heading { margin-bottom: 16px; }
  .plus-page .plus-project-entry { padding: 20px 0 26px; }
  .plus-project-entry::before { inset: 0 -12px; }
  .plus-page .plus-project-summary { font-size: 14px; }
  .plus-project-open { gap: 18px; }
  #plus-project-dialog { padding: 16px; }
  .plus-dialog-shell { max-height: calc(100dvh - 32px); border-radius: 12px; }
  .plus-dialog-shell > [data-plus-dialog-content] { padding: 36px 24px 20px; max-height: calc(100dvh - 32px); }
  .plus-dialog-close { top: 6px; right: 6px; }
  .plus-detail-heading { padding-right: 24px; }
  .plus-detail-meta { margin-top: 14px; font-size: 11px; }
  .plus-detail-intro { font-size: 14px; margin: 20px 0 24px; line-height: 1.95; }
  .plus-photo { aspect-ratio: 1.35; }
}
@media (prefers-reduced-motion: reduce) {
  #plus-project-dialog[open] .plus-dialog-shell { animation: none; }
  .plus-gallery-track { scroll-behavior: auto; }
  .plus-project-entry::before, .plus-open-mark, .plus-gallery-dots button span { transition: none; }
}
