/* PET_LUXURY_MAGAZINE_V1 — editorial layer for luxury_storefront */
:root {
  --lsf-mag-bg: #07121b;
  --lsf-mag-panel: rgba(15, 30, 42, .84);
  --lsf-mag-panel-solid: #0e1e2a;
  --lsf-mag-line: rgba(220, 184, 111, .2);
  --lsf-mag-gold: #dcb86f;
  --lsf-mag-cream: #f5ead4;
  --lsf-mag-muted: #9eb0bb;
  --lsf-mag-radius: 26px;
}

.lsf-magazine-page {
  background: var(--lsf-mag-bg);
  color: var(--lsf-mag-cream);
}

.lsf-magazine-page .lsf-root {
  overflow: clip;
}

.lsf-magazine-page a {
  color: inherit;
}

.lsf-mag-hero {
  position: relative;
  padding: clamp(54px, 8vw, 112px) 0 36px;
  background:
    radial-gradient(circle at 12% 10%, rgba(220, 184, 111, .14), transparent 34%),
    radial-gradient(circle at 88% 70%, rgba(74, 144, 148, .13), transparent 36%);
}

.lsf-mag-hero::after {
  content: "";
  position: absolute;
  inset: auto 7% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lsf-mag-line), transparent);
}

.lsf-mag-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.lsf-mag-hero h1,
.lsf-mag-article-head h1 {
  margin: 10px 0 14px;
  color: #fff;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.lsf-mag-hero p,
.lsf-mag-article-head > p {
  max-width: 760px;
  margin: 0;
  color: var(--lsf-mag-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 2;
}

.lsf-mag-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 12px;
}

.lsf-mag-stats > div,
.lsf-mag-stats > span {
  min-width: 120px;
  padding: 18px 20px;
  border: 1px solid var(--lsf-mag-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(14px);
}

.lsf-mag-stats strong,
.lsf-mag-stats > span > b,
.lsf-mag-stats > span > small {
  display: block;
}

.lsf-mag-stats strong,
.lsf-mag-stats > span > b {
  color: var(--lsf-mag-gold);
  font-size: 1.55rem;
}

.lsf-mag-stats > span > small {
  margin-top: 5px;
  color: var(--lsf-mag-muted);
  font-size: .79rem;
}

.lsf-mag-chips {
  display: flex;
  gap: 10px;
  padding-top: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.lsf-mag-chips::-webkit-scrollbar { display: none; }

.lsf-mag-chips a {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  color: var(--lsf-mag-muted);
  text-decoration: none;
  transition: .25s ease;
}

.lsf-mag-chips a:hover,
.lsf-mag-chips a.is-active {
  border-color: rgba(220, 184, 111, .55);
  background: rgba(220, 184, 111, .1);
  color: var(--lsf-mag-cream);
}

.lsf-mag-content-section,
.lsf-mag-post-section {
  padding: 44px 0 clamp(72px, 10vw, 130px);
}

.lsf-mag-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.lsf-mag-toolbar h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.lsf-mag-toolbar form {
  position: relative;
  width: min(390px, 100%);
}

.lsf-mag-toolbar form > label {
  display: block;
  margin-bottom: 8px;
  color: var(--lsf-mag-muted);
  font-size: .78rem;
}

.lsf-mag-toolbar form > div { position: relative; }
.lsf-mag-toolbar > p { margin: 0; color: var(--lsf-mag-muted); }
.lsf-mag-toolbar > p b { color: var(--lsf-mag-gold); }

.lsf-mag-toolbar input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px 0 48px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  font: inherit;
}

.lsf-mag-toolbar input:focus {
  border-color: rgba(220, 184, 111, .6);
  box-shadow: 0 0 0 4px rgba(220, 184, 111, .08);
}

.lsf-mag-toolbar button {
  position: absolute;
  inset: 5px auto 5px 5px;
  width: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--lsf-mag-gold);
  color: #10202a;
  cursor: pointer;
}

.lsf-mag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.lsf-mag-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: var(--lsf-mag-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  box-shadow: 0 24px 58px rgba(0, 0, 0, .2);
  text-decoration: none;
  transform: translateY(0);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.lsf-mag-card:hover {
  transform: translateY(-7px);
  border-color: rgba(220, 184, 111, .36);
  box-shadow: 0 30px 72px rgba(0, 0, 0, .34);
}

.lsf-mag-card.is-featured {
  grid-column: span 2;
}

.lsf-mag-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #102430;
}

.lsf-mag-card.is-featured .lsf-mag-card-media { aspect-ratio: 21 / 10; }

.lsf-mag-card-media::after,
.lsf-mag-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(3, 12, 18, .65));
  pointer-events: none;
}

.lsf-mag-card-media > span {
  position: absolute;
  z-index: 1;
  inset: auto 16px 14px auto;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(6, 19, 28, .7);
  color: var(--lsf-mag-cream);
  font-size: .72rem;
  backdrop-filter: blur(9px);
}

