/* 04-violet-dusk homepage: home-content uses .hm-vd but had no stylesheet.
   Keep PHP template unchanged; this file is loaded only for that theme slug. */

body[data-theme-slug="04-violet-dusk"] {
  overflow-x: hidden;
}

body[data-theme-slug="04-violet-dusk"] .topbar .container,
body[data-theme-slug="04-violet-dusk"] .footer .container,
body[data-theme-slug="04-violet-dusk"] .site-foot .container {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(14px, 2.2vw, 28px);
  padding-right: clamp(14px, 2.2vw, 28px);
  box-sizing: border-box;
}

body[data-theme-slug="04-violet-dusk"] .topbar-inner {
  gap: 16px;
}

body[data-theme-slug="04-violet-dusk"] .nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.hm-vd {
  --vd-ink: #1e1b4b;
  --vd-muted: #5b5675;
  --vd-line: rgba(91, 33, 182, 0.16);
  --vd-accent: #6d28d9;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px clamp(16px, 3vw, 32px) 72px;
  box-sizing: border-box;
  color: var(--vd-ink);
}

.hm-vd img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: none;
  display: block;
  object-fit: unset;
  mix-blend-mode: normal;
  opacity: 1;
}

.hm-vd h1,
.hm-vd__letter h1 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.45;
  font-weight: 700;
  color: var(--vd-ink);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: currentColor;
  letter-spacing: 0;
  white-space: normal;
}

.hm-vd__crumbplain {
  display: none;
}

.hm-vd__letter {
  margin: 0 0 18px;
}

.hm-vd__deck,
.hm-vd__lede,
.hm-vd__essay {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #312e4a;
}

.hm-vd__cover {
  margin: 0 0 20px;
  background: #f4f2fb;
  border-radius: 16px;
  overflow: hidden;
}

.hm-vd__cover img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: #f4f2fb;
}

.hm-vd__cover figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--vd-muted);
}

.hm-vd__sec {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px dashed var(--vd-line);
}

.hm-vd__sec h2 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.hm-vd__det {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--vd-line);
  border-radius: 12px;
  background: #fafafe;
}

.hm-vd__detinner {
  display: grid;
  gap: 12px;
  padding-top: 10px;
}

@media (min-width: 760px) {
  .hm-vd__detinner {
    grid-template-columns: minmax(160px, 280px) minmax(0, 1fr);
    align-items: start;
  }
}

.hm-vd__detfig img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 180px;
}

.hm-vd__dettxt {
  margin: 0;
  line-height: 1.65;
}

.hm-vd__strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.hm-vd__strip figure {
  margin: 0;
}

.hm-vd__strip img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

.hm-vd__strip figcaption {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--vd-muted);
}

.hm-vd__list {
  margin: 0;
  padding-left: 1.15em;
  line-height: 1.7;
}

.hm-vd__list li {
  margin: 0 0 6px;
}

.hm-vd__faq details {
  margin: 0 0 8px;
}

.hm-vd__spot {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 650;
}

.hm-vd__spot a,
.hm-vd__list a {
  color: inherit;
  text-decoration: none;
}

.hm-vd__spot a:hover,
.hm-vd__list a:hover {
  color: var(--vd-accent);
  text-decoration: underline;
}

.hm-vd__miniplain {
  margin: 28px 0 0;
  font-size: 0.82rem;
  color: var(--vd-muted);
}

/* News detail: detail-content-04-violet-dusk.php uses .vpg-article, but this
   file previously only styled the homepage .hm-vd block. Without these rules
   the cover is unconstrained, the title uses browser h1, and the watermark
   (position:absolute) has no positioned parent. */

.vpg-article {
  --vd-ink: #1e1b4b;
  --vd-muted: #5b5675;
  --vd-line: rgba(91, 33, 182, 0.16);
  --vd-accent: #6d28d9;
  --vd-text: #312e4a;
  --vd-gutter: clamp(14px, 2.2vw, 28px);
  padding: 0 0 56px;
  color: var(--vd-ink);
}

.vpg-article__mast {
  background: transparent;
  padding: 18px 0 8px;
}

.vpg-article__mast-inner,
body[data-theme-slug="04-violet-dusk"] .container.vpg-article__mast-inner {
  max-width: min(920px, 1220px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--vd-gutter);
  padding-right: var(--vd-gutter);
  box-sizing: border-box;
  text-align: left;
}

.vpg-article__crumb {
  margin: 0 0 12px;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--vd-muted);
}

.vpg-article__crumb a {
  color: var(--vd-muted);
  text-decoration: none;
}

