/* JAMS Support Centre - Custom Help Scout StyleSheet */
/* Color palette derived from the JAMS logo (gold checkmark + charcoal wordmark) */

:root {
    --jams-charcoal: #232019;       /* headings, primary text, wordmark match */
    --jams-gray: #6B6459;           /* body copy, secondary text */
    --jams-amber: #8A6100;          /* links & text accents (AA contrast on white) */
    --jams-gold: #FBC02D;           /* buttons, icons, highlights - from logo */
    --jams-gold-dark: #E8A400;      /* button/link hover state */
    --jams-gold-pale: #FFF8E7;      /* soft hover backgrounds */
    --jams-border: #EDEAE4;         /* dividers, borders */
    --jams-bg: #FDFCF9;             /* page background */
}

@import url('https://fonts.googleapis.com/css?family=Open+Sans:100,200,300,400,400i,500,700');
/* */

body {
    background: var(--jams-bg);
}
/* Home Page Title */

#docsSearch h1 {
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    margin-top: .4em;
    font-family: "Open Sans", sans-serif;
    color: var(--jams-charcoal);
    padding: 10px;
}
.navbar .nav li {
    display: inline-block;
    float: none;
    font-family: "Open Sans", sans-serif;
    font-size: 11px;
    letter-spacing: 0.02em;
    margin-left: 12px;
}
.navbar .nav li:first-child {
    margin-left: 150px;
}
.navbar .nav li a, .navbar .icon-private-w {
    font-size: 11px;
    font-weight: 400;
    color: var(--jams-charcoal);
    transition: color 0.15s ease;
}
.navbar .nav li a:hover, .navbar .nav li a:focus {
    color: var(--jams-amber);
}

/* Header Size */

a.brand > img {
    max-width: 100%;
    vertical-align: middle;
    border: 0;
    height: 60px;
    margin-left: 15px;
    width: auto;
}

.navbar .navbar-inner {
    /* background: #ffffff; */
    height: 60px;
}
.navbar .navbar-inner .container-fluid {
    padding: 0;
    height: 60px;
}

/* Force Bootstrap's collapsible nav container to always stay expanded,
   so all 8 category links reliably render rather than collapsing. */
.nav-collapse.collapse {
    height: auto !important;
    overflow: visible !important;
    display: block !important;
}

/* Force every individual category link visible by ID - overrides any
   width-based overflow behaviour that could hide items independently
   of the collapse container above. */
#getting-started,
#editorial,
#production,
#publication,
#reporting,
#role-guides,
#technical-documentation,
#troubleshooting {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
}

.navbar .brand {
    float: left;
    display: block;
    padding: 15px 10px;
    margin-left: -10px;
    margin-top: -15px;
    margin-bottom: -15px;
    font-size: 20px;
    font-weight: 200;
    color: var(--jams-gray);
    text-shadow: 0 1px 0 #fff;
}
/* Home Page Search Bar Background */

#docsSearch {
    background: #ffffff;
    border-top: 1px solid var(--jams-border);
    margin-bottom: 3em;
    padding: 1.5em 0;
}
/* Search Input Box */

input.search-query {
    padding-right: 14px;
    padding-right: 4px \9;
    padding-left: 14px;
    padding-left: 4px \9;
    margin-bottom: 0;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    border: 1px solid var(--jams-border);
    font-family: "Open Sans",
    sans-serif;
    font-weight: 100;
    letter-spacing: 1px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input.search-query:focus {
    outline: none;
    border-color: var(--jams-gold-dark);
    box-shadow: 0 0 0 3px rgba(251, 192, 45, 0.35);
}
/* Home Page Category Title*/

.category-list h3 {
    color: var(--jams-charcoal);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3em;
    font-family: "Open Sans", sans-serif;
}

/* Category Styles */

.category-list .category p {
    color: var(--jams-gray);
    font-family: "Open Sans", sans-serif;
    font-weight: 100;
    font-size: 15px;
    letter-spacing: 0.25px;
}
.category-list .category {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(35, 32, 25, 0.06);
    box-sizing: border-box;
    min-height: 100px;
    padding: 30px 20px 15px;
    position: relative;
    width: 31.5%;
    border-radius: 10px;
    border: 1px solid var(--jams-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.category-list .category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(35, 32, 25, 0.1);
}
.category-list .category:hover {
    text-decoration: none;
    background: var(--jams-gold-pale);
}



.collection-category h2 {
    font-weight: 500;
    margin: 0 0 20px;
    text-align: center;
    padding-left: 0%;
    font-family: "Open Sans", sans-serif;
    /* text-transform: uppercase; */
    color: var(--jams-gray);
    font-size: 22px;
    letter-spacing: 1px;
}

.collection-category h2 a {
    color: var(--jams-charcoal);
}

.collection-category .category-list {
    margin: 0 0 4em;
    text-align: center;
}



/* Home Page Link Style */

#serp-dd .result a, #serp-dd .result>li.active, #full-Article strong a, .collection a, .contentWrapper a, .most-pop-articles .popArticles a, .most-pop-articles .popArticles a span, .category-list .category .article-count, .category-list .category .article-count, .contentWrapper a {
    font-weight: 500;
    letter-spacing: .25px;
    color: var(--jams-amber);
    margin-top: 15px;
    text-transform: capitalize;
    text-decoration: none;
    font-family: "Open Sans",
    sans-serif;
    font-weight: 500;
}
#serp-dd .result a:hover, #serp-dd .result>li.active, #full-Article strong a, .collection a, .contentWrapper a, .most-pop-articles .popArticles a, .most-pop-articles .popArticles a:hover span, .category-list .category .article-count, .category-list .category:hover .article-count, .contentWrapper a {
    font-weight: 500;
    letter-spacing: .25px;
    color: var(--jams-gold-dark);
    margin-top: 15px;
    text-transform: capitalize;
    /* text-decoration: underline; */
    font-family: "Open Sans",
    sans-serif;
    font-weight: 500;
}
/* Home Page Search Button */

