:root {
  --viranatha-text-color: #C0C0C0;
  --viranatha-link-color: #99FF00;

  --shravana-text-color: #FFD700;
  --shravana-link-color: #9900FF;

  --tarazedi-text-color: #B87333;
  --tarazedi-link-color: #FF9900;

  --maia-text-color: #C0C0C0;
  --maia-link-color: #0099FF;

  --shakti-text-color: #C0C0C0;
  --shakti-link-color: #FF0000;

  --content-link-color: var(--link-color);
  --content-info-color: color-mix(in srgb, var(--link-color) 50%, transparent);
  --content-text-color: var(--text-color);
  --content-dim-color: color-mix(in srgb, var(--text-color) 50%, transparent);
  --content-bright-color: var(--bright-color);

  --section-pad: 4px;
  --section-radius: 8px;
  --section-gap: 8px;
  --section-top-border: 2px;
}

.vira-text {
  color: var(--viranatha-text-color);
}

.vira-link {
  color: var(--viranatha-link-color);
}

.shra-text {
  color: var(--shravana-text-color);
}

.shra-link {
  color: var(--shravana-link-color);
}

.tara-text {
  color: var(--tarazedi-text-color);
}

.tara-link {
  color: var(--tarazedi-link-color);
}

.maia-text {
  color: var(--maia-text-color);
}

.maia-link {
  color: var(--maia-link-color);
}

.shakti-text {
  color: var(--shakti-text-color);
}

.shakti-link {
  color: var(--shakti-link-color);
}

.info {
  color: var(--content-info-color);
}

.dim {
  color: var(--content-dim-color);
}

.text {
  color: var(--content-text-color);
}

.link {
  color: var(--content-link-color);
}

.bright {
  color: var(--content-bright-color);
}

.maia-theme {
  --text-color: var(--maia-text-color);
  --link-color: var(--maia-link-color);
  --bright-color: #FFFFFF;

  --content-text-color: var(--maia-text-color);
  --content-link-color: var(--maia-link-color);
  --content-info-color: color-mix(in srgb, var(--maia-link-color) 50%, transparent);
  --content-dim-color: color-mix(in srgb, var(--maia-text-color) 50%, transparent);
}

.shakti-theme {
  --text-color: var(--shakti-text-color);
  --link-color: var(--shakti-link-color);
  --bright-color: #FFFFFF;

  --content-text-color: var(--shakti-text-color);
  --content-link-color: var(--shakti-link-color);
  --content-info-color: color-mix(in srgb, var(--shakti-link-color) 50%, transparent);
  --content-dim-color: color-mix(in srgb, var(--shakti-text-color) 50%, transparent);
}


i, b {
  color: var(--bright-color);
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--background-color);
}

body {
  color: var(--text-color);
  font-family: var(--font-sans);
}

html.frame-page {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--link-color) color-mix(in srgb, var(--link-color) 22%, transparent);
}

html.frame-page::-webkit-scrollbar {
  width: 2px;
}

html.frame-page::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--link-color) 22%, transparent);
}

html.frame-page::-webkit-scrollbar-thumb {
  background: var(--link-color);
  border-radius: 999px;
}

html.frame-page body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow: visible;
}

a {
  position: relative;
  display: inline-block;
  color: var(--link-color);
  text-decoration: none;
  z-index: 0;
  padding: 4px;
  border-radius: 4px;
  font-weight: bold;
}

a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text-color);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
  z-index: -1;
}

a:hover::before,
a:focus-visible::before {
  transform: scaleX(1);
}

