/*
 * Hyland-branded Enunciate CSS
 * Matches https://docs.hyland.com/PME2/en_US/25.1/API/ styling
 */

/* ---- Figtree Font Faces ---- */

/* latin-ext italic */
@font-face {
    font-family: 'Figtree';
    font-style: italic;
    font-weight: 300 900;
    font-display: swap;
    src: url(../fonts/_Xmu-HUzqDCFdgfMm4GNAa5o_ik.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin italic */
@font-face {
    font-family: 'Figtree';
    font-style: italic;
    font-weight: 300 900;
    font-display: swap;
    src: url(../fonts/_Xmu-HUzqDCFdgfMm4GND65o.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext normal */
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url(../fonts/_Xms-HUzqDCFdgfMm4q9DbZs.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin normal */
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url(../fonts/_Xms-HUzqDCFdgfMm4S9DQ.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- CSS Variables ---- */
:root {
    --theme-color: #191f5e;
    --accent-color: #13EAC1;
    --logo-accent-color: #6E33FF;
}

/*
 * Base structure
 */
* {
    font-family: 'Figtree' !important;
}

/* Move down content because we have a fixed navbar that is 50px tall */
html, body {
    height: 100%;
    overflow: hidden;
}

body {
    position: relative;
    padding-top: 50px;
}

.footer {
    width: 100%;
    background-color: #191f5e;
    color: #ffffff;
    padding: 1.75rem 1.5rem;
    text-align: center;
    overflow-x: hidden;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
}

.footer__bottom {
    order: 1;
    width: 100%;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0;
}

.footer-copyright {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0;
    margin-bottom: 0.28rem;
}

.footer-trademark {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 4px;
    line-height: 1.5;
    letter-spacing: 0;
    white-space: nowrap;
    width: max-content;
}

@media (max-width: 1100px) {
    .footer-trademark {
        white-space: normal;
        width: auto;
        max-width: 720px;
        font-size: 0.6875rem;
    }
}

.footer__links {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__links li {
    display: inline-flex;
    align-items: center;
}

.footer__link {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    padding: 0 0.2rem;
    transition: color 0.15s ease;
    letter-spacing: 0;
    line-height: 1.6;
    white-space: nowrap;
}

.footer__link:hover {
    color: #f9c947;
    text-decoration: underline;
}

.footer__sep {
    font-size: 0.75rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

@media (max-width: 768px) {
    .footer {
        padding: 1.25rem 1rem;
    }

    .footer-trademark {
        font-size: 0.6875rem;
    }

    .footer__link {
        font-size: 0.6875rem;
        padding: 0.125rem 0.375rem;
    }
}

/*
 * Global add-ons
 */
.sub-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
    display: none;
}

@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 51px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block;
        padding: 20px;
        overflow-x: hidden;
        overflow-y: auto;
        /* Scrollable contents if viewport is shorter than content. */
        background-color: #f5f5f5;
        border-right: 1px solid #eee;
    }
}

/* Sidebar navigation */
.nav-sidebar {
    margin-right: -21px;
    /* 20px padding + 1px border */
    margin-bottom: 20px;
    margin-left: -20px;
}

.nav-sidebar > li > a {
    padding-right: 20px;
    padding-left: 20px;
}

.sideoverflow {
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}

.side-abbr {
    border-bottom: none !important;
    cursor: inherit !important;
    text-decoration: none !important;
}

.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
    color: var(--theme-color);
    background-color: var(--accent-color);
}

.nav > li > a:focus,
.nav > li > a:hover {
    background-color: #eee;
}

.nav-sidebar > li > a > abbr {
    text-decoration: none;
}

.nav-sidebar > li > a:focus::before,
.nav-sidebar > li > a:hover::before {
    content: " ";
    display: block;
    position: absolute;
    height: 100%;
    width: 4px;
    background-color: var(--accent-color);
    inset: 0 0 0 98%;
}

/*
 * Main content
 */
.main {
    padding: 20px;
    height: calc(100vh - 50px);
    overflow-y: auto;
    position: relative;
}

@media (min-width: 768px) {
    .main {
        padding-right: 40px;
        padding-left: 40px;
    }
}

.main .page-header {
    margin-top: 0;
}

/* Navbar logo */
.navbar-brand img {
    height: 24px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.footer > .container {
    padding-top: 20px;
    text-align: center;
}

/*
 * Row Links
 */
.table.rowlink td:not(.rowlink-skip),
.table .rowlink td:not(.rowlink-skip) {
    cursor: pointer;
}

.table.rowlink td:not(.rowlink-skip) a,
.table .rowlink td:not(.rowlink-skip) a {
    font: inherit;
    color: inherit;
    text-decoration: inherit;
}

.multi-row-description {
    border-left: 1px solid #DDD;
}

pre {
    max-height: 40em;
}

/* shift the anchors to accommodate fixed navbar. See https://github.com/twbs/bootstrap/issues/1768#issuecomment-46519033 */
*[id]:before {
    display: block;
    content: " ";
    margin-top: -70px;
    height: 70px;
    visibility: hidden;
}

/* ---- Navbar styling ---- */
.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-form {
    border-color: var(--theme-color, #101010);
}

.navbar-inverse {
    background-color: var(--theme-color, #222);
    border-color: var(--theme-color, #080808);
}

.navbar-inverse .navbar-nav > li > a {
    color: #ffffff;
}

.navbar-inverse .navbar-brand {
    color: #ffffff;
}

.navbar-inverse .navbar-brand:focus,
.navbar-inverse .navbar-brand:hover {
    color: #fff;
}

/* ══ APIDocDescription styles scoped to .page-header ══ */
:root {
  --primary: #191f5e;
  --primary-light: #52a1ff;
  --accent-teal: #13eac1;
  --accent-purple: #6e33ff;
  --accent-yellow: #f1cb61;
  --bg: #f4f6fe;
  --surface: #ffffff;
  --font-headline: 'Figtree', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --text: #191f5e;
  --text-secondary: #52a1ff;
  --border: #babccf;
  --code-bg: #e1ecff;
  --pre-bg: #000532;
  --pre-text: #f4f6fe;
}

.page-header {
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.7;
  color: var(--text);
  box-sizing: border-box;
}

.page-header *, .page-header *::before, .page-header *::after {
  box-sizing: border-box;
}

.page-header h1 {
  font-family: var(--font-headline), sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 3px solid var(--accent-teal);
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-header h2 {
  font-family: var(--font-headline), sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-header h2 .heading-icon {
  width: 24px;
  height: 20px;
  flex-shrink: 0;
}

.page-header h3 {
  font-family: var(--font-headline), sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-purple);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  margin-bottom: 1rem;
  color: var(--text);
}

.page-header a {
  color: var(--primary-light);
  text-decoration: none;
}

.page-header a:hover {
  text-decoration: underline;
  color: var(--primary);
}

.page-header code {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.875em;
  background: var(--code-bg);
  color: var(--accent-purple);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.page-header pre {
  background: var(--pre-bg);
  color: var(--pre-text);
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 1rem 0;
  border: 1px solid rgba(25, 31, 94, 0.3);
  box-shadow: 0 2px 8px rgba(0,5,50,0.15);
}

.page-header pre code {
  background: none;
  color: inherit;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: inherit;
}

/* Override Google Code Prettify — its light-theme colors are unreadable
   on our dark pre background */
.page-header pre.prettyprint,
.page-header pre.prettyprint span,
.page-header pre.prettyprint code,
.page-header pre.prettyprint code span {
  color: var(--pre-text);
  background: var(--pre-bg);
  border: none;
  box-shadow: none;
}

.page-header ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-header li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.page-header table.datatype-properties {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

.page-header table.datatype-properties caption {
  font-weight: 600;
  font-size: 1.05rem;
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--code-bg);
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}

.page-header table.datatype-properties th {
  background: var(--code-bg);
  font-weight: 600;
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 2px solid var(--border);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary);
}

.page-header table.datatype-properties td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.page-header table.datatype-properties tr:last-child td {
  border-bottom: none;
}

.page-header table.datatype-properties tr:hover td {
  background: var(--code-bg);
}

.page-header .property-name {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9em;
}

.page-header .datatype-reference {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  color: var(--accent-purple);
  font-size: 0.9em;
}

.page-header .property-description {
  color: #3c4176;
  font-size: 0.95em;
}

.page-header b {
  color: var(--text);
  font-weight: 600;
}

.page-header .clickable-row {
  cursor: pointer;
  color: var(--primary-light);
  text-decoration: underline;
  text-decoration-style: dotted;
}

.page-header .clickable-row:hover {
  color: var(--primary);
  text-decoration-style: solid;
}
    background-color: transparent;
    text-shadow: rgba(255, 255, 255, 0.87) 0px 0px 27px;
}

.navbar-right > li > a {
    text-decoration: none;
    border-bottom: 4px solid transparent;
}

.navbar-right > li > a:hover {
    border-bottom: 4px solid var(--accent-color);
}

/* ---- Heading accent icon ---- */
.reachable::before {
    content: "";
    display: inline-block;
    background: var(--logo-accent-color);
    aspect-ratio: 0.65;
    margin-right: .7em;
    transform: skew(-30deg);
    transform-origin: bottom;
    height: 1cap;
}

/* ---- Code styling ---- */
code.clickable-row:hover {
    background-color: #f4e7ea;
    cursor: pointer;
}

code.clickable-row {
    background-color: #f9f2f4;
    color: #c7254e;
    cursor: pointer;
}

code {
    color: #6E33FF;
    background-color: #f6f4fc;
}