#searchBar button {
    color: var(--jams-charcoal);
    text-shadow: 0 0px 0px rgba(255,255,255,.0);
    background: var(--jams-gold);
    border-radius: 0 5px 5px 0;
    border: 1px solid var(--jams-gold-dark);
    font-size: 18px;
    padding: 0 1.5em;
    height: 50px;
    position: absolute;
}
#searchBar button:hover {
    background: var(--jams-gold-dark);
    text-shadow: 0 0px 0px rgba(255,255,255,.0);
    border: 1px solid var(--jams-gold-dark);
}
input, button, select, textarea {
    font-family: "Open Sans",
    sans-serif,
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
}


/* Category Cards */
/* Icons removed - cards use color and typography only, no per-category images. */



/* Side Bar Styles */

#sidebar .nav-list a {
    display: inline-block;
    color: var(--jams-amber);
    font-size: 14px;
    padding: 6px 15px 6px 0;
    line-height: 20px;
    margin-left: 0;
    font-family: "Open Sans",
    sans-serif;
    font-weight: 300;
}
#sidebar .nav-list .active a, #sidebar .nav-list .active a:hover, #sidebar .nav-list .active a:focus {
    font-weight: 500;
    color: var(--jams-charcoal);
    background: 0 0;
    text-shadow: none;
    text-decoration: underline;
}
#sidebar h3 {
    text-transform: uppercase;
    font-size: 16px;
    color: var(--jams-gray);
    font-weight: 400;
    margin-bottom: 4px;
    font-family: "Open Sans",
    sans-serif;
    letter-spacing: 2px;
}
/* Article Styles */

#main-content {
    background: none;
    float: right;
    margin-bottom: 2em;
    padding: 32px 0 0 28px;
}

#fullArticle img {
    display: block;
    margin: 1em 0 2em;
    padding: 4px;
    border-radius: 4px;
    box-sizing: border-box;
}

#fullArticle .title, .contentWrapper h1 {
    margin: 0 30px .5em 0;
    font-family: "Open Sans",
    sans-serif;
    color: var(--jams-charcoal);
    font-weight: 700;
}
#fullArticle .printArticle {
    position: absolute;
    right: 46px;
    top: 40px;
}
#fullArticle, #fullArticle p, #fullArticle ul, #fullArticle ol, #fullArticle li, #fullArticle div, #fullArticle blockquote, #fullArticle dd, #fullArticle table {
    color: var(--jams-gray);
    font-family: "Open Sans",
    sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: .01em;
}
#categoryHead .sort select {
    width: 150px;
    height: 24px;
    margin: 0;
    line-height: 24px;
    font-size: 13px;
    color: var(--jams-gray);
    font-family: "Open Sans",
    sans-serif;
    font-weight: 300;
}
/* Style this one if you want bolded article text to have a different color */

#fullArticle strong {
    color: var(--jams-charcoal);
}
#fullArticle h2 {
    font-size: 24px;
    font-family: "Open Sans",
    sans-serif;
    font-weight: 400;
    color: var(--jams-charcoal);
}
#fullArticle h3 {
    font-size: 20px;
    font-family: "Open Sans",
    sans-serif;
    font-weight: 700;
    color: var(--jams-charcoal);
}
#fullArticle h4 {
    font-size: 16px;
    font-family: "Open Sans",
    sans-serif;
    font-weight: 300;
    color: var(--jams-gray);
    font-style: italic;
}
.contentWrapper p {
    margin-top: -4px;
    word-wrap: break-word;
    font-family: "Open Sans",
    sans-serif;
    color: var(--jams-gray);
    font-weight: 300;
    font-size: 16px;
    letter-spacing: .01em;
}

/* Article Footers */

