/* ===================================================================
   VORTEX — asymmetric map layout, near-black + mint, thin light type.
   Scoped under .theme-vortex (never touches admin / .theme-paper).
   =================================================================== */
.theme-vortex {
  --v-bg: #0b0f10;
  --v-surface: #11191a;
  --v-surface2: #0e1516;
  --v-line: #1e2c2d;
  --v-accent: #4ade9f;
  --v-ink: #e4efe9;
  --v-muted: #7d9790;
  --v-read-bg: #f1f5f3;
  --v-read-ink: #14201d;
  --v-read-muted: #51695f;
  --v-sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --v-mono: "Space Mono", ui-monospace, Menlo, monospace;

  background: var(--v-bg);
  color: var(--v-ink);
  font-family: var(--v-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.theme-vortex a { color: var(--v-accent); text-decoration: none; }
.theme-vortex :focus-visible { outline: 2px solid var(--v-accent); outline-offset: 3px; border-radius: 3px; }

.theme-vortex .v-site { max-width: 74rem; margin: 0 auto; padding: 0 1.5rem 6rem; }

/* --- Header --- */
.theme-vortex .v-head { position: relative; padding: 4rem 0 2.6rem; margin-bottom: 3rem; overflow: hidden; }
.theme-vortex .v-watermark { position: absolute; top: -34%; right: -4%; width: 440px; height: 440px; color: var(--v-accent); opacity: .09; pointer-events: none; z-index: 0; }
.theme-vortex .v-watermark svg { width: 100%; height: 100%; }
.theme-vortex .v-head > *:not(.v-watermark) { position: relative; z-index: 1; }
.theme-vortex .v-coord { font-family: var(--v-mono); font-size: .76rem; letter-spacing: .18em; color: var(--v-accent); text-transform: uppercase; margin-bottom: 1rem; }
.theme-vortex .v-coord-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--v-accent); margin-right: .55rem; vertical-align: middle; box-shadow: 0 0 0 3px rgba(74,222,159,.22), 0 0 12px 2px rgba(74,222,159,.5); }
.theme-vortex .v-wordmark { margin: 0; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: .98; letter-spacing: -0.02em; }
.theme-vortex .v-wordmark a { color: var(--v-ink); }
.theme-vortex .v-w1 { font-weight: 300; }
.theme-vortex .v-w2 { font-weight: 600; margin-left: .3em; }

/* --- Asymmetric layout: featured (1.6fr) + side column (1fr) --- */
.theme-vortex .v-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: stretch; }
.theme-vortex .v-empty { font-family: var(--v-mono); color: var(--v-muted); font-size: .9rem; display: flex; align-items: center; gap: .6rem; }
.theme-vortex .v-empty-pin { width: .55rem; height: .55rem; border-radius: 50%; background: var(--v-accent); box-shadow: 0 0 0 4px rgba(74,222,159,.2); }

.theme-vortex .v-featured { display: flex; flex-direction: column; background: var(--v-surface); border: 1px solid var(--v-line); border-radius: 14px; overflow: hidden; color: var(--v-ink); transition: border-color .2s ease, transform .2s ease; }
.theme-vortex .v-featured:hover { border-color: var(--v-accent); transform: translateY(-2px); }
.theme-vortex .v-featured .cover { height: 360px; }
.theme-vortex .v-featured-body { display: flex; flex-direction: column; gap: .7rem; padding: 1.6rem 1.7rem 1.9rem; }
.theme-vortex .v-meta { font-family: var(--v-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--v-muted); }
.theme-vortex .v-featured-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
.theme-vortex .v-featured-ex { color: var(--v-muted); font-size: 1rem; }

/* Side column of compact tiles */
.theme-vortex .v-side { display: flex; flex-direction: column; gap: 1.5rem; }
.theme-vortex .v-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; flex: 1; min-height: 120px; background: var(--v-surface2); border: 1px solid var(--v-line); border-radius: 12px; padding: 1.1rem 1.2rem 1.2rem; color: var(--v-ink); transition: border-color .2s ease, transform .2s ease; }
.theme-vortex .v-tile:hover { border-color: var(--v-accent); transform: translateY(-2px); }
.theme-vortex .v-tile-top { display: flex; align-items: center; gap: .5rem; font-family: var(--v-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--v-muted); }
.theme-vortex .v-tile-dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--v-accent); box-shadow: 0 0 8px 1px rgba(74,222,159,.5); flex: none; }
.theme-vortex .v-tile-label { color: var(--v-accent); }
.theme-vortex .v-tile-date { margin-left: auto; }
.theme-vortex .v-tile-title { font-size: 1.2rem; font-weight: 400; line-height: 1.2; }

