body{
  padding-bottom: 24px !important;
}

@font-face {
    font-family: 'GillSansNovaCondXBD';
    src: url('../fonts/gill-sans-nova-cond-xbd.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CopperplateGothicBold';
    src: url('../fonts/copperplate-gothic-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'GabrielaRegular';
    src: url('../fonts/Gabriela-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===== Glyph rendering (GLOBAL) ===== */
.glyph-word{
  align-items: center;
  padding: 2px 2px;
}

.glyph{
  width: 1em;
  height: 1em;
  object-fit: contain;
  vertical-align: middle;
}

.glyph-space{
  width: 10px;
  height: 1px;
  display: inline-block;
}

.glyph-punct{
  color: var(--muted);
  font-size: 14px;
  padding: 0 2px;
}



.codex-link {
    color: white;
    text-decoration: underline;
    text-decoration-color: var(--accent); /* Light blue underline */
    text-underline-offset: 2px;
    transition: 0.3s;
}

.codex-link:hover {
    color: var(--accent);
    text-decoration-color: white;
    transition: 0.3s;
}

/* Apply GillSansNovaCondXBD to category and region info-boxes */
.info-box[class*="category-"],
.info-box[class*="region-"] {
    font-family: 'GillSansNovaCondXBD', sans-serif !important;
}

/* Apply CopperplateGothicBold to all other info-boxes */
.info-box {
    font-family: 'CopperplateGothicBold', sans-serif;
}

.audio-swatch {
  display: inline-block;
  margin: 0 6px 0 0;
  opacity: 0.75;
  font-size: 0.9em;
}

.inline-audio:hover .audio-swatch {
  opacity: 1;
}

/* Tag icon next to tag-links (similar spacing/behavior to .audio-swatch) */
.tag-swatch{
  display:inline-block;
  margin:0 6px 0 0;
  opacity:0.75;
  font-size:0.9em;
}

.tag-link:hover .tag-swatch{
  opacity:1;
}

.linkify-hr{
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  margin: 12px 0 8px;
}

.info-box.info-audio,
.info-box.info-tag,
.info-box.info-waypoint,
.info-box.info-world {
  position: relative;            /* needed for absolute icon */
  justify-content: center;       /* keep text centered */
  text-align: center;
  padding-left: 42px;            /* room for icon on left */
  padding-right: 14px;
}

/* Base icon */
.info-box.info-audio::before,
.info-box.info-tag::before,
.info-box.info-waypoint::before,
.info-box.info-world::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  opacity: 0.95;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

/* Audio icon (speaker) */
.info-box.info-audio::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23eef2f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5z'/%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14'/%3E%3C/svg%3E");
}

/* Tag icon */
.info-box.info-tag::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23eef2f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41 12 22l-10-10V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cpath d='M7 7h.01'/%3E%3C/svg%3E");
}

/* Waypoint / map-pin icon */
.info-box.info-waypoint::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23eef2f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.info-box.info-world::before{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eef2f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Cpath d='M2 12c4-4 16-4 20 0'/%3E%3Cpath d='M2 12c4 4 16 4 20 0'/%3E%3C/svg%3E");
}


/* Keep inner content centered */
.info-box.info-audio a,
.info-box.info-tag a,
.info-box.info-waypoint a,
.info-box.info-audio span,
.info-box.info-tag span,
.info-box.info-waypoint span,
.info-box.info-world a,
.info-box.info-world span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}


/* -------- Search header -------- */
.list-header{
  width: min(1280px, 94vw);
  margin: 12px auto 8px auto;
  display: grid;
  gap: 10px;
}

.searchbar{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  position: relative;
}
.searchbar input{
  width: 100%;
  height: 44px;
  padding: 10px 44px 10px 14px;
  font-size: 16px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.searchbar input:focus{
  border-color: rgba(255,255,255,0.22);
  box-shadow: var(--shadow-soft);
}
.searchbar .clear{
  position: absolute;
  right: 94px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px; line-height: 28px;
  text-align: center;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  background: transparent;
  transition: background .15s ease, color .15s ease;
}
.searchbar .clear:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.searchbar button{
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)), var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.searchbar button:hover{
  transform: translateY(-1px);
  background: var(--panel-hover);
  border-color: rgba(255,255,255,0.18);
  box-shadow: var(--shadow-soft);
}
.results-meta{
  color: var(--muted);
  font-size: 14px;
  padding: 0 2px;
}

@media (max-width: 680px){
  .glyph{ width: 17px; height: 17px; }
}





/* 
.category-artic {
    background: radial-gradient(circle at center, #B7BEE5, #F0F2F8);
}

.category-artic a:hover {
    color: black;
}


.category-aquatic {
    background: linear-gradient(to right, #90FFFF, #2BBFFF, #2C93FF, #906AFF, #3C36E5, #0A29B8);
}

.category-aquatic a:hover {
    color: black;
}


.category-sunscorch {
    background: linear-gradient(to right, #FFD87A, #FF8C7A, #FF5B29, #FF4B4B);
}

.category-sunscorch a:hover {
    color: black;
}


.category-subterranean {
    background: radial-gradient(circle at center, #A7A6A7, #434343);
    
}

.category-subterranean a:hover {
    color: black;
}



.region-lumicryst-desert {
     background: radial-gradient(circle at center, #00D3F4, #008495);
}

.region-lumicryst-desert a:hover {
    color: black;
}


.region-lumicryst-sea {
    background: radial-gradient(circle at center, #00D3F4, #008495);
}

.region-lumicryst-sea a:hover {
    color: black;
}


.region-lumicryst-caves {
   background: radial-gradient(circle at center, #00D3F4, #008495);
}

.region-lumicryst-caves a:hover {
    color: black;
}


.region-varekaale {
    background: radial-gradient(circle at center, #BBDEF5, #D9EBFA);
    
}

.region-varekaale a:hover {
    color: black;
} */