.articleFoot p, .articleFoot time {
    color: var(--jams-gray);
    display: inline-block;
    font-family: "Open Sans",
    sans-serif;
    font-weight: 300;
    font-style: italic;
}

/* Page Footers */

footer p a {
    color: var(--jams-gray);
    font-family: "Open Sans",
    sans-serif;
    font-weight: 300;
}


/* Contact Modal */

#contactModal h2, .abuse h2 {
    background: #fff;
    margin: 0;
    padding: 11px 0 10px 18px;
    font-size: 22px;
    border-bottom: 1px solid var(--jams-border);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    font-family: "Open Sans",
    sans-serif;
    color: var(--jams-charcoal);
    font-weight: 300;
}
#contactModal .control-label {
    width: 110px;
    font-family: "Open Sans",
    sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--jams-gray);
}

.btn {
    color: var(--jams-charcoal);
    text-shadow: 0 0px 0px rgba(255,255,255,.0);
    background: var(--jams-gold);
    border-radius: 8px;
    border: 1px solid var(--jams-gold-dark);
    font-size: 14px;
    font-weight: 500;
    padding: .5em 1em;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    /* height: 50px; */
}

.btn:hover, .btn:focus, .btn:active, .btn.active, .btn.disabled, .btn[disabled] {
    color: var(--jams-charcoal);
    text-shadow: 0 0px 0px rgba(255,255,255,.0);
    background: var(--jams-gold-pale);
  border: 1px solid var(--jams-border);
}

#search-query .btn:hover {
    color: var(--jams-charcoal);
    text-shadow: 0 0px 0px rgba(255,255,255,.0);
    background: var(--jams-gold-pale);
    border-radius: 5px;
    border: 1px solid var(--jams-border);
    font-size: 18px;
    padding: 0 1.5em;
    height: 50px;
}

.category-list {
    text-align: center;
}

/* Fix for making homepage category gallery go smoothly from 3 to 2 to 1 column */

@media screen and (max-width: 1105px) {
    section.category-list .category {
        width: 48.2%;
    }
}
@media screen and (max-width: 760px) {
    section.category-list .category {
        box-sizing: border-box;
        margin: 0 0 20px;
        padding: 30px 20px 15px;
        width: 100%;
    }
}
/* RESPONSIVE */

@media (max-width: 768px) {
    .navbar .btn-navbar {
        margin-top: 16px;
        right: -10px;
    }
    .related {
        padding: 30px 25px 25px;
    }
    .related ul {
        margin-left: 0;
    }
    .related h3 {
        padding-left: 0;
    }
    .related ul>li a {
        margin-left: 0;
    }
}
@media (max-width: 480px) {
    #searchBar button {
        color: transparent;
        text-shadow: 0;
        background: transparent;
        border-radius: 0 5px 5px 0;
        border: 0;
        font-size: 18px;
        padding: 0 1.5em;
        height: 50px;
        position: absolute;
    }
    #searchBar button .icon-search {
        display: block;
        text-shadow: none;
        margin-top: 15px;
    }
    #searchBar button:hover .icon-search:hover {
        display: block;
        text-shadow: none;
        margin-top: 15px;
        background-color: transparent;
    }
}
@media (max-width: 480px) {
    #fullArticle .title, .contentWrapper h1 {
        font-size: 24px;
    }
    #fullArticle h2 {
        font-size: 20px;
    }
}


/* Collection Titles  */
.collection-category h2 a {
    color: var(--jams-charcoal);
}

.collection-category h2 {
    font-weight: 400;
    margin: 0 0 20px;
    padding-left: .65%;
    font-family: "Open Sans",
    sans-serif;
    text-align: center;
}


/* ============================================= */
/* Modernisation & Accessibility Enhancements     */
/* ============================================= */

/* Visible keyboard focus states - accessibility requirement,
   the original theme had no custom focus indicator at all */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
.category:focus-visible {
    outline: 3px solid var(--jams-gold-dark);
    outline-offset: 2px;
}

/* Branded text selection color */
::selection {
    background: var(--jams-gold);
    color: var(--jams-charcoal);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    .category-list .category:hover {
        transform: none;
    }
}

/* Smooth in-page anchor scrolling (e.g. jumping to a heading) */
html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Article readability: constrain line length and improve line-height
   so long-form documentation is easier to read */
.contentWrapper, #fullArticle {
    max-width: 720px;
    line-height: 1.7;
}
.contentWrapper h1, .contentWrapper h2, .contentWrapper h3 {
    line-height: 1.3;
    scroll-margin-top: 90px;
}

/* "X articles" counts as a soft pill badge instead of plain text */
.category-list .category .article-count {
    display: inline-block;
    background: var(--jams-gold-pale);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    margin-top: 6px;
}

/* Footer polish */
footer {
    border-top: 1px solid var(--jams-border);
    margin-top: 3em;
    padding-top: 1.5em;
}
footer p a:hover {
    color: var(--jams-amber);
}
