/* Current issue — spotlight shelf (Mestro)
   Dark indigo stage, vertical spine label, cover + light copy.
   Distinct from frosted cards and the light engineering-folio desk. */

.mestro-current {
  --ci-stage: oklch(28% 0.09 270);
  --ci-stage-deep: oklch(22% 0.08 270);
  --ci-glow: color-mix(in oklab, var(--mestro-orange) 28%, transparent);
  --ci-mist: color-mix(in oklab, #fff 78%, transparent);
  position: relative;
  isolation: isolate;
  padding: 0.25rem 0 0;
  background: transparent;
  overflow: visible;
}

.mestro-current::before {
  content: none;
}

/* —— Mast (light, quiet) —— */
.mestro-current__mast {
  display: grid;
  gap: 0.3rem;
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
  max-width: 36rem;
}

.mestro-current__eyebrow {
  margin: 0 !important;
  color: var(--mestro-orange) !important;
  letter-spacing: 0.16em !important;
}

.mestro-current__title {
  margin: 0;
  font-family: var(--mestro-font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-transform: none;
  color: var(--mestro-indigo);
}

.mestro-current__title::after {
  content: none;
}

/* —— Dark stage —— */
.mestro-issue-toc__heading {
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.mestro-current__stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem 1.35rem;
  align-items: stretch;
  padding: 1.15rem;
  border-radius: 1.1rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 8% 20%, var(--ci-glow), transparent 55%),
    radial-gradient(ellipse 55% 60% at 92% 88%, color-mix(in oklab, var(--mestro-indigo) 45%, transparent), transparent 60%),
    linear-gradient(165deg, var(--ci-stage) 0%, var(--ci-stage-deep) 100%);
  box-shadow:
    0 0 0 1px color-mix(in oklab, #fff 8%, transparent),
    0 24px 48px -20px color-mix(in oklab, var(--mestro-indigo-deep) 55%, transparent);
}

.mestro-current__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
}

@media (min-width: 720px) {
  .mestro-current__stage {
    grid-template-columns: minmax(9.5rem, 11.75rem) auto minmax(0, 1fr);
    gap: 0 1.15rem;
    padding: 1.35rem 1.5rem 1.35rem 1.35rem;
    align-items: stretch;
  }
}

.mestro-issue-toc__heading .mestro-issue-cover--panel {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 11.75rem;
  margin: 0;
  text-decoration: none;
  transition: none;
  transform: none;
}

.mestro-issue-toc__heading .mestro-issue-cover--panel::before {
  content: none;
}

.mestro-issue-toc__heading .mestro-issue-cover--panel:hover,
.mestro-issue-toc__heading .mestro-issue-cover--panel:focus-visible {
  transform: none;
}

.mestro-issue-toc__heading .mestro-issue-cover__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: 0.45rem;
  border: 0;
  outline: none;
  box-shadow:
    0 0 0 1px color-mix(in oklab, #fff 14%, transparent),
    0 16px 32px -10px color-mix(in oklab, #000 55%, transparent);
}

/* Vertical spine between cover and copy */
.mestro-current__spine {
  display: none;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mestro-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--mestro-orange) 88%, white);
  white-space: nowrap;
  user-select: none;
  align-self: stretch;
  justify-self: center;
}

@media (min-width: 720px) {
  .mestro-current__spine {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.mestro-current__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  min-height: 100%;
  height: 100%;
  padding: 0.15rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mestro-current__ident {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #fff;
}

.mestro-issue-toc__heading .mestro-current__desc {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  max-width: 36rem;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.7;
}

body.mestro-theme .mestro-issue-toc__heading .mestro-current__desc,
body.mestro-theme .mestro-issue-toc__heading .mestro-current__desc p,
body.mestro-theme .mestro-issue-toc__heading .mestro-current__desc a,
.mestro-issue-toc__heading .mestro-current__desc,
.mestro-issue-toc__heading .mestro-current__desc p,
.mestro-issue-toc__heading .mestro-current__desc a {
  color: #fff !important;
}

.mestro-issue-toc__heading .mestro-current__desc > *:first-child {
  margin-top: 0;
}

.mestro-issue-toc__heading .mestro-current__desc > *:last-child {
  margin-bottom: 0;
}

/* Published + View issue — sit lower in the stage; keep existing stage/spine lines */
body.mestro-theme .mestro-issue-toc__heading .mestro-current__meta,
.mestro-issue-toc__heading .mestro-current__meta,
.mestro-current__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem 1.35rem;
  margin: auto 0 0;
  padding: 1.75rem 0 0;
  width: 100%;
  max-width: 36rem;
  border-top: 0;
}

.mestro-issue-toc__heading .mestro-current__published {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
}

.mestro-current__published-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mestro-orange);
}