.lsf-mag-card-media img,
.lsf-mag-cover img,
.lsf-mag-related img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.lsf-mag-card:hover .lsf-mag-card-media img { transform: scale(1.045); }

.lsf-mag-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.lsf-mag-card-body h2,
.lsf-mag-card-body h3 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.65;
}

.lsf-mag-card-body h2 a,
.lsf-mag-card-body h3 a { text-decoration: none; }

.lsf-mag-card.is-featured .lsf-mag-card-body h2,
.lsf-mag-card.is-featured .lsf-mag-card-body h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }

.lsf-mag-card-body > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 20px;
  color: var(--lsf-mag-muted);
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.lsf-mag-card .lsf-kicker,
.lsf-mag-article .lsf-kicker {
  color: var(--lsf-mag-gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.lsf-mag-meta {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
  color: #869aa6;
  font-size: .78rem;
}

.lsf-mag-meta i { opacity: .45; }
.lsf-mag-read { margin-inline-start: auto; color: var(--lsf-mag-gold); }

.lsf-mag-empty {
  grid-column: 1 / -1;
  padding: 60px 24px;
  border: 1px dashed var(--lsf-mag-line);
  border-radius: var(--lsf-mag-radius);
  color: var(--lsf-mag-muted);
  text-align: center;
}

.lsf-magazine-page .lsf-empty {
  padding: 60px 24px;
  border: 1px dashed var(--lsf-mag-line);
  border-radius: var(--lsf-mag-radius);
  color: var(--lsf-mag-muted);
  text-align: center;
}

.lsf-mag-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-top: 34px;
}

.lsf-mag-pagination a,
.lsf-mag-pagination span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  text-decoration: none;
}

.lsf-mag-pagination .is-current,
.lsf-mag-pagination .is-active {
  border-color: var(--lsf-mag-gold);
  background: var(--lsf-mag-gold);
  color: #0a1821;
}

.lsf-mag-breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--lsf-mag-muted);
  font-size: .84rem;
}

.lsf-mag-breadcrumb a { text-decoration: none; }
.lsf-mag-breadcrumb a:hover { color: var(--lsf-mag-gold); }

.lsf-mag-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.lsf-mag-article {
  min-width: 0;
  padding: clamp(22px, 4vw, 52px);
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018));
  box-shadow: 0 32px 80px rgba(0, 0, 0, .26);
}

.lsf-mag-article-head { margin-bottom: 30px; }
.lsf-mag-article-head h1 { max-width: 940px; font-size: clamp(2rem, 4.5vw, 4rem); }

.lsf-mag-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0 0 30px;
  border-radius: 26px;
  background: #102430;
}

.lsf-mag-ai-box,
.zph-ai-summary-box {
  margin: 0 0 34px;
}

.zph-ai-summary-box {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(220, 184, 111, .32);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(220, 184, 111, .14), transparent 42%),
    rgba(8, 20, 29, .82);
}

.zph-ai-summary-box::before {
  content: "AI";
  position: absolute;
  inset: 16px auto auto 18px;
  color: rgba(220, 184, 111, .16);
  font: 900 2.8rem/1 sans-serif;
}

.zph-ai-summary-title,
.zph-ai-summary-heading,
.zph-ai-summary-head {
  position: relative;
  margin: 0 0 12px;
  color: var(--lsf-mag-gold);
  font-weight: 850;
}

.zph-ai-summary-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.zph-ai-summary-head > div { display: grid; gap: 3px; }
.zph-ai-summary-head strong { color: var(--lsf-mag-gold); }
.zph-ai-summary-head small { color: var(--lsf-mag-muted); line-height: 1.65; }
.zph-ai-summary-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(220, 184, 111, .38);
  border-radius: 14px;
  background: rgba(220, 184, 111, .1);
  color: var(--lsf-mag-gold);
  font-weight: 900;
}

.zph-ai-summary-text,
.zph-ai-summary-box p {
  position: relative;
  margin: 0;
  color: #dce5e9;
  line-height: 2;
}

.zph-ai-summary-links,
.zph-ai-summary-box ul {
  position: relative;
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0 18px 0 0;
}

