
/* ===========================
   Global Favicon Link Injector
   =========================== */

@media all {
  head::before {
    content: "";
    display: none;
  }
}

/* This adds the favicon for all pages dynamically */
html::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  background: none;
}

/* JS-free favicon enforcement (injects into head) */
@import url("https://ericdgraham.com/core/assets/images/hideaway-icon.png");



/* EricGraham_UCAI_v1.0_2025-10-18 — Shared Core Styles */
:root {
  --cream:#f9f8f3;
  --ink:#222;
  --green:#2f6e3b;
  --bronze:#6f633f;
  --parch:#d6cbb2;
  --warn:#b24040;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--cream);color:var(--ink);font-family:Georgia,"Times New Roman",serif;line-height:1.55}
a{color:var(--green);text-decoration:none} a:hover{text-decoration:underline}
.container{max-width:980px;margin:0 auto;padding:0 16px}
.vault-header{text-align:center;padding:1rem 1rem .75rem}
.vault-seal{max-width:84px;display:block;margin:0 auto 6px auto;opacity:.96;filter:drop-shadow(0 2px 3px rgba(0,0,0,.12))}
.vault-gold-line{width:40%;height:2px;background:#c4a15a;opacity:.6;margin:8px auto 10px;border-radius:2px}
.vault-logo{max-width:260px;height:auto;display:block;margin:0 auto .3rem;opacity:.98}
.vault-title{color:var(--green);font-size:1.85rem;margin:.25rem 0 0;font-weight:700}
.vault-subtitle{color:#444;margin:.2rem 0 0}
.vault-stamp{color:#666;font-style:italic;margin:.15rem 0 0}
.vault-rule{border:0;border-top:1px solid var(--parch);max-width:920px;margin:.6rem auto}
.section{background:#fdfcf9;border:1px solid #ddd;border-radius:12px;padding:1.1rem 1.2rem;margin:1rem 0;box-shadow:0 1px 6px rgba(0,0,0,.08)}
.section h2{color:var(--green);margin:.2rem 0 .6rem;font-size:1.25rem}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}
.card{background:#fcfbf7;border:1px solid #ddd;border-radius:10px;padding:1rem;box-shadow:0 1px 5px rgba(0,0,0,.06)}
.vault-footer{text-align:center;padding:1rem 1rem 2rem;color:#444}
.vault-footer-logo{max-width:400px;display:block;margin:.5rem auto .35rem;opacity:.92;filter:drop-shadow(0 2px 5px rgba(0,0,0,.08))}
.vault-footer-note{font-style:italic;margin:.25rem 0}
.vault-lpv{color:var(--bronze);font-weight:600;letter-spacing:.2px;margin:.25rem 0}
.vault-warning{color:#ed961c;font-weight:600;margin:.25rem 0 0}
.vault-copyright{font-size:.92rem;color:#555;margin:.15rem 0 0}
#contents-box{position:fixed;bottom:85px;left:25px;background:rgba(249,248,243,.98);border:1px solid var(--parch);border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,.15);width:240px;max-height:42px;overflow:hidden;transition:max-height .3s ease,box-shadow .3s ease;z-index:9998}
#contents-box.expanded{max-height:440px}
#contents-toggle{display:block;width:100%;background:#f4f1e5;border:none;padding:8px 10px;font-weight:700;color:var(--green);cursor:pointer;border-bottom:1px solid #e1d7c3}
#contents-list{list-style:none;margin:0;padding:.5rem .9rem}
#contents-list li{margin:.28rem 0}
#contents-list a{color:var(--green)}
#contents-list a.active{color:#6a8f52;font-weight:700}
#page-controls{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:9997}
#page-controls .bookbar{display:flex;gap:8px;background:rgba(249,248,243,.98);border:1px solid var(--parch);border-radius:999px;padding:6px;box-shadow:0 2px 8px rgba(0,0,0,.15)}
#page-controls .bookbar button{border:1px solid #ccc;background:#fff;border-radius:999px;padding:6px 12px;cursor:pointer}
#page-controls .bookbar button:hover{background:#e8f2e0}
@media (max-width:768px){
  #contents-box{left:12px;width:220px}
  .vault-logo{max-width:220px}
}
/* === DMR Hybrid Blocks === */
.dmr-block {
  background: #fff;
  border: 1px solid #e6e2d8;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.dmr-block h2,
.dmr-block h3 {
  color: #305a2c;
  margin-top: 0;
}

.dmr-block pre code {
  background: #f7f6f1;
  border: 1px dashed #cfc8b4;
  display: block;
  padding: .75rem 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.4;
}


/* Appendix G Inline Contents Box */
#contents-box-inline {
  position: fixed;
  bottom: 85px;   /* or adjust */
  left: 25px;     /* same as old contents box */
  z-index: 9999;
}


#contents-toggle-inline {
  background: #3d5b2d;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

#contents-toggle-inline:hover {
  background: #2d4420;
}

#contents-list-inline {
  display: none;
  position: absolute;
  left: 0;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  list-style: none;
  background: #fbfaf6;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 999;
}

#contents-list-inline li {
  padding: 0.25rem 1rem;
}

#contents-list-inline li a {
  color: #305a2c;
  text-decoration: none;
  font-weight: 500;
  display: block;
}

#contents-list-inline li a:hover {
  color: #3d5b2d;
  background: #f0f2e8;
  border-radius: 4px;
}
#contents-list-inline {
  bottom: 100%;        /* place above the button */
  top: auto;           /* cancel default */
  margin-bottom: 0.5rem;
}

/* Appendix G Inline Contents Box — DMR */
#contents-box-inline-dmr {
  position: fixed;
  bottom: 85px;
  left: 25px;
  background: rgba(249,248,243,0.98);
  border: 1px solid var(--parch);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  width: 240px;
  overflow: hidden;
  z-index: 9998;
}

#contents-toggle-inline-dmr {
  display: block;
  width: 100%;
  background: #3d5b2d;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px 6px 0 0;
  font-weight: 600;
  cursor: pointer;
}