.mestro-current__published-value {
  font-family: var(--mestro-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.15;
}

.mestro-current__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 2.45rem;
  padding: 0.5rem 1.15rem;
  border: 0;
  border-radius: 1.2rem;
  background: var(--mestro-orange);
  color: #fff !important;
  font-family: var(--mestro-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s var(--mestro-ease), color 0.2s var(--mestro-ease);
}

.mestro-current__open:hover,
.mestro-current__open:focus-visible {
  background: #fff;
  color: var(--mestro-indigo) !important;
  text-decoration: none !important;
}

/* —— Articles (light list under stage) —— */
.mestro-current__articles {
  padding-top: 0.2rem;
}

.mestro-current__section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.95rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-family: var(--mestro-font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mestro-indigo);
  background: transparent;
  box-shadow: none;
}

.mestro-current__section-label::before {
  content: "";
  width: 1.35rem;
  height: 2px;
  background: var(--mestro-orange);
  transform: none;
}

.mestro-current__articles-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  border-top: 0;
}

.mestro-current__articles-list > li {
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.mestro-current__articles-list .mestro-article {
  margin: 0;
  padding: 1rem 1rem 1.05rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in oklab, var(--mestro-indigo) 10%, #e8ebf5);
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: none;
}

.mestro-current__articles-list .mestro-article__index {
  font-family: var(--mestro-font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--mestro-orange);
}

.mestro-current__articles-list .mestro-article__title {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  text-align: left;
  text-align-last: left;
}

.mestro-current__articles-list .mestro-article__title a {
  color: var(--mestro-indigo);
}

.mestro-current__articles-list .mestro-article__title a:hover,
.mestro-current__articles-list .mestro-article__title a:focus {
  color: var(--mestro-orange);
}

.mestro-current__articles-list .mestro-article__actions .obj_galley_link,
.mestro-current__articles-list .mestro-article__actions a.obj_galley_link,
.mestro-current__articles-list .mestro-article__actions a.obj_galley_link.pdf,
body.mestro-theme .mestro-current__articles-list .mestro-article__actions a.obj_galley_link.pdf {
  margin-right: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.45rem !important;
  padding: 0.5rem 1.15rem !important;
  border-radius: 1.2rem !important;
  border: 0 !important;
  background: var(--mestro-orange) !important;
  color: #fff !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: background 0.2s var(--mestro-ease), color 0.2s var(--mestro-ease);
}

.mestro-current__articles-list .mestro-article__actions .obj_galley_link:hover,
.mestro-current__articles-list .mestro-article__actions .obj_galley_link:focus,
.mestro-current__articles-list .mestro-article__actions a.obj_galley_link:hover,
.mestro-current__articles-list .mestro-article__actions a.obj_galley_link:focus,
.mestro-current__articles-list .mestro-article__actions a.obj_galley_link.pdf:hover,
.mestro-current__articles-list .mestro-article__actions a.obj_galley_link.pdf:focus,
body.mestro-theme .mestro-current__articles-list .mestro-article__actions a.obj_galley_link.pdf:hover,
body.mestro-theme .mestro-current__articles-list .mestro-article__actions a.obj_galley_link.pdf:focus {
  background: #1a216a !important;
  border-color: transparent !important;
  color: #fff !important;
  filter: none;
  transform: none;
}

.mestro-current__more {
  margin: 1.4rem 0 0;
}

.mestro-current__archive {
  min-height: 2.55rem;
}

/* —— Article meta rail —— */
.mestro-current__articles-list .mestro-article__body {
  --mestro-meta-rail: 1.15rem;
  --mestro-meta-gap: 0.45rem;
}

.mestro-current__articles-list .mestro-article__doi,
.mestro-current__articles-list .mestro-article__byline,
.mestro-current__articles-list .mestro-article__stats,
.mestro-current__articles-list .mestro-article__actions {
  margin-left: 0;
  padding-left: 0;
}

.mestro-current__articles-list .mestro-article__doi {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: var(--mestro-meta-gap);
  box-sizing: border-box;
  width: 100%;
  margin: 0.15rem 0 0.4rem;
  padding: 0;
  min-height: var(--mestro-meta-rail);
  font-size: 0.82rem;
  line-height: 1.35;
}

.mestro-current__articles-list .mestro-article__doi-badge {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: var(--mestro-meta-rail);
  height: var(--mestro-meta-rail);
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
}

.mestro-current__articles-list .mestro-article__doi-badge img {
  display: block;
  width: 100%;
  height: 100%;
}

.mestro-current__articles-list .mestro-article__doi a {
  color: color-mix(in oklab, var(--mestro-indigo) 70%, #4d8186) !important;
  text-decoration: none;
  word-break: break-all;
  font-weight: 500;
}

.mestro-current__articles-list .mestro-article__doi a:hover,
.mestro-current__articles-list .mestro-article__doi a:focus {
  color: var(--mestro-orange) !important;
  text-decoration: underline;
}

.mestro-current__articles-list .mestro-article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin: 0 0 0.45rem;
}

.mestro-current__articles-list .mestro-article__authors {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-height: var(--mestro-meta-rail);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--mestro-ink-soft);
}

