/*
 * Colors and type here are pulled directly from the real theme's
 * scss/common/_variables.scss so the static pages match the Drupal site:
 *   $white:          #fff
 *   $gray:           #ccc
 *   $dark-gray:      #59595b
 *   $light-gray:     #f5f5f5   <- sidebar background
 *   $lighter-gray:   #f8f8f8   <- table stripe background
 *   $primary-color:  #003e6a   <- header/footer
 *   $secondary-color:#0093d0   <- links
 *   $title-color:    #404042   <- headings
 *   $font-color:     #59595b   <- body text
 *   $font-primary:   Arial, Helvetica, sans-serif
 *   $font-normal:    16px
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #59595b;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background-color: #003e6a;
    height: 40px;
    padding: 0 30px 0 12px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
}

.header-logo img {
    width: 64px;
    height: 30px;
}

/* Top navigation tabs (inside header) */
.nav-tabs {
    display: inline-block;
    list-style-type: none;
    font-size: 13px;
}

.nav-tabs a {
    color: #fff;
    font-size: 14px;
    opacity: 0.8;
    text-decoration: none;
    margin-right: 20px;
}

.nav-tabs a:last-child {
    margin-right: 0;
}

.nav-tabs a:hover {
    opacity: 1;
    text-decoration: underline;
}

.nav-tabs a.active {
    opacity: 1;
    font-weight: 700;
}

/* Layout */
.content-wrapper {
    flex: 1;
    display: flex;
    align-items: stretch;
    padding-top: 40px;
    margin-bottom: 40px;
}

/* Front page cards (3-box layout) */
body.path-frontpage {
    padding-top: 0;
}

body.path-frontpage .header {
    height: 220px;
    justify-content: center;
    position: relative;
    top: unset;
    left: unset;
    right: unset;
    width: 100%;
}

body.path-frontpage .nav-tabs {
    display: none;
}

body.path-frontpage .header-logo {
    font-size: 50px;
}

body.path-frontpage .header-logo img {
    width: 120px;
    height: auto;
    margin-top: 15px;
}

.box-container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 60px 20px 20px;
}

.box-container .box {
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    height: 300px;
    justify-content: center;
    margin: 0 10px 20px;
    max-width: 400px;
    min-width: 350px;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
}

.box-container .box span {
    display: block;
    color: #59595b;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.box-container .box img,
.box-container .box svg {
    height: auto;
    max-width: 120px;
    width: 115px;
}

@media only screen and (max-width: 893px) {
    .box-container .box {
        min-width: 100%;
        width: 100%;
    }
}

/* Sidebar */
.sidebar {
    background: #f5f5f5;
    color: #59595b;
    font-size: 14px;
    padding: 30px 20px 40px;
    width: 20%;
    flex: 0 0 20%;
}

.sidebar h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 7px 0 15px;
    color: #404042;
}

.sidebar h3:first-child {
    margin-top: 0;
}

.sidebar ul {
    list-style: none;
    margin: 0 0 15px;
    padding: 0;
}

.sidebar li {
    padding-bottom: 8px;
}

.sidebar a {
    color: #59595b;
    text-decoration: none;
    font-size: 13px;
}

.sidebar a.current {
    color: #0093d0;
    font-weight: bold;
}

.sidebar a:hover {
    color: #0093d0;
}

/* Main content */
.main-content {
    padding: 30px 10px 30px 50px;
    width: 80%;
}

.main-content h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #404042;
}

.main-content h2 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #404042;
}

.main-content p {
    margin-bottom: 15px;
}

.main-content ul {
    margin: 15px 0 15px 30px;
}

.main-content li {
    margin-bottom: 8px;
}

/* Table (matches widget-table styling) */
.api-table {
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 14px;
    width: 100%;
}

.api-table thead {
    border-bottom: 2px solid rgb(223, 225, 230);
}

.api-table th {
    color: rgb(94, 108, 132);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    vertical-align: top;
    padding: 4px 0;
    border: none;
}

.api-table td {
    text-align: left;
    padding: 8px 4px;
    border: none;
}

.api-table tr.even {
    background-color: #f8f8f8;
}

.api-table a {
    color: #0093d0;
    text-decoration: none;
}

.api-table a:hover {
    text-decoration: underline;
}

a {
    color: #0093d0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Support sidebar nested menu */
.support-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.support-menu > li {
    padding-bottom: 8px;
}

.support-menu > li > a,
.menu-section {
    color: #59595b;
    text-decoration: none;
    font-size: 13px;
    display: block;
}

.menu-section {
    cursor: default;
}

.support-menu ul {
    list-style: none;
    padding-left: 1em;
    margin: 4px 0 0;
    font-style: italic;
}

.support-menu ul li {
    padding-bottom: 6px;
}

.support-menu ul ul {
    padding-left: 1em;
}

.support-menu a {
    color: #59595b;
    text-decoration: none;
    font-size: 13px;
    font-style: italic;
}

.support-menu > li > a {
    font-style: normal;
}

.support-menu a:hover,
.support-menu a.current {
    color: #0093d0;
}

.support-menu a.current {
    font-weight: bold;
}

/* Footer */
.footer {
    height: 40px;
    background-color: #003e6a;
    color: #fff;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
}

/* Swagger UI custom styles */
#swagger-ui {
    margin-top: 30px;
}
