.published-panel {
  padding-block: clamp(2.7rem, 6vw, 6.25rem);
  border-block-start: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 80% -35%, #4a3421a6, transparent 57%),
    var(--background);
}

.published-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2.25rem;
  margin-block-end: 1.5rem;
}

.published-panel h2 {
  font-size: clamp(1.8rem, 4.4vw, 3.5rem);
  font-weight: 620;
  line-height: 1.3;
}

.published-search {
  display: grid;
  gap: .25rem;
  width: min(100%, 20rem);
  color: var(--muted);
  font-size: .82rem;
}

.published-search input {
  min-inline-size: 0;
  min-block-size: 44px;
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--deep);
  color: var(--text);
  font: inherit;
  font-size: .9rem;
}

.published-search input::placeholder { color: var(--subtle); }
.published-search input:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.published-count { margin-block: -1rem .75rem; color: var(--subtle); font-size: .84rem; }
.published-empty { padding: 1rem; border: 1px dashed var(--line); color: var(--muted); }
.published-entries { display: grid; gap: .75rem; }
.published-entries--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }

.published-entry {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: linear-gradient(130deg,#33251955,transparent 70%),var(--surface);
  transition: border-color .25s, background-color .25s;
}

.published-entry[open],
.published-entry:focus-within,
.published-entry:hover { border-color: var(--gold-dark); }

.published-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 1rem;
  padding: clamp(1rem, 2.6vw, 1.55rem);
}

summary.published-entry-top { list-style: none; cursor: pointer; }
.published-entry-top::-webkit-details-marker { display: none; }
.published-entry-top:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.published-entry-main { display: grid; min-width: 0; gap: .25rem; }
.published-entry-category { color: var(--gold); font-size: .79rem; }
.published-entry-title { color: var(--text); font-size: clamp(1.06rem, 2.05vw, 1.32rem); font-weight: 600; line-height: 1.4; }
.published-entry-summary { color: var(--muted); font-size: .9rem; }
.published-entry-category,
.published-entry-title,
.published-entry-summary,
.published-entry-detail { text-align: start; overflow-wrap: anywhere; }
.published-entry-date { width: fit-content; color: var(--subtle); font-size: .75rem; margin-block-start: .2rem; }

.published-entry-toggle {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--gold);
  border: 1px solid var(--line);
  transition: border-color .25s, color .25s, background-color .25s;
}

.published-entry[open] .published-entry-toggle,
.published-entry-top:hover .published-entry-toggle {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--deep);
}

.published-entry-toggle::after { transition: transform .25s var(--ease); }
.published-entry[open] .published-entry-toggle::after { transform: rotate(90deg); }
.published-entry-detail {
  white-space: pre-wrap;
  padding: 1rem clamp(1rem, 2.6vw, 1.55rem) 1.3rem;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.85;
}

.published-panel--visible .published-entry {
  animation: published-slide-in .6s var(--ease) var(--published-delay, 0ms) both;
}
.published-entry[open] .published-entry-detail { animation: published-slide-in .35s var(--ease) both; }
@keyframes published-slide-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

@media (max-width: 940px) {
  .published-entries--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .published-entries--cards { grid-template-columns: 1fr; }
  .published-panel-head { align-items: stretch; flex-direction: column; }
  .published-search { width: 100%; }
}

.motion-off .published-panel *,
.motion-off .published-panel *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  body:not(.motion-on) .published-panel *,
  body:not(.motion-on) .published-panel *::after { animation: none !important; transition: none !important; }
}