.zph-ai-summary-toc { position: relative; margin-top: 18px; }
.zph-ai-summary-toc > strong { display: block; margin-bottom: 9px; color: #fff; font-size: .86rem; }
.zph-ai-summary-links { padding: 0; }
.zph-ai-summary-links a {
  display: block;
  padding: 7px 10px;
  border-inline-start: 2px solid rgba(220, 184, 111, .28);
  text-decoration: none;
}
.zph-ai-summary-links .zph-ai-toc-l3 { padding-inline-start: 24px; color: #bdcbd2; }

.zph-ai-summary-box a { color: var(--lsf-mag-gold); }

.lsf-mag-article-body {
  color: #dce4e8;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 2.15;
}

.lsf-mag-article-body > *:first-child { margin-top: 0; }
.lsf-mag-article-body p { margin: 0 0 1.5em; }

.lsf-mag-article-body h2,
.lsf-mag-article-body h3 {
  scroll-margin-top: 110px;
  color: #fff;
  line-height: 1.65;
}

.lsf-mag-article-body h2 {
  margin: 2.4em 0 .8em;
  padding-bottom: .48em;
  border-bottom: 1px solid var(--lsf-mag-line);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.lsf-mag-article-body h3 { margin: 2em 0 .65em; font-size: clamp(1.2rem, 2vw, 1.5rem); }

.lsf-mag-article-body h2:target,
.lsf-mag-article-body h3:target,
.lsf-mag-article-body .is-lsf-heading-target {
  animation: lsf-heading-pulse 1.6s ease;
}

@keyframes lsf-heading-pulse {
  0%, 100% { background: transparent; }
  32% { background: rgba(220, 184, 111, .15); box-shadow: 0 0 0 10px rgba(220, 184, 111, .08); }
}

.lsf-mag-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.lsf-mag-article-body blockquote {
  margin: 2em 0;
  padding: 18px 22px;
  border: 0;
  border-inline-start: 3px solid var(--lsf-mag-gold);
  border-radius: 14px;
  background: rgba(220, 184, 111, .075);
  color: var(--lsf-mag-cream);
}

.lsf-mag-article-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.lsf-mag-article-body th,
.lsf-mag-article-body td { padding: 10px 13px; border: 1px solid rgba(255,255,255,.1); }
.lsf-mag-article-body a { color: var(--lsf-mag-gold); text-underline-offset: 4px; }

.lsf-mag-post-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 16px;
}

.lsf-mag-side-panel {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 22px;
  background: var(--lsf-mag-panel);
  backdrop-filter: blur(15px);
}

.lsf-mag-side-panel h2 {
  margin: 0 0 13px;
  color: #fff;
  font-size: 1rem;
}

.lsf-mag-side-panel a {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
  color: var(--lsf-mag-muted);
  font-size: .86rem;
  line-height: 1.65;
  text-decoration: none;
}

.lsf-mag-side-panel a:last-child { border-bottom: 0; }
.lsf-mag-side-panel a:hover { color: var(--lsf-mag-gold); }
.lsf-mag-toc-panel a.is-child { padding-inline-start: 16px; font-size: .8rem; }

.lsf-mag-related {
  margin-top: 54px;
  padding-top: 38px;
  border-top: 1px solid var(--lsf-mag-line);
}

.lsf-mag-related .lsf-section-head { margin-bottom: 18px; }
.lsf-mag-related .lsf-section-head h2 { margin: 5px 0 0; font-size: 1.45rem; }

.lsf-mag-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lsf-mag-related-grid > a {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 13px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  text-decoration: none;
}

.lsf-mag-related-grid img { aspect-ratio: 1 / 1; border-radius: 12px; }
.lsf-mag-related-grid span { min-width: 0; }
.lsf-mag-related-grid b { display: -webkit-box; overflow: hidden; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.lsf-mag-related-grid small { display: -webkit-box; overflow: hidden; margin-top: 6px; color: var(--lsf-mag-muted); line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.lsf-mag-scroll-top {
  position: fixed;
  z-index: 99;
  inset: auto auto 24px 24px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(220, 184, 111, .55);
  border-radius: 17px;
  background: rgba(8, 21, 30, .9);
  color: var(--lsf-mag-gold);
  box-shadow: 0 16px 42px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transform: translateY(12px);
  transition: .25s ease;
  backdrop-filter: blur(13px);
}

.lsf-mag-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lsf-mag-scroll-top.is-opposite-widget { inset-inline: 24px auto; }

@media (max-width: 1050px) {
  .lsf-mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lsf-mag-card.is-featured { grid-column: auto; }
  .lsf-mag-card.is-featured .lsf-mag-card-media { aspect-ratio: 16 / 10; }
  .lsf-mag-post-layout { grid-template-columns: minmax(0, 1fr); }
  .lsf-mag-post-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .lsf-mag-hero { padding-top: 42px; }
  .lsf-mag-hero-grid { grid-template-columns: 1fr; }
  .lsf-mag-stats { width: 100%; }
  .lsf-mag-toolbar { align-items: stretch; flex-direction: column; }
  .lsf-mag-toolbar form { width: 100%; }
  .lsf-mag-grid { grid-template-columns: 1fr; }
  .lsf-mag-article { padding: 19px; border-radius: 25px; }
  .lsf-mag-cover { margin-inline: -7px; border-radius: 20px; }
  .lsf-mag-post-sidebar { grid-template-columns: 1fr; }
  .lsf-mag-related-grid { grid-template-columns: 1fr; }
  .lsf-mag-scroll-top { inset-block-end: 18px; inset-inline-start: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .lsf-mag-card,
  .lsf-mag-card-media img,
  .lsf-mag-scroll-top { transition: none; }
  .lsf-mag-article-body h2:target,
  .lsf-mag-article-body h3:target,
  .lsf-mag-article-body .is-lsf-heading-target { animation: none; }
}
