/* amUnity publish.css v=2025-12-14-4 */
/* Location: Vault root: /publish.css */

:root{
  --brand-blue:#22A0DA;
  --brand-green:#208D43;
  --brand-orange:#F47421;
  --text:#111;
}

/* Base links (Publish) */
.markdown-preview-view a,
.markdown-rendered a{
  color:var(--brand-blue);
  text-decoration:none;
  border-bottom:1px solid currentColor;
}

/* Web title (H1) + H2 in brand green */
.markdown-preview-view h1,
.markdown-rendered h1{
  color:var(--brand-green) !important;
}
.markdown-preview-view h2,
.markdown-rendered h2{
  color:var(--brand-green) !important;
}

/* --- COVER IMAGE ON WEB --- */
/* If you embed like: ![[cover-epub.jpg|doc-cover]] then alt="doc-cover" */
img[alt="doc-cover"]{
  width:80%;
  height:auto;
  display:block;
  margin:0 auto 1rem; /* centred */
}

/* Optional: class-based cover image support */
img.cover-pdf-web{
  width:80%;
  height:auto;
  display:block;
  margin:0 auto 1rem; /* centred */
}

/* --- Buttons --- */
.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin:12px 0 18px 0;
}
a.btn{
  display:inline-block;
  padding:10px 16px;
  border:1px solid currentColor;
  border-radius:12px;
  text-decoration:none;
  font-weight:600;
  line-height:1.1;
  transition:transform .06s ease, opacity .15s ease;
}
a.btn:hover{ opacity:.85; }
a.btn:active{ transform:translateY(1px); }
a.btn:focus{ outline:2px dashed currentColor; outline-offset:3px; }

a.btn.pdf{  color:var(--brand-blue); }
a.btn.epub{ color:var(--brand-green); }

/* --- Living Library footer (WEB only) --- */
.living-footer{
  width:80%;
  margin:2rem auto 1.5rem;
  text-align:center;
  font-size:.95em;
  padding-top:1rem;
  border-top:1px solid rgba(0,0,0,.1);
}

/* Orange only for footer heading + label + non-button links */
.living-footer strong{ color:var(--brand-orange); }
.living-footer .living-label{ color:var(--brand-orange); }
.living-footer p a:not(.btn){
  color:var(--brand-orange);
  border-bottom:1px solid currentColor;
}

/* Buttons keep their intended colours */
.living-footer a.btn.pdf{  color:var(--brand-blue) !important; }
.living-footer a.btn.epub{ color:var(--brand-green) !important; }

/* --- Visibility gates (WEB) --- */
/* WEB must never show the PDF/EPUB footer */
.pdf-epub-only{ display:none !important; }
/* WEB footer should show */
.web-only{ display:block !important; }