#contents-list-inline-dmr {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background: #fbfaf6;
  border-top: 1px solid #ddd;
}

#contents-list-inline-dmr li {
  padding: 0.25rem 1rem;
}

#contents-list-inline-dmr li a {
  color: #305a2c;
  text-decoration: none;
  display: block;
}

#contents-list-inline-dmr li a:hover {
  background: #f0f2e8;
  border-radius: 4px;
}

/* Guides Contents Box */
#contents-box-inline-guides {
  position: fixed;           /* make it float */
  bottom: 90px;              /* lift it above footer / page controls */
  left: 25px;                /* pull in from wall */
  background: rgba(249,248,243,.98);
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  z-index: 9998;
  padding: 0.5rem 0.75rem;
}

#contents-box-inline-guides button {
  display: block;
  width: 100%;
  background: #3d5b2d;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
}

#contents-list-inline-guides {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

#contents-list-inline-guides li {
  margin: 0.25rem 0;
}

#contents-list-inline-guides a {
  color: #305a2c;
  text-decoration: none;
  font-weight: 500;
}

#contents-list-inline-guides a:hover {
  background: #f0f2e8;
  border-radius: 4px;
  padding-left: 2px;
}

/* ===============================
   Appendix G Inline Contents Box — Palmetum (Bottom-Left, Expand Upwards)
   =============================== */
#contents-box-inline-palmetum {
  position: fixed;
  bottom: 15px;           /* above footer controls */
  left: 25px;
  width: 280px;
  background: rgba(249,248,243,0.98);
  border: 1px solid var(--parch);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-family: 'Georgia', serif;
  z-index: 9999;
}

#contents-toggle-inline-palmetum {
  display: block;
  width: 100%;
  background: #3d5b2d;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: center;
}

#contents-toggle-inline-palmetum:hover {
  background: #2d4420;
}

/* Menu list — expands upward */
#contents-list-inline-palmetum {
  display: none;
  position: absolute;
  bottom: 100%;             /* float above button */
  left: 0;
  width: 100%;
  max-height: 300px;        /* cap visible height */
  overflow-y: auto;         /* scroll within */
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem;
  background: #fbfaf6;
  border: 1px solid #ddd;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.15);
}

#contents-list-inline-palmetum li {
  margin: 4px 0;
}

#contents-list-inline-palmetum a {
  text-decoration: none;
  color: #305a2c;
  font-size: 0.9rem;
  display: block;
  padding: 2px 0;
  transition: color 0.2s ease;
}

#contents-list-inline-palmetum a:hover {
  color: #3d5b2d;
  background: #f0f2e8;
  border-radius: 4px;
}

/* Responsive tweak for small screens */
@media (max-width: 480px) {
  #contents-box-inline-palmetum {
    left: 12px;
    width: 210px;
  }
}




/* Alphabetical Palmetum Menu */
#palmetum-az-menu {
  text-align: left;
  margin: 1rem auto 1.5rem;
}

#palmetum-az-menu .az-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#palmetum-az-menu .az-index .az-toggle {
  background: #3d5b2d;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
}

#palmetum-az-menu .az-index .az-toggle:hover {
  background: #2d4420;
}

#palmetum-az-menu .az-list {
  display: none;
  position: absolute;
  background: #fbfaf6;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  margin-top: 6px;
  padding: 0.5rem 1rem;
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
  z-index: 9999;
}

#palmetum-az-menu .az-list li {
  margin: 0.25rem 0;
}

#palmetum-az-menu .az-list a {
  color: #2f6e3b;
  text-decoration: none;
}

#palmetum-az-menu .az-list a:hover {
  text-decoration: underline;
  color: #000;
}
/* ================================
   Vault Network Footer Styles
   EricGraham_UCAI_v1.0_2025-10-18
   ================================ */

/* --- Shared Typography --- */
.vault-lpv {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0.3rem 0;
  color: var(--ink);
}

/* =====================================
   1) Inline Subnav (always visible)
   ===================================== */
.vault-subnav {
  margin-top: 0.15rem;
  margin-bottom: 0.4rem;
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  color: #555;
  text-align: center;
}

.vault-subnav a {
  color: #444;
  text-decoration: none;
  padding: 0 0.2rem;
  transition: color 0.2s ease;
}

.vault-subnav a:hover {
  color: var(--green);
  text-decoration: underline;
}

.vault-icon {
  margin-right: 0.3rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* =====================================
   2) Vault Trigger Dropdown (click to open)
   ===================================== */
.vault-trigger {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 0.3rem;
  transition: transform 0.3s ease;
}

.vault-trigger[aria-expanded="true"] {
  transform: rotate(90deg); /* icon rotates when open */
}

/* Anchor the dropdown INSIDE footer box */
.vault-footer {
  position: relative;
  overflow: visible;
}



.vault-menu a {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  color: #444;
  margin: 0.25rem 0;
}

.vault-menu a:hover {
  color: var(--green);
  text-decoration: underline;
}
.vault-menu {
  display: none;
  margin: 0.5rem auto;
  padding: 0.75rem 1rem;
  background: #fbfaf6;
  border: 1px solid var(--parch);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 200px;
}



/* Popup modal styles */
.vault-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.vault-modal-content {
  background-color: #fdfcf6;
  margin: 5% auto;
  padding: 10px;
  border: 2px solid #444;
  width: 90%;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px #222;
}

.vault-close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.vault-close:hover {
  color: #c00;
}