/* --- Media cover box (shared .cover; images contained, no overflow) --- */
.theme-vortex .cover {
  position: relative; display: block; width: 100%; overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 20%, rgba(74,222,159,.14), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(74,222,159,.10) 25px 26px),
    repeating-linear-gradient(90deg, transparent 0 25px, rgba(74,222,159,.10) 25px 26px),
    var(--v-surface2);
}
.theme-vortex .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .95; }
.theme-vortex .cover-photo::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--v-accent); box-shadow: 0 0 0 7px rgba(74,222,159,.26), 0 0 0 18px rgba(74,222,159,.12), 0 0 22px 5px rgba(74,222,159,.5); }
.theme-vortex .cover-play { position: absolute; inset: 0; display: grid; place-items: center; }
.theme-vortex .cover-play svg { width: 64px; height: 64px; }
.theme-vortex .cover-play-ring { fill: rgba(11,15,16,.5); stroke: var(--v-accent); stroke-width: 1.4; }
.theme-vortex .cover-play-tri { fill: var(--v-accent); }
.theme-vortex .cover-docbox { position: absolute; inset: 0; display: grid; place-items: center; color: var(--v-accent); }
.theme-vortex .cover-docbox .doc-glyph { width: 60px; height: 60px; }
.theme-vortex .cover-badges { position: absolute; right: .7rem; top: .7rem; z-index: 2; display: flex; gap: .3rem; }
.theme-vortex .cover-badge { font-family: var(--v-mono); font-size: .64rem; background: rgba(11,15,16,.8); color: var(--v-ink); padding: .16rem .42rem; border-radius: 5px; border: 1px solid var(--v-line); }

/* --- Reading view: dark header + lighter reading surface --- */
.theme-vortex .v-post-head { margin-bottom: 0; padding-bottom: 2.4rem; }
.theme-vortex .v-backlink { font-family: var(--v-mono); font-size: .74rem; margin: 0 0 1.2rem; }
.theme-vortex .v-post-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.015em; margin: .4rem 0 0; }
.theme-vortex .v-reading { background: var(--v-read-bg); color: var(--v-read-ink); border-radius: 14px; padding: 3rem clamp(1.2rem, 4vw, 3.2rem); border: 1px solid #dbe6e1; }
.theme-vortex .v-article { max-width: 65ch; margin: 0 auto; }
.theme-vortex .reading-body { font-size: 1.1rem; line-height: 1.78; }
.theme-vortex .reading-body p { margin: 0 0 1.35rem; }
.theme-vortex .v-reading a { color: #0c8a63; }

.theme-vortex .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin: 2rem 0; }
.theme-vortex .gallery-item { display: block; border-radius: 8px; overflow: hidden; background: #dde7e3; }
.theme-vortex .gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; transition: transform .3s ease; }
.theme-vortex .gallery-item:hover img { transform: scale(1.05); }

.theme-vortex .video-embed { position: relative; aspect-ratio: 16/9; margin: 2rem 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--v-accent); box-shadow: 0 0 0 5px rgba(74,222,159,.1); background: #000; }
.theme-vortex .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.theme-vortex .v-docs-head { font-family: var(--v-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--v-read-muted); margin: 2.4rem 0 .9rem; }
.theme-vortex .doc-cards { display: grid; gap: .6rem; }
.theme-vortex .doc-card { display: flex; align-items: center; gap: .9rem; padding: .85rem .95rem; background: #fff; border: 1px solid #dbe6e1; border-left: 3px solid var(--v-accent); border-radius: 10px; color: var(--v-read-ink); transition: transform .15s ease; }
.theme-vortex .doc-card:hover { transform: translateX(2px); }
.theme-vortex .doc-card-icon { color: #0c8a63; display: grid; place-items: center; flex: none; }
.theme-vortex .doc-card-icon .doc-glyph { width: 30px; height: 30px; }
.theme-vortex .doc-card-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.theme-vortex .doc-card-name { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-vortex .doc-card-meta { display: flex; gap: .5rem; align-items: center; font-family: var(--v-mono); font-size: .68rem; color: var(--v-read-muted); }
.theme-vortex .doc-card-badge { background: #e3efe9; color: #0c8a63; padding: .06rem .4rem; border-radius: 4px; }

@media (max-width: 760px) {
  .theme-vortex .v-layout { grid-template-columns: 1fr; }
  .theme-vortex .v-featured .cover { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-vortex *, .theme-vortex *::before, .theme-vortex *::after { transition: none !important; }
}