.vpg-article__crumb a:hover {
  color: var(--vd-accent);
  text-decoration: underline;
}

.vpg-article__crumb-sep {
  margin: 0 8px;
  opacity: 0.55;
}

.vpg-article__crumb-clip {
  color: var(--vd-ink);
}

.vpg-article__kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--vd-accent);
  background: rgba(109, 40, 217, 0.08);
}

.vpg-article__h1 {
  margin: 0 0 12px;
  max-width: none;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 750;
  line-height: 1.28;
  color: var(--vd-ink);
  overflow-wrap: anywhere;
}

.vpg-article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 0.9rem;
  color: var(--vd-muted);
}

.vpg-article__back {
  font-weight: 700;
  color: var(--vd-accent);
  text-decoration: none;
}

.vpg-article__back:hover {
  text-decoration: underline;
}

.vpg-article__lede-wrap,
body[data-theme-slug="04-violet-dusk"] .container.vpg-article__lede-wrap {
  max-width: min(920px, 1220px);
  margin-left: auto;
  margin-right: auto;
  padding: 16px var(--vd-gutter) 0;
  box-sizing: border-box;
}

.vpg-article__lede {
  margin: 0;
  padding: 12px 0 12px 16px;
  border-left: 3px solid var(--vd-accent);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--vd-text);
}

.vpg-article__cover {
  margin: 0;
  padding: 18px 0 8px;
}

.vpg-article__cover.vs-img-watermark,
.vpg-article__cover-inner {
  position: relative;
}

.vpg-article__cover-inner,
body[data-theme-slug="04-violet-dusk"] .container.vpg-article__cover-inner {
  max-width: min(1100px, 1220px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--vd-gutter);
  padding-right: var(--vd-gutter);
  box-sizing: border-box;
}

.vpg-article__cover-inner > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(460px, 58vw);
  object-fit: cover;
  border-radius: 16px;
}

.vpg-article__cover-inner > .site-img-wm {
  right: calc(var(--vd-gutter) + 14px);
  bottom: 14px;
}

.vpg-article__sheet,
body[data-theme-slug="04-violet-dusk"] .container.vpg-article__sheet {
  max-width: min(720px, 1220px);
  margin-left: auto;
  margin-right: auto;
  padding: 22px var(--vd-gutter) 0;
  box-sizing: border-box;
}

.vpg-article__main {
  min-width: 0;
}

.vpg-article__body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--vd-text);
}

.vpg-article__body h2,
.vpg-article__body h3 {
  margin: 1.35em 0 0.5em;
  font-size: 1.18rem;
  font-weight: 750;
  line-height: 1.35;
  color: var(--vd-ink);
}

.vpg-article__body p {
  margin: 0 0 1em;
}

.vpg-article__body ul,
.vpg-article__body ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.vpg-article__body img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 12px 0 18px;
  border-radius: 12px;
}

.vpg-article__body a {
  color: var(--vd-accent);
  font-weight: 650;
}

.vpg-article__pagerow {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 560px) {
  .vpg-article__pagerow {
    grid-template-columns: 1fr;
  }
}

.vpg-article__pagecell {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--vd-line);
  background: #fafafe;
}

.vpg-article__plabel {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--vd-muted);
}

.vpg-article__pagecell a {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--vd-ink);
  text-decoration: none;
}

.vpg-article__pagecell a:hover {
  color: var(--vd-accent);
  text-decoration: underline;
}

.vpg-article__pempty {
  font-size: 0.92rem;
  color: var(--vd-muted);
}

.vpg-article__note {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px dashed var(--vd-line);
  background: #fafafe;
}

.vpg-article__note h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.vpg-article__note p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--vd-muted);
}

.vpg-article__below,
body[data-theme-slug="04-violet-dusk"] .container.vpg-article__below {
  max-width: 1100px;
  margin: 36px auto 0;
  padding: 0 var(--vd-gutter);
  box-sizing: border-box;
}

.vpg-article__below-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

@media (max-width: 960px) {
  .vpg-article__below-grid {
    grid-template-columns: 1fr;
  }
}

.vpg-article__dock-card {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--vd-line);
  background: #fff;
}

.vpg-article__dock-card h2 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: var(--vd-muted);
}

.vpg-article__dock-card p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.vpg-article__dock-card > a,
.vpg-article__dock-card a {
  color: var(--vd-accent);
  text-decoration: none;
}

.vpg-article__dock-card a:hover {
  text-decoration: underline;
}

.vpg-article__dock-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vpg-article__dock-card li {
  margin-bottom: 6px;
}

.vpg-article__dock-card--related ul {
  max-height: 260px;
  overflow: auto;
}