.mestro-current__articles-list .mestro-article__author {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

.mestro-current__articles-list .mestro-article__author-sep {
  margin: 0 0.35rem 0 0;
  color: var(--mestro-muted);
  line-height: 1;
}

.mestro-current__articles-list .mestro-article__flag {
  position: static;
  display: block;
  width: 16px;
  height: 12px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--mestro-indigo) 12%, transparent);
}

.mestro-current__articles-list .mestro-article__pages {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: color-mix(in oklab, var(--mestro-indigo) 50%, #64748b);
  white-space: nowrap;
}

.mestro-current__articles-list .mestro-article__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  margin: 0 0 0.7rem;
  padding: 0;
  font-size: 0.82rem;
  color: var(--mestro-ink-mid);
}

.mestro-current__articles-list .mestro-article__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

.mestro-current__articles-list .mestro-article__stat--views {
  color: var(--mestro-ink-mid);
}

.mestro-current__articles-list .mestro-article__stat--dl {
  color: var(--mestro-orange-deep, var(--mestro-orange));
  margin-left: auto;
}

.mestro-current__articles-list .mestro-article__stat-icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  color: inherit;
}

.mestro-current__articles-list .mestro-article__stat-text strong {
  color: var(--mestro-indigo);
  font-weight: 700;
}

.mestro-current__articles-list .mestro-article__stat--dl .mestro-article__stat-text strong {
  color: var(--mestro-orange-deep, var(--mestro-orange));
}

.mestro-current__articles-list .mestro-article__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.mestro-current__articles-list .mestro-article__actions > .obj_galley_link:first-child,
.mestro-current__articles-list .mestro-article__actions > a.obj_galley_link:first-child {
  margin-right: 0 !important;
}

@media (max-width: 560px) {
  .mestro-issue-toc__heading .mestro-issue-cover--panel {
    max-width: 10.5rem;
  }

  .mestro-current__articles-list .mestro-article__stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .mestro-current__articles-list .mestro-article__stat--dl {
    margin-left: 0;
  }

  .mestro-current__meta {
    flex-direction: column;
    align-items: stretch;
  }

  .mestro-current__open {
    width: 100%;
  }
}
