/* Help Center and Admin Manual (docs pages). Loaded on the main site and in Admin. */

/* ---------- Article text ---------- */
.ce-doc-body { font-size: 16px; line-height: 1.75; color: #2c3e50; max-width: 760px; }
.ce-doc-body h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; color: #1f2d3d; scroll-margin-top: 110px; position: relative; }
.ce-doc-body h3 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; color: #1f2d3d; scroll-margin-top: 110px; position: relative; }
.ce-doc-body h2:first-child { margin-top: 8px; }
.ce-doc-anchor { position: absolute; left: -22px; color: #c4cbd3; opacity: 0; text-decoration: none !important; font-weight: 400; transition: opacity .15s; }
.ce-doc-body h2:hover .ce-doc-anchor, .ce-doc-body h3:hover .ce-doc-anchor { opacity: 1; }
.ce-doc-body p { margin: 0 0 14px; }
.ce-doc-body a { color: #d96f10; text-decoration: underline; text-underline-offset: 2px; }
.ce-doc-body ul, .ce-doc-body ol { margin: 0 0 16px; padding-left: 24px; }
.ce-doc-body li { margin-bottom: 6px; }
.ce-doc-body li > ul { margin: 6px 0 0; }
.ce-doc-body code { background: #f3f5f8; border: 1px solid #e6e9ee; border-radius: 5px; padding: 1px 6px; font-size: 14px; color: #c0392b; }
.ce-doc-body hr { border: 0; border-top: 1px solid #e6e9ee; margin: 28px 0; }
.ce-doc-body strong { color: #1f2d3d; }

/* Numbered steps: round orange numbers */
.ce-doc-steps { list-style: none; counter-reset: step; padding-left: 0 !important; }
.ce-doc-steps > li { counter-increment: step; position: relative; padding-left: 42px; margin-bottom: 12px; min-height: 28px; }
.ce-doc-steps > li::before {
    content: counter(step); position: absolute; left: 0; top: 1px;
    width: 28px; height: 28px; border-radius: 50%;
    background: #fff3e6; color: #d96f10; border: 1px solid #f9cfa3;
    font-weight: 700; font-size: 14px; line-height: 26px; text-align: center;
}

/* Inline "button" that looks like the real one on the site */
.ce-doc-btn {
    display: inline-block; padding: 1px 10px; border-radius: 6px;
    background: #fff; border: 1px solid #d5dbe2; box-shadow: 0 1px 0 #d5dbe2;
    font-size: 14px; font-weight: 600; color: #1f2d3d; white-space: nowrap; line-height: 1.7;
}

/* Tip / Good to know / Be careful boxes */
.ce-callout { border-radius: 10px; padding: 14px 16px 14px 48px; margin: 18px 0; position: relative; border: 1px solid; }
.ce-callout p { margin: 0; }
.ce-callout__label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.ce-callout::before { font-family: FontAwesome, "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 17px; top: 14px; font-size: 18px; }
.ce-callout--tip { background: #eefaf3; border-color: #bfe8cf; }
.ce-callout--tip .ce-callout__label, .ce-callout--tip::before { color: #1e8449; }
.ce-callout--tip::before { content: "\f0eb"; }
.ce-callout--note { background: #eef5fd; border-color: #c6dcf5; }
.ce-callout--note .ce-callout__label, .ce-callout--note::before { color: #2471a3; }
.ce-callout--note::before { content: "\f05a"; }
.ce-callout--warning { background: #fff7e8; border-color: #f6d79b; }
.ce-callout--warning .ce-callout__label, .ce-callout--warning::before { color: #b9770e; }
.ce-callout--warning::before { content: "\f071"; }

/* Tables scroll sideways on phones instead of squashing */
.ce-doc-table-wrap { overflow-x: auto; margin: 0 0 18px; }
.ce-doc-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 18px; display: block; overflow-x: auto; }
.ce-doc-table th, .ce-doc-table td { border: 1px solid #e6e9ee; padding: 9px 12px; text-align: left; vertical-align: top; }
.ce-doc-table th { background: #f6f8fa; font-weight: 700; color: #1f2d3d; white-space: nowrap; }
.ce-doc-table tr:nth-child(even) td { background: #fbfcfd; }
@media (min-width: 768px) { .ce-doc-table { display: table; } }

/* ---------- Help home ---------- */
.ce-docs-hero { background: linear-gradient(135deg, #1f2d3d 0%, #34495e 100%); color: #fff; padding: 56px 0 48px; text-align: center; }
.ce-docs-hero h1 { color: #fff; font-size: 36px; font-weight: 700; margin: 0 0 8px; }
.ce-docs-hero p { color: rgba(255,255,255,.8); font-size: 17px; margin: 0 0 24px; }
.ce-docs-hero__search { display: flex; gap: 8px; max-width: 620px; margin: 0 auto; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.ce-docs-hero__search input { flex: 1; border: 0; outline: 0; padding: 10px 12px; font-size: 16px; color: #2c3e50; min-width: 0; border-radius: 8px; }
.ce-docs-hero__search button { flex-shrink: 0; }

.ce-docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.ce-docs-card { background: #fff; border: 1px solid #e6e9ee; border-radius: 14px; padding: 22px 22px 14px; transition: box-shadow .2s, transform .2s; }
.ce-docs-card:hover { box-shadow: 0 10px 28px rgba(31,45,61,.08); transform: translateY(-2px); }
.ce-docs-card h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; color: #1f2d3d; display: flex; align-items: center; gap: 10px; }
.ce-docs-card h2 .fa { width: 34px; height: 34px; border-radius: 9px; background: #fff3e6; color: #f38321; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.ce-docs-card ul { list-style: none; padding: 0; margin: 0; }
.ce-docs-card li a { display: block; padding: 7px 0; color: #2c3e50; border-top: 1px solid #f1f3f6; font-size: 15px; }
.ce-docs-card li:first-child a { border-top: 0; }
.ce-docs-card li a:hover { color: #d96f10; text-decoration: none; padding-left: 4px; transition: padding .15s; }

.ce-docs-results { max-width: 760px; }
.ce-docs-result { display: block; padding: 16px 18px; border: 1px solid #e6e9ee; border-radius: 12px; margin-bottom: 12px; color: #2c3e50; background: #fff; }
.ce-docs-result:hover { border-color: #f9cfa3; text-decoration: none; color: #2c3e50; box-shadow: 0 6px 18px rgba(31,45,61,.06); }
.ce-docs-result strong { display: block; font-size: 17px; color: #1f2d3d; margin: 2px 0 4px; }
.ce-docs-result__sec { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #d96f10; font-weight: 700; }

.ce-docs-contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding: 18px 20px; border-radius: 12px; background: #f6f8fa; border: 1px solid #e6e9ee; }

/* ---------- Article page: three columns ---------- */
.ce-docs { background: #fff; padding: 28px 0 56px; }
.ce-docs__wrap::before, .ce-docs__wrap::after { content: none !important; display: none !important; }
.ce-docs__wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 40px; align-items: start; }
.ce-docs__nav, .ce-docs__toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; }
.ce-docs__navtoggle > summary { display: none; }
.ce-docs__main h1 { font-size: 32px; font-weight: 700; color: #1f2d3d; margin: 4px 0 8px; }
.ce-docs__lead { font-size: 18px; color: #7a8794; margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid #e6e9ee; }
.ce-docs__crumbs { font-size: 14px; color: #7a8794; margin: 0; }
.ce-docs__crumbs a { color: #d96f10; }

.ce-docs-search { position: relative; margin-bottom: 18px; }
.ce-docs-search .fa { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9aa5b1; }
.ce-docs-search input { width: 100%; padding: 9px 12px 9px 34px; border: 1px solid #e6e9ee; border-radius: 9px; font-size: 14px; background: #f6f8fa; }
.ce-docs-search input:focus { outline: 0; border-color: #f38321; background: #fff; }
.ce-docs-nav__group { margin-bottom: 18px; }
.ce-docs-nav__title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #7a8794; margin: 0 0 6px; }
.ce-docs-nav ul, .ce-docs__toc ul { list-style: none; padding: 0; margin: 0; }
.ce-docs-nav li a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 7px; font-size: 14px; color: #2c3e50; line-height: 1.4; }
.ce-docs-nav li a:hover { background: #f6f8fa; text-decoration: none; color: #1f2d3d; }
.ce-docs-nav li a.is-active { background: #fff3e6; color: #d96f10; font-weight: 600; }

.ce-docs__toc li a { display: block; padding: 4px 0 4px 12px; font-size: 13px; color: #7a8794; border-left: 2px solid #e6e9ee; line-height: 1.4; }
.ce-docs__toc li.ce-docs__toc--3 a { padding-left: 24px; }
.ce-docs__toc li a:hover { color: #1f2d3d; text-decoration: none; }
.ce-docs__toc li a.is-active { color: #d96f10; border-left-color: #f38321; font-weight: 600; }

.ce-docs__pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; max-width: 760px; }
.ce-docs__pg { display: block; padding: 14px 16px; border: 1px solid #e6e9ee; border-radius: 12px; color: #2c3e50; }
.ce-docs__pg:hover { border-color: #f38321; text-decoration: none; color: #2c3e50; }
.ce-docs__pg span { display: block; font-size: 13px; color: #7a8794; }
.ce-docs__pg strong { color: #1f2d3d; }
.ce-docs__pg--next { text-align: right; grid-column: 2; }
.ce-docs__main .ce-docs-contact { max-width: 760px; }

@media (max-width: 1199px) {
    .ce-docs__wrap { grid-template-columns: 230px minmax(0, 1fr); }
    .ce-docs__toc { display: none; }
}
@media (max-width: 991px) {
    .ce-docs__wrap { grid-template-columns: 1fr; gap: 16px; }
    .ce-docs__nav { position: static; max-height: none; overflow: visible; }
    .ce-docs__navtoggle { border: 1px solid #e6e9ee; border-radius: 12px; padding: 0 14px; }
    .ce-docs__navtoggle > summary { display: block; padding: 12px 0; font-weight: 700; cursor: pointer; color: #1f2d3d; }
    .ce-docs__navtoggle[open] > summary { border-bottom: 1px solid #e6e9ee; margin-bottom: 12px; }
    .ce-docs__main h1 { font-size: 26px; }
    .ce-docs-hero h1 { font-size: 28px; }
    .ce-doc-anchor { display: none; }
}
@media (max-width: 575px) {
    .ce-docs__pager { grid-template-columns: 1fr; }
    .ce-docs__pg--next { grid-column: 1; }
    .ce-docs-hero__search button span { display: none; }
}

/* ---------- Admin Manual ---------- */
.ce-docs-admin-nav .ce-docs-nav li a.is-active { background: #fff3e6; color: #d96f10; }
.ce-doc-admin .ce-doc-body { max-width: 820px; }

/* The theme greys out paragraphs and table cells: keep guides dark and easy to read */
.ce-doc-body p, .ce-doc-body li, .ce-doc-body td, .ce-callout p { color: #2c3e50 !important; font-size: 16px; line-height: 1.75; }
.ce-doc-body td { font-weight: 400 !important; font-size: 15px; line-height: 1.55; }
.ce-doc-body th { text-transform: none !important; font-size: 15px; color: #1f2d3d !important; }
.ce-docs__lead { color: #7a8794 !important; font-size: 18px !important; }
.ce-docs-card li a, .ce-docs-result span { color: #2c3e50; }