.site-shell {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.top-menu {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  box-sizing: border-box;
  flex: 0 0 auto;
  padding-top: 0.3rem;
  background: var(--background-color);
}

.menu-block {
  display: flex;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.menu-left {
  justify-content: flex-start;
  padding-left: 0.75rem;
}

.menu-center {
  justify-content: center;
}

.menu-right {
  justify-content: flex-end;
  padding-right: 0.75rem;
}

.menu-link,
.menu-site {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  line-height: 1;
}

.menu-site {
    font-weight: bold;
}

.menu-logo {
  display: block;
  width: 4rem;
  height: 4rem;
  object-fit: contain;
}

.menu-label-row {
  height: 1.8rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.menu-link-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.menu-site-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.menu-descriptor-bar {
  grid-column: 1 / 4;
  width: 100%;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
}

.social-frame {
  display: block;
  width: 100%;
  height: 25px;
  flex: 0 0 25px;
  border: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.content-frame {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  border: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.menu-descriptor-text {
  display: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  font-style: italic;
}

/* default from active site */
.top-menu:has(#menu-left.is-active) .descriptor-left,
.top-menu:has(#menu-center.is-active) .descriptor-center,
.top-menu:has(#menu-right.is-active) .descriptor-right {
  display: inline;
}

/* hover overrides active */
.top-menu:has(#menu-left:hover) .menu-descriptor-text,
.top-menu:has(#menu-center:hover) .menu-descriptor-text,
.top-menu:has(#menu-right:hover) .menu-descriptor-text {
  display: none;
}

.top-menu:has(#menu-left:hover) .descriptor-left,
.top-menu:has(#menu-center:hover) .descriptor-center,
.top-menu:has(#menu-right:hover) .descriptor-right {
  display: inline;
}


.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.social-text {
  color: #C0C0C0;
  font-size: 12px;  
}

.social-links a {
  color: #C0C0C0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  padding: 0;
  margin: 0;
  text-decoration: none;
  box-sizing: border-box;
}

.social-links i {
  font-size: 12px;
}

.vira-border {
  border: 1px solid var(--viranatha-link-color);
  border-radius: 4px;
}

.shra-border {
  border: 1px solid var(--shravana-link-color);
  border-radius: 4px;
}

.tara-border {
  border: 1px solid var(--tarazedi-link-color);
  border-radius: 4px;
}

.maia-border {
  border: 1px solid var(--maia-link-color);
  border-radius: 4px;
}

.shakti-border {
  border: 1px solid var(--shakti-link-color);
  border-radius: 4px;
}

.taravira-border {
  border: 1px solid transparent;
  border-radius: 4px;
  background:
    linear-gradient(var(--background-color), var(--background-color)) padding-box,
    linear-gradient(to right, var(--tarazedi-link-color), var(--viranatha-link-color)) border-box;
}

.taramaia-border {
  border: 1px solid transparent;
  border-radius: 4px;
  background:
    linear-gradient(var(--background-color), var(--background-color)) padding-box,
    linear-gradient(to right, var(--tarazedi-link-color), var(--maia-link-color)) border-box;
}

.tarashra-border {
  border: 1px solid transparent;
  border-radius: 4px;
  background:
    linear-gradient(var(--background-color), var(--background-color)) padding-box,
    linear-gradient(to right, var(--tarazedi-link-color), var(--shravana-link-color)) border-box;
}

.shakshra-border {
  border: 1px solid transparent;
  border-radius: 4px;
  background:
    linear-gradient(var(--background-color), var(--background-color)) padding-box,
    linear-gradient(to right, var(--shakti-link-color), var(--shravana-link-color)) border-box;
}

.virashra-border {
  border: 1px solid transparent;
  border-radius: 4px;
  background:
    linear-gradient(var(--background-color), var(--background-color)) padding-box,
    linear-gradient(to right, var(--viranatha-link-color), var(--shravana-link-color)) border-box;
}

.taravirashra-border {
  border: 1px solid transparent;
  border-radius: 4px;
  background:
    linear-gradient(var(--background-color), var(--background-color)) padding-box,
    linear-gradient(
      to right,
      var(--tarazedi-link-color) 0%,
      var(--viranatha-link-color) 50%,
      var(--shravana-link-color) 100%
    ) border-box;
}

.menu-active-frame {
  border: 1px solid var(--link-color);
  border-radius: 4px;
  padding: 4px;
}

.content-page {
  position: relative;
  min-height: 100%;
  padding: 12px 16px 24px 16px;
  box-sizing: border-box;
  color: var(--content-text-color);
  font-family: var(--font-sans);
  background: var(--background-color);
}

.content-page::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    var(--background-color) 0%,
    var(--link-color) 50%,
    var(--background-color) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.content-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 8px;
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 0 4px 0;
}

.filter-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--content-info-color);
  font-family: var(--font-mono);
  font-size: 12px;
}

.filter-item input {
  margin: 0;
}

.filter-print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--content-info-color);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  padding: 0 2px;
}

.filter-print:hover,
.filter-print:focus-visible {
  color: var(--content-link-color);
}

.sections {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.section-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.content-section {
  position: relative;
  padding: 4px;
  border-radius: var(--section-radius);
  box-sizing: border-box;
  overflow: hidden;
  color: var(--content-text-color);
  background: transparent;
}

.content-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--section-top-border);
  background: linear-gradient(
    to right,
    var(--background-color) 0%,
    var(--content-link-color) 50%,
    var(--background-color) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.content-section > * {
  position: relative;
  z-index: 2;
}

.section-full {
  width: 100%;
  background: color-mix(in srgb, var(--background-color) 75%, transparent);
  border: 1px solid var(--content-dim-color);
}

.section-full.double-bg {
  min-height: 100px;
  background-position: left center, right center;
  background-repeat: no-repeat, no-repeat;
  background-size: 100px 50px, 100px 50px;
  padding-left: 50px;
  padding-right: 50px;
}

.section-full p {
  text-align: justify;
}

.section-half {
  min-width: 0;
}

.section-full::before {
  background: linear-gradient(
    to right,
    var(--background-color) 0%,
    var(--content-link-color) 50%,
    var(--background-color) 100%
  );
}

.section-half-left::before {
  background: linear-gradient(
    to right,
    var(--background-color) 0%,
    var(--content-link-color) 100%
  );
}

.section-half-right::before {
  background: linear-gradient(
    to right,
    var(--content-link-color) 0%,
    var(--background-color) 100%
  );
}

.section-half-left {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.section-half-right {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.section-row.row-has-bg {
  min-height: 100px;
  background-repeat: no-repeat;
  background-position: center top;
}

.section-row.row-has-bg .section-half-left {
  padding-right: 54px;
}

.section-row.row-has-bg .section-half-right {
  padding-left: 54px;
}

.section-header {
  margin-bottom: 6px;
}

.section-title {
  color: var(--content-link-color);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  margin: 0;
}

.section-meta {
  color: var(--content-info-color);
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.52rem + 0.3vw, 0.78rem);
  line-height: 1.1;
  margin-top: 2px;
}

.section-body {
  color: var(--content-text-color);
  font-size: clamp(0.8rem, 0.7rem + 0.22vw, 0.9rem);
  line-height: clamp(1.16, 1.08 + 0.14vw, 1.26);
}

.section-body .dim {
  color: var(--content-dim-color);
}

.section-header-spacer {
  height: 2.5rem;
}

.is-hidden-by-filter {
  display: none !important;
}

.filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--content-info-color);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  padding: 0 2px;
}

.filter-reset:hover,
.filter-reset:focus-visible {
  color: var(--content-link-color);
}

.art-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.art-gallery-info {
  color: var(--content-text-color);
  font-size: inherit;
  line-height: inherit;
}

.art-gallery-preview-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  overflow: hidden;
}

.art-gallery-frame {
  position: relative;
  width: 12px;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border: 1px solid #99FF00;
  border-radius: 999px;
  overflow: hidden;
  transition:
    width 2s ease,
    border-radius 2s ease,
    opacity 2s ease;
}

.art-gallery-frame.is-idle {
  width: 12px;
  border-radius: 999px;
}

.art-gallery-frame.is-open {
  width: min(100%, 800px);
  border-radius: 999px;
}

.art-gallery-frame.is-active {
  width: min(100%, 800px);
  border-radius: 4px;
}

.art-gallery-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease;
  pointer-events: none;
}

.art-gallery-layer.is-visible {
  opacity: 1;
}

.art-gallery-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.art-gallery-itemline {
  display: block;
  line-height: 1.25;
}

.art-gallery-link {
  color: var(--content-link-color);
  cursor: pointer;
}

.art-gallery-link:hover,
.art-gallery-link:focus-visible {
  color: var(--content-link-color);
}

.art-gallery-details {
  color: var(--content-text-color);
  text-align: center;
}

.art-gallery-details-title {
  color: var(--content-link-color);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  margin: 0 0 4px 0;
  text-align: center;
}

.art-gallery-details-meta {
  color: var(--content-info-color);
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 0.55rem + 0.35vw, 0.8rem);
  line-height: 1.15;
  margin-bottom: 4px;
  text-align: center;
}

.art-gallery-details-body {
  font-size: clamp(0.8rem, 0.7rem + 0.22vw, 0.9rem);
  line-height: clamp(1.16, 1.08 + 0.14vw, 1.26);
}

.uv-version {
  border: 1px solid #0099FF;
  border-radius: 4px;
    color: #9900FF;
}

.glow-version {
  border: 1px solid #0099FF;
  border-radius: 4px;
    color: #C0C0C0;
}

.primordial-version {
  border: 1px solid #C0C0C0;
  border-radius: 4px;
    color: #0099FF;
}

.art-gallery-info .gallery-desc {
  color: var(--content-text-color);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.3;
  margin: 0;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.section-title-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.section-title-control {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--content-info-color);
  font-family: inherit;
  font-weight: inherit;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.section-title-control:hover,
.section-title-control:focus-visible {
  color: var(--content-link-color);
}

.is-hidden-by-popout {
  display: none !important;
}

.section-isolated-mode .content-inner {
  max-width: 1200px;
}

.section-isolated-mode .content-page::before {
  display: none;
}

.has-isolated-section {
  display: block;
}

.is-isolated-section {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.verse,
.verse-arial {
  margin: 4px;
  padding: 0px 8px 0px 0px;
  border-radius: 4px;
  overflow-y: auto;
  max-height: 12rem;
}

.verse {
  font-size: clamp(1.35rem, 1.17rem + 0.42vw, 1.5rem);
  font-family: var(--font-display);
  font-weight: normal;
}

.verse-arial {
  font-size: clamp(0.9rem, 0.78rem + 0.28vw, 1rem);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}

.section-isolated-mode .is-isolated-section .verse,
.section-isolated-mode .is-isolated-section .verse-arial {
  max-height: none;
  overflow: visible;
}

.pip, .icon {
  margin-left: 0.5em;
  margin-right: 0.5em;
  vertical-align: baseline;
  
}

.pip {
  max-height: 1em;
}

.icon {
  max-height: 128px;
}

.section-body.verse,
.section-body.verse p, 
.section-body.verse-arial,
.section-body.verse-arial p  {
  text-align: center !important;
}

#copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  height: auto;
  margin: 0;
  padding: 4px;
  box-sizing: border-box;
  color: var(--text-color);
  font-size: 12px;  
}

.light-mode {
  --background-color: #FFFFFF;
  --text-color: #000000;
  --content-text-color: #000000;
  --content-dim-color: rgba(0, 0, 0, 0.45);
  --content-info-color: rgba(0, 0, 0, 0.6);
}

.print-popup-body {
  margin: 0;
  padding: 24px;
  background: var(--background-color);
  color: var(--content-text-color);
}

.light-mode .content-page,
.light-mode .content-section,
.light-mode .section-full {
  background: #FFFFFF;
  color: var(--content-text-color);
  border-color: rgba(0, 0, 0, 0.25);
}

@media print {
  html,
  body {
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  html.frame-page {
    height: auto !important;
    overflow: visible !important;
    scrollbar-width: auto !important;
  }

  .site-shell {
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
  }

  .content-frame,
  .social-frame {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    flex: none !important;
  }

  .sections,
  .section-row,
  .content-section,
  .section-body,
  .section-body.verse,
  .section-body.verse-arial {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .section-row,
  .content-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .verse,
  .verse-arial {
    max-height: none !important;
    overflow: visible !important;
  }

  .no-print,
  .section-title-controls,
  .filter-bar,
  .social-frame {
    display: none !important;
  }

  .print-popup-body {
    padding: 0 !important;
  }

  .content-page::before {
    display: none !important;
  }

    .maia-theme {
    --maia-text-color: #000000;
    --maia-link-color: #0066cc;

    --text-color: var(--maia-text-color);
    --link-color: var(--maia-link-color);

    --content-text-color: var(--maia-text-color);
    --content-link-color: var(--maia-link-color);
    --content-info-color: rgba(0, 0, 0, 0.6);
    --content-dim-color: rgba(0, 0, 0, 0.45);
  }

  .shakti-theme {
    --shakti-text-color: #000000;
    --shakti-link-color: #cc0000;

    --text-color: var(--shakti-text-color);
    --link-color: var(--shakti-link-color);

    --content-text-color: var(--shakti-text-color);
    --content-link-color: var(--shakti-link-color);
    --content-info-color: rgba(0, 0, 0, 0.6);
    --content-dim-color: rgba(0, 0, 0, 0.45);
  }

}

.image-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.trident-bg, .trident-big-bg, .trident-tdot, .trident-tfot, .trident-watwwn, .trident-watwwd, .trident-watwwf {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 200px 300px;
  min-height: 300px;
}

.trident-bg { background-image: url("https://www.tarazedi.com/trident.png"); }
.trident-big-bg { background-image: url("https://www.tarazedi.com/trident-big.png"); }

.trident-tdot { background-image: url("https://www.tarazedi.com/trident-tdot.png"); }
.trident-tfot { background-image: url("https://www.tarazedi.com/trident-tfot.png"); }
.trident-watwwn { background-image: url("https://www.tarazedi.com/trident-watwwn.png"); }
.trident-watwwd { background-image: url("https://www.tarazedi.com/trident-watwwd.png"); }
.trident-watwwf { background-image: url("https://www.tarazedi.com/trident-watwwf.png"); }

.tiny {
  font-size: 12px;
}

.pair {
  display: flex;
  justify-content: space-between;
  gap: 130px;
}

.pair-left,
.pair-right {
  flex: 0 1 300px;
  max-width: 300px;
}

.pair-right {
  text-align: right;
}
