/* ==========================================================================
   ORGanizer for Salesforce — site design system
   Self-contained: replaces bootstrap.min.css / freelancer.css / site.css.
   Keeps the Bootstrap 3 class contract alive for the one page deliberately
   left unrestyled (manageLicense.html) and for the change log, whose entries
   are a dump of a Salesforce page. No Bootstrap JavaScript is loaded any
   more, so the classes its plugins used to toggle are gone with it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
    /* Palette — light */
    --bg:               #f7f8fa;
    --bg-alt:           #eef1f6;
    --surface:          #ffffff;
    --surface-2:        #f1f3f7;
    --surface-3:        #e7ebf2;
    --border:           #e2e6ee;
    --border-strong:    #ccd4e2;

    --text:             #1b2333;
    --text-2:           #4a5568;
    --text-3:           #6b7688;
    --text-inverse:     #ffffff;

    --accent:           #1b6ec2;
    --accent-hover:     #14568f;
    --accent-soft:      #e8f1fb;
    --accent-border:    #b9d6f2;

    --success:          #16794a;
    --success-soft:     #e6f5ed;
    --success-border:   #b3ddc7;

    --warning:          #8a5a00;
    --warning-soft:     #fdf3e0;
    --warning-border:   #efd9a8;

    --danger:           #b3302a;
    --danger-soft:      #fdecea;
    --danger-border:    #f3c4c0;

    --purple:           #6c3fb5;
    --purple-soft:      #f1ebfc;
    --purple-border:    #d7c6f4;

    /* Typography */
    --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-brand: "Montserrat", var(--font-sans);
    --font-mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --fs-base:    17px;
    --lh-base:    1.7;
    --measure:    72ch;

    /* Space & shape */
    --radius-sm:  4px;
    --radius:     8px;
    --radius-lg:  14px;
    --shadow-sm:  0 1px 2px rgba(16, 24, 40, .05);
    --shadow:     0 2px 8px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-lg:  0 12px 32px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .05);

    --header-h:   58px;
    --container:  1140px;
    --container-wide: 1420px;

    color-scheme: light;
}

/* Palette — dark. Applied when the visitor asked for dark, or when the
   system prefers dark and the visitor has not asked for light. */
:root[data-theme="dark"] {
    --bg:               #0f1320;
    --bg-alt:           #131828;
    --surface:          #171c2b;
    --surface-2:        #1e2435;
    --surface-3:        #262e42;
    --border:           #2a3245;
    --border-strong:    #3a4459;

    --text:             #e6e9f0;
    --text-2:           #aab3c6;
    --text-3:           #8a94a8;
    --text-inverse:     #0f1320;

    --accent:           #6aa9f0;
    --accent-hover:     #92c2f7;
    --accent-soft:      #14243c;
    --accent-border:    #29456d;

    --success:          #58c795;
    --success-soft:     #10281e;
    --success-border:   #23503c;

    --warning:          #e0b355;
    --warning-soft:     #2a2113;
    --warning-border:   #55431f;

    --danger:           #f08a82;
    --danger-soft:      #2d1715;
    --danger-border:    #5c2b27;

    --purple:           #b192ee;
    --purple-soft:      #201a33;
    --purple-border:    #3d3163;

    --shadow-sm:  0 1px 2px rgba(0, 0, 0, .4);
    --shadow:     0 2px 8px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg:  0 12px 32px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .35);

    color-scheme: dark;
}
/* Same palette when the browser asks for dark and the visitor has not
   explicitly chosen light. Generated from the block above — keep in sync. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
    --bg:               #0f1320;
    --bg-alt:           #131828;
    --surface:          #171c2b;
    --surface-2:        #1e2435;
    --surface-3:        #262e42;
    --border:           #2a3245;
    --border-strong:    #3a4459;

    --text:             #e6e9f0;
    --text-2:           #aab3c6;
    --text-3:           #8a94a8;
    --text-inverse:     #0f1320;

    --accent:           #6aa9f0;
    --accent-hover:     #92c2f7;
    --accent-soft:      #14243c;
    --accent-border:    #29456d;

    --success:          #58c795;
    --success-soft:     #10281e;
    --success-border:   #23503c;

    --warning:          #e0b355;
    --warning-soft:     #2a2113;
    --warning-border:   #55431f;

    --danger:           #f08a82;
    --danger-soft:      #2d1715;
    --danger-border:    #5c2b27;

    --purple:           #b192ee;
    --purple-soft:      #201a33;
    --purple-border:    #3d3163;

    --shadow-sm:  0 1px 2px rgba(0, 0, 0, .4);
    --shadow:     0 2px 8px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg:  0 12px 32px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .35);

    color-scheme: dark;
}
}


/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; border: 0; vertical-align: middle; }

hr {
    height: 1px;
    margin: 2.5rem 0;
    border: 0;
    background: var(--border);
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
    text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
    transition: color .12s ease, text-decoration-color .12s ease;
}
a:hover, a:focus {
    color: var(--accent-hover);
    text-decoration-color: currentColor;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

::selection { background: var(--accent-soft); color: var(--text); }

/* Anything with an id can be an anchor target: keep it clear of the header. */
[id] { scroll-margin-top: calc(var(--header-h) + 1.25rem); }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .6em;
    color: var(--text);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.011em;
    text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.85rem); letter-spacing: -.022em; }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2rem); letter-spacing: -.018em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
h5 { font-size: .97rem; }
h6 { font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }

p  { margin: 0 0 1.1rem; }

small, .small { font-size: .84em; }
strong, b { font-weight: 650; color: var(--text); }
em, i { font-style: italic; }
sup, sub { font-size: .72em; line-height: 0; }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.6em; }
li { margin-bottom: .4rem; }
li > ul, li > ol { margin-top: .4rem; margin-bottom: .4rem; }
ul ul { list-style-type: circle; }

dl { margin: 0 0 1.1rem; }
dt { font-weight: 650; }
dd { margin: 0 0 .7rem; color: var(--text-2); }

blockquote {
    margin: 1.5rem 0;
    padding: .2rem 0 .2rem 1.15rem;
    border-left: 3px solid var(--accent-border);
    color: var(--text-2);
    font-style: normal;
}
blockquote > :last-child { margin-bottom: 0; }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: .88em; }

code {
    padding: .14em .38em;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    white-space: nowrap;
}

pre {
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    line-height: 1.6;
    tab-size: 2;
}
pre code {
    padding: 0;
    border: 0;
    background: none;
    white-space: pre;
    font-size: .95em;
}

/* Keycaps. `.shortcut` is the legacy class used throughout the FAQ. */
kbd, .shortcut, .kbd {
    display: inline-block;
    padding: .12em .5em;
    border: 1px solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: .8em;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    vertical-align: baseline;
}

/* Lead paragraph */
.lead {
    margin-bottom: 1.4rem;
    color: var(--text-2);
    font-size: 1.14em;
    line-height: 1.6;
}

.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.text-justify { text-align: justify; }
.text-nowrap  { white-space: nowrap; }
.text-uppercase { text-transform: uppercase; }

.text-muted   { color: var(--text-3); }
.text-primary { color: var(--accent); }
.text-info    { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }
.text-default { color: var(--text); }

.bg-surface   { background: var(--surface); }

/* --------------------------------------------------------------------------
   4. Layout — container, Bootstrap 3 grid contract, page shells
   -------------------------------------------------------------------------- */

.container, .container-fluid {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}
.container-fluid { max-width: none; }
.container-wide  { max-width: var(--container-wide); }

/* Bootstrap 3 row/col contract, reimplemented on flexbox. Percentage widths
   keep old markup (col-md-9 + col-md-3) laying out as its author intended. */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: -15px;
}
.row::after { content: ""; display: table; clear: both; }

[class*="col-xs-"], [class*="col-sm-"], [class*="col-md-"], [class*="col-lg-"] {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-inline: 15px;
}

.col-xs-1  { width: 8.3333%; }  .col-xs-2  { width: 16.6667%; }
.col-xs-3  { width: 25%; }      .col-xs-4  { width: 33.3333%; }
.col-xs-5  { width: 41.6667%; } .col-xs-6  { width: 50%; }
.col-xs-7  { width: 58.3333%; } .col-xs-8  { width: 66.6667%; }
.col-xs-9  { width: 75%; }      .col-xs-10 { width: 83.3333%; }
.col-xs-11 { width: 91.6667%; } .col-xs-12 { width: 100%; }

@media (min-width: 768px) {
    .col-sm-1  { width: 8.3333%; }  .col-sm-2  { width: 16.6667%; }
    .col-sm-3  { width: 25%; }      .col-sm-4  { width: 33.3333%; }
    .col-sm-5  { width: 41.6667%; } .col-sm-6  { width: 50%; }
    .col-sm-7  { width: 58.3333%; } .col-sm-8  { width: 66.6667%; }
    .col-sm-9  { width: 75%; }      .col-sm-10 { width: 83.3333%; }
    .col-sm-11 { width: 91.6667%; } .col-sm-12 { width: 100%; }
}
@media (min-width: 992px) {
    .col-md-1  { width: 8.3333%; }  .col-md-2  { width: 16.6667%; }
    .col-md-3  { width: 25%; }      .col-md-4  { width: 33.3333%; }
    .col-md-5  { width: 41.6667%; } .col-md-6  { width: 50%; }
    .col-md-7  { width: 58.3333%; } .col-md-8  { width: 66.6667%; }
    .col-md-9  { width: 75%; }      .col-md-10 { width: 83.3333%; }
    .col-md-11 { width: 91.6667%; } .col-md-12 { width: 100%; }
}
@media (min-width: 1200px) {
    .col-lg-1  { width: 8.3333%; }  .col-lg-2  { width: 16.6667%; }
    .col-lg-3  { width: 25%; }      .col-lg-4  { width: 33.3333%; }
    .col-lg-5  { width: 41.6667%; } .col-lg-6  { width: 50%; }
    .col-lg-7  { width: 58.3333%; } .col-lg-8  { width: 66.6667%; }
    .col-lg-9  { width: 75%; }      .col-lg-10 { width: 83.3333%; }
    .col-lg-11 { width: 91.6667%; } .col-lg-12 { width: 100%; }
}

.pull-right   { float: right !important; }
.pull-left    { float: left !important; }
.center-block { display: block; margin-inline: auto; }
.clearfix::after { content: ""; display: table; clear: both; }
.img-responsive, .img-centered { display: block; max-width: 100%; height: auto; }
.img-centered { margin-inline: auto; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }
@media (max-width: 767px)  { .hidden-xs { display: none !important; } }
@media (min-width: 768px)  { .visible-xs { display: none !important; } }
@media (min-width: 992px)  { .visible-sm { display: none !important; } }
@media (max-width: 991px) and (min-width: 768px) { .hidden-sm { display: none !important; } }
@media (min-width: 992px)  { .hidden-md-up { display: none !important; } }

/* ---- The page shell -----------------------------------------------------
   .page is a grid: main column + optional sponsor rail (+ optional docs TOC).
   It replaces the old `row > col-md-9 + col-md-3` scaffolding.            */

.page {
    display: grid;
    gap: 2.5rem 2.5rem;
    align-items: start;
    width: 100%;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding: 2rem 20px 4rem;
    grid-template-columns: minmax(0, 1fr);
}
.page__main { min-width: 0; }
.page__rail { min-width: 0; }

@media (min-width: 1080px) {
    .page { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* Docs layout: sticky table of contents on the left. */
.page--docs { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
    .page--docs {
        grid-template-columns: 232px minmax(0, 1fr);
        gap: 2.5rem 3rem;
    }
    .page--docs .page__rail { grid-column: 1 / -1; }
}
@media (min-width: 1360px) {
    .page--docs { grid-template-columns: 232px minmax(0, 1fr) 300px; }
    .page--docs .page__rail { grid-column: auto; }
}

/* Prose column: cap the measure so long documentation stays readable. */
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.75rem; }
.prose h3 { margin-top: 2.25rem; }
.prose h4 { margin-top: 1.75rem; }
.prose img { border-radius: var(--radius); }
.page--docs .prose { max-width: 76ch; }

/* Vertical rhythm helpers */
.stack-sm > * + * { margin-top: .75rem; }
.stack    > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2.5rem; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* --------------------------------------------------------------------------
   5. Site header / navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) {
    .site-header { background: var(--bg); }
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding: 0 20px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    flex: 0 0 auto;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: -.01em;
    line-height: 1.1;
}
.brand:hover, .brand:focus { color: var(--text); }
.brand img { width: 30px; height: auto; }
.brand__mark { color: var(--accent); }
.brand__tag {
    display: block;
    color: var(--text-3);
    font-family: var(--font-sans);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: .1rem;
    margin-left: auto;
    flex-wrap: wrap;
}
.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .62rem;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: .92rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.site-nav a:hover, .site-nav a:focus {
    background: var(--surface-2);
    color: var(--text);
}
.site-nav a[aria-current="page"] {
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 600;
}
.site-nav img { width: 17px; height: 17px; }
.site-nav__icons { display: inline-flex; gap: .18rem; }

.site-header__actions { display: inline-flex; align-items: center; gap: .35rem; margin-left: .6rem; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-2);
    font-size: .95rem;
    cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.icon-btn:hover, .icon-btn:focus {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--border-strong);
}

.nav-toggle { display: none; }
[data-theme="dark"] .theme-toggle .fa-moon-o,
:root:not([data-theme="dark"]) .theme-toggle .fa-sun-o { display: none; }

@media (max-width: 1023px) {
    .nav-toggle { display: inline-flex; }
    .site-header__actions { margin-left: auto; }
    .site-nav {
        display: none;
        order: 10;
        flex-direction: column;
        align-items: stretch;
        gap: .1rem;
        width: 100%;
        margin: 0 -20px;
        padding: .6rem 20px 1rem;
        border-top: 1px solid var(--border);
        background: var(--bg);
    }
    .site-header__inner { flex-wrap: wrap; }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: .6rem .7rem; font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   6. Page hero
   -------------------------------------------------------------------------- */

.page-head {
    max-width: var(--container-wide);
    margin-inline: auto;
    padding: 2.75rem 20px .5rem;
}
.page-head__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .7rem;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.page-head h1 { margin-bottom: .5rem; }
.page-head__sub {
    max-width: 62ch;
    margin: 0;
    color: var(--text-2);
    font-size: 1.13rem;
    line-height: 1.6;
}
.page-head--center { text-align: center; }
.page-head--center .page-head__sub { margin-inline: auto; }

/* --------------------------------------------------------------------------
   7. Buttons (Bootstrap 3 class contract)
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .52rem 1.05rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .13s ease, border-color .13s ease, color .13s ease, transform .13s ease;
}
.btn:hover, .btn:focus { background: var(--surface-2); color: var(--text); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.disabled, .btn[disabled], fieldset[disabled] .btn { opacity: .55; pointer-events: none; }

.btn-primary, .btn-info {
    border-color: transparent;
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-info:hover, .btn-info:focus {
    background: var(--accent-hover);
    color: #fff;
}
.btn-success { border-color: transparent; background: var(--success); color: #fff; }
.btn-success:hover, .btn-success:focus { background: color-mix(in srgb, var(--success) 85%, #000); color: #fff; }
.btn-warning { border-color: transparent; background: var(--warning); color: #fff; }
.btn-warning:hover, .btn-warning:focus { background: color-mix(in srgb, var(--warning) 85%, #000); color: #fff; }
.btn-danger  { border-color: transparent; background: var(--danger);  color: #fff; }
.btn-danger:hover, .btn-danger:focus { background: color-mix(in srgb, var(--danger) 85%, #000); color: #fff; }
.btn-default { background: var(--surface); }
.btn-link {
    padding-inline: .2rem;
    border-color: transparent;
    background: none;
    color: var(--accent);
    font-weight: 500;
    text-decoration: underline;
}
.btn-link:hover, .btn-link:focus { background: none; color: var(--accent-hover); }

.btn-ghost {
    border-color: var(--border);
    background: transparent;
    color: var(--text-2);
    font-weight: 500;
}
.btn-ghost:hover, .btn-ghost:focus { background: var(--surface-2); color: var(--text); }

.btn-lg { padding: .72rem 1.4rem; font-size: 1.03rem; border-radius: var(--radius); }
.btn-sm { padding: .34rem .75rem; font-size: .86rem; }
.btn-xs { padding: .18rem .55rem; font-size: .8rem; }
.btn-block { display: flex; width: 100%; }
.btn-block + .btn-block { margin-top: .6rem; }

/* Gumroad buy buttons keep their own class in the pricing table. */
.gumroad-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1rem;
    border: 0;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff !important;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
}
.gumroad-button:hover, .gumroad-button:focus { background: var(--accent-hover); text-decoration: none; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    align-items: center;
    margin-bottom: 1.25rem;
}
.btn-row--center { justify-content: center; }

/* Social round buttons (footer) */
.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-2);
    font-size: 1rem;
    text-decoration: none;
}
.btn-social:hover, .btn-social:focus {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   8. Labels, badges, pills
   -------------------------------------------------------------------------- */

.label, .badge, .pill {
    display: inline-block;
    padding: .16em .55em;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: .74em;
    font-weight: 650;
    letter-spacing: .01em;
    line-height: 1.5;
    text-transform: uppercase;
    vertical-align: baseline;
    white-space: nowrap;
}
a.label:hover, a.label:focus, a.badge:hover { text-decoration: none; }
.label-default { background: var(--surface-2); color: var(--text-2); }
.label-primary, .label-info {
    border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent);
}
.label-success { border-color: var(--success-border); background: var(--success-soft); color: var(--success); }
.label-warning { border-color: var(--warning-border); background: var(--warning-soft); color: var(--warning); }
.label-danger  { border-color: var(--danger-border);  background: var(--danger-soft);  color: var(--danger); }
.label-new     { border-color: var(--purple-border);  background: var(--purple-soft);  color: var(--purple); }

/* --------------------------------------------------------------------------
   9. Cards & feature grids
   -------------------------------------------------------------------------- */

.card {
    padding: 1.35rem 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.card > :last-child { margin-bottom: 0; }
.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: .85rem;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.06rem;
}
.card h3, .card h4 { margin-top: 0; margin-bottom: .45rem; font-size: 1.05rem; }
.card p { margin-bottom: 0; color: var(--text-2); font-size: .96rem; }

.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover, .card-link:focus { color: inherit; }
.card-link:hover .card, .card-link:focus .card {
    border-color: var(--accent-border);
    box-shadow: var(--shadow);
}

.grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-bottom: 1.75rem;
    padding: 0;
    list-style: none;
}
.grid > li { margin: 0; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* --------------------------------------------------------------------------
   10. Callouts (alerts) — Bootstrap `.alert` plus a documentation variant
   -------------------------------------------------------------------------- */

.alert, .callout {
    position: relative;
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-left: 3px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: .97rem;
}
.alert > :last-child, .callout > :last-child { margin-bottom: 0; }
.alert > :first-child, .callout > :first-child { margin-top: 0; }

.callout__title {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .4rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.alert-info, .callout--note {
    border-color: var(--accent-border); border-left-color: var(--accent);
    background: var(--accent-soft);
}
.alert-info .callout__title, .callout--note .callout__title { color: var(--accent); }

.alert-success, .callout--tip {
    border-color: var(--success-border); border-left-color: var(--success);
    background: var(--success-soft);
}
.alert-success .callout__title, .callout--tip .callout__title { color: var(--success); }

.alert-warning, .callout--warn {
    border-color: var(--warning-border); border-left-color: var(--warning);
    background: var(--warning-soft);
}
.alert-warning .callout__title, .callout--warn .callout__title { color: var(--warning); }

.alert-danger, .callout--gone {
    border-color: var(--danger-border); border-left-color: var(--danger);
    background: var(--danger-soft);
}
.alert-danger .callout__title, .callout--gone .callout__title { color: var(--danger); }

.callout--new {
    border-color: var(--purple-border); border-left-color: var(--purple);
    background: var(--purple-soft);
}
.callout--new .callout__title { color: var(--purple); }

/* --------------------------------------------------------------------------
   11. Figures & screenshot placeholders
   -------------------------------------------------------------------------- */

.figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.6rem 0;
}
.figure > a { display: block; max-width: 100%; }
.figure img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.figure figcaption, .figure__caption {
    margin-top: .6rem;
    color: var(--text-3);
    font-size: .86rem;
    text-align: center;
}

/* Placeholder for a screenshot that still has to be produced. Deliberately
   visible: it is a to-do, not a decoration. */
.shot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 168px;
    margin: 1.6rem 0;
    padding: 1.6rem 1.25rem;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background: repeating-linear-gradient(
        135deg,
        var(--surface-2) 0 10px,
        var(--surface) 10px 20px
    );
    color: var(--text-3);
    text-align: center;
}
.shot__icon { font-size: 1.7rem; opacity: .65; }
.shot__label {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
}
.shot__desc { max-width: 46ch; margin: 0; font-size: .92rem; color: var(--text-2); }
.shot code { white-space: normal; }

/* --------------------------------------------------------------------------
   12. Tables
   -------------------------------------------------------------------------- */

.table-scroll, .table-responsive { overflow-x: auto; margin-bottom: 1.6rem; }

table { border-collapse: collapse; }

.table {
    width: 100%;
    margin-bottom: 1.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: .95rem;
    border-collapse: separate;
    border-spacing: 0;
}
.table th, .table td {
    padding: .7rem .85rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.table thead th {
    background: var(--surface-2);
    color: var(--text-2);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: bottom;
}
.table tbody tr:last-child > * { border-bottom: 0; }
.table-striped tbody tr:nth-child(odd) { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table-hover tbody tr:hover { background: var(--surface-2); }
.table-condensed th, .table-condensed td { padding: .45rem .6rem; }
.table-bordered th, .table-bordered td { border-right: 1px solid var(--border); }
.table-bordered th:last-child, .table-bordered td:last-child { border-right: 0; }
.table input[type="text"] { width: 100%; }

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */

.form-group { margin-bottom: 1.1rem; }
label { display: inline-block; margin-bottom: .35rem; font-size: .93rem; font-weight: 600; }

.form-control {
    display: block;
    width: 100%;
    padding: .5rem .7rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    line-height: 1.5;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.form-control:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-control[readonly] { background: var(--surface-2); color: var(--text-2); }
.input-sm { padding: .35rem .55rem; font-size: .88rem; }
.input-lg { padding: .65rem .85rem; font-size: 1.02rem; }
.help-block { display: block; margin-top: .3rem; color: var(--text-3); font-size: .85rem; }
.has-warning .form-control { border-color: var(--warning-border); }
.has-error .form-control   { border-color: var(--danger-border); }

@media (min-width: 768px) {
    .form-horizontal .form-group {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        margin-inline: 0;
    }
    .form-horizontal .form-group > label { padding-top: .5rem; margin-bottom: 0; }
}

/* --------------------------------------------------------------------------
   14. Panels, wells, lists — Bootstrap 3 leftovers
   -------------------------------------------------------------------------- */

.panel {
    margin-bottom: 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.panel-heading {
    padding: .8rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: var(--radius) var(--radius) 0 0;
}
.panel-title { margin: 0; font-size: 1rem; font-weight: 650; }
.panel-body { padding: 1.15rem; }
.panel-body > :last-child { margin-bottom: 0; }
.panel-footer { padding: .8rem 1.1rem; border-top: 1px solid var(--border); background: var(--surface-2); }
.panel-primary { border-color: var(--accent-border); }
.panel-primary > .panel-heading { background: var(--accent-soft); color: var(--accent); }

.well {
    padding: 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.list-inline { padding-left: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.list-inline > li { margin: 0; }
.list-unstyled { padding-left: 0; list-style: none; }
.list-unstyled > li { margin-bottom: .3rem; }

/* --------------------------------------------------------------------------
   15. Docs table of contents
   -------------------------------------------------------------------------- */

.docs-toc { min-width: 0; font-size: .9rem; }

@media (min-width: 1000px) {
    .docs-toc {
        position: sticky;
        top: calc(var(--header-h) + 1.25rem);
        max-height: calc(100vh - var(--header-h) - 2.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: .35rem;
    }
    .docs-toc::-webkit-scrollbar { width: 8px; }
    .docs-toc::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
}

.docs-toc__title {
    margin: 0 0 .6rem;
    color: var(--text-3);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.docs-toc ol, .docs-toc ul { margin: 0; padding: 0; list-style: none; }
.docs-toc li { margin: 0; }
.docs-toc a {
    display: block;
    padding: .3rem .6rem;
    border-left: 2px solid var(--border);
    color: var(--text-2);
    text-decoration: none;
    line-height: 1.45;
}
.docs-toc a:hover, .docs-toc a:focus { border-left-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.docs-toc a.is-active {
    border-left-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}
.docs-toc ol ol a, .docs-toc ul ul a { padding-left: 1.4rem; font-size: .86rem; }

/* Small screens: the TOC folds behind a toggle. The default state lives in
   CSS, so the page renders correctly before any script runs. */
.docs-toc__toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    margin-bottom: 1.75rem;
    padding: .65rem .9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}
.docs-toc__toggle::after {
    content: "\f107";
    margin-left: auto;
    font-family: FontAwesome;
    font-weight: 400;
    color: var(--text-3);
}
.docs-toc__toggle[aria-expanded="true"]::after { content: "\f106"; }
.docs-toc__toggle[aria-expanded="true"] { margin-bottom: .8rem; }

.docs-toc__nav { display: none; margin-bottom: 1.75rem; }
.docs-toc__nav.is-open { display: block; }

@media (min-width: 1000px) {
    .docs-toc__toggle { display: none; }
    .docs-toc__nav { display: block; margin-bottom: 0; }
}

/* --------------------------------------------------------------------------
   16. Documentation sections & self-links
   -------------------------------------------------------------------------- */

.doc-section { padding-top: 1rem; }
.doc-section + .doc-section { margin-top: 3.25rem; }
.doc-section > h2:first-child { margin-top: 0; }

.doc-section h2, .doc-section h3 { position: relative; }

.anchor-link {
    margin-left: .4rem;
    color: var(--text-3);
    font-size: .62em;
    text-decoration: none;
    opacity: 0;
    transition: opacity .12s ease;
}
h2:hover > .anchor-link, h3:hover > .anchor-link,
.anchor-link:focus { opacity: 1; }
.anchor-link:hover { color: var(--accent); }

.go-to-top {
    float: right;
    color: var(--text-3);
    font-size: .55em;
    text-decoration: none;
}

/* Definition-style feature list used in the FAQ */
.deflist { margin: 1.25rem 0; }
.deflist > div {
    padding: .85rem 0;
    border-top: 1px solid var(--border);
}
.deflist > div:last-child { border-bottom: 1px solid var(--border); }
.deflist dt, .deflist__term {
    margin-bottom: .2rem;
    font-weight: 650;
}
.deflist dd, .deflist__desc { margin: 0; color: var(--text-2); font-size: .96rem; }

/* Legacy: the old table-of-contents block on faq.html / changelog.html */
.table-of-contents {
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.table-of-contents ol { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   17. Sponsor rail
   -------------------------------------------------------------------------- */

.page__rail { font-size: .93rem; }
.page__rail img { border-radius: var(--radius-sm); }

.rail-card {
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.rail-card + .rail-card { margin-top: 1.15rem; }
.rail-card__title {
    margin: 0 0 .85rem;
    color: var(--text-3);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.rail-card p:last-child { margin-bottom: 0; }
.rail-stack > * + * { margin-top: 1rem; }
.rail-stack a { display: inline-block; }

@media (min-width: 1080px) {
    .page__rail--sticky {
        position: sticky;
        top: calc(var(--header-h) + 1.25rem);
    }
}

/* Legacy sponsor sidebar classes */
.amzn-banner, .sidebar-banner { display: block; }
.appexchange-logo-fixed { display: block; text-align: center; }
.banner-section, .banner-fixed { display: block; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */

.site-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text-2);
    font-size: .93rem;
}
.site-footer__inner {
    display: grid;
    gap: 2rem;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding: 2.75rem 20px 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.site-footer h3 {
    margin: 0 0 .8rem;
    color: var(--text-3);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.site-footer a { color: var(--text-2); }
.site-footer a:hover, .site-footer a:focus { color: var(--accent); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: .35rem; }

.site-footer__bottom {
    border-top: 1px solid var(--border);
}
.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.4rem;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding: 1.1rem 20px 1.5rem;
    color: var(--text-3);
    font-size: .86rem;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }

.store-badges { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.store-badges img { width: 40px; height: auto; }

/* --------------------------------------------------------------------------
   19. Back to top
   -------------------------------------------------------------------------- */

.to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1020;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--text-2);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   20. Home page
   -------------------------------------------------------------------------- */

.hero {
    max-width: var(--container-wide);
    margin-inline: auto;
    padding: 3.5rem 20px 1rem;
}
.hero h1 { margin-bottom: .7rem; }
.hero__lede {
    max-width: 56ch;
    margin-bottom: 1.5rem;
    color: var(--text-2);
    font-size: 1.16rem;
    line-height: 1.62;
}
.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.2rem;
    margin-top: 1.2rem;
    color: var(--text-3);
    font-size: .87rem;
}
.hero__meta span { display: inline-flex; align-items: center; gap: .35rem; }

/* ---- The ORGanizer button, coming up out of a cut in the page ----------
   Decoration only. The extension parks its button on the edge of a Salesforce
   tab, half out of sight, and slides it open on demand; here the page itself
   has the cut, level with the hero paragraph, and the button pokes out of it.
   Every few seconds it tries to rise a little further (see initMagicCut in
   organizer.js), then settles back: it never opens and never takes a click.
   `.hero-band` is what lets the cut run to the edge of the page rather than
   stop at the edge of the centred hero. */

.hero-band {
    position: relative;
    overflow: hidden;
}

/* The markup carries `hidden`, and an author `display` beats the browser's
   own rule for it: the decoration appears only once this file has had its
   say, so a stale copy of it leaves a bare logo and a word on the page. */
.magic-cut {
    position: absolute;
    top: 50%;
    right: 0;
    width: 42%;               /* the clear half of the hero, to the right of the text */
    display: none;            /* only where the hero has room to spare — see below */
    pointer-events: none;     /* decorative: never clickable, never focusable */
    user-select: none;
}

/* The cut clips the button: what is below the line is inside the page. The
   slot is taller than the button so a twitch has somewhere to rise into. */
.magic-cut__slot {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 64px;
    overflow: hidden;
}

.magic-cut__btn {
    --magic-peek:  12px;      /* how deep the button still sits in the cut */
    --magic-nudge: 9px;       /* how far a twitch lifts it — JS varies it */

    display: flex;
    align-items: center;
    gap: .4rem;
    height: 46px;
    padding: 0 1rem;
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: var(--surface);
    box-shadow: 0 -2px 10px rgba(16, 24, 40, .1);
    transform: translateY(var(--magic-peek));
    transform-origin: bottom center;
}

.magic-cut__logo {
    width: 24px;
    height: 24px;
}

.magic-cut__name {
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -.01em;
    line-height: 1;
    white-space: nowrap;
}

/* ORG carries the weight here, the way it carries the colour in the site's
   own wordmark. 700 is the heaviest Inter the page loads. */
.magic-cut__org { font-weight: 700; }

/* The cut itself: a seam that fades in out of nowhere and runs off the page. */
.magic-cut__line {
    display: block;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-strong) 22%, var(--border-strong));
    box-shadow: 0 1px 0 var(--surface);
}

/* One twitch: a push upwards that loses its nerve twice and sinks back. */
@keyframes magic-cut-nudge {
    0%, 100% { transform: translateY(var(--magic-peek)); }
    18%      { transform: translateY(calc(var(--magic-peek) - var(--magic-nudge))) rotate(-.6deg); }
    36%      { transform: translateY(calc(var(--magic-peek) - var(--magic-nudge) * .3)); }
    56%      { transform: translateY(calc(var(--magic-peek) - var(--magic-nudge) * .75)) rotate(.4deg); }
    78%      { transform: translateY(calc(var(--magic-peek) - var(--magic-nudge) * .12)); }
}

.magic-cut__btn.is-nudging {
    animation: magic-cut-nudge 1.4s cubic-bezier(.36, .07, .19, .97) both;
}

/* Below this the hero paragraph runs into the space the cut needs. */
@media (min-width: 1280px) {
    .magic-cut { display: block; }
}

.section {
    max-width: var(--container-wide);
    margin-inline: auto;
    padding: 3rem 20px;
}
.section--alt {
    max-width: none;
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
}
.section--alt > .section__inner {
    max-width: var(--container-wide);
    margin-inline: auto;
}
/* A .section nested inside the page grid already sits in a padded column, so
   it must not add its own container width or side padding on top. */
.page__main > .section {
    max-width: none;
    margin-inline: 0;
    padding: 2.5rem 0;
}
.page__main > .section:first-of-type { padding-top: 1rem; }

.section__head { max-width: 62ch; margin-bottom: 2rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { margin-bottom: .5rem; }
.section__head p { margin-bottom: 0; color: var(--text-2); font-size: 1.06rem; }

.eyebrow {
    display: block;
    margin-bottom: .55rem;
    color: var(--accent);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Alternating "what it does" rows */
.showcase { display: grid; gap: 3rem; }
.showcase__row {
    display: grid;
    gap: 1.75rem 2.75rem;
    align-items: center;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 880px) {
    .showcase__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .showcase__row--flip .showcase__text { order: 2; }
}
.showcase__text h3 { margin-top: 0; font-size: 1.32rem; }
.showcase__text p:last-child { margin-bottom: 0; }
.showcase__media img {
    display: block;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

/* Gallery of screenshots */
.gallery {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    padding: 0;
    list-style: none;
}
.gallery > li { margin: 0; }
.gallery figure { margin: 0; }
.gallery img {
    display: block;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .13s ease, box-shadow .13s ease;
}
.gallery a:hover img, .gallery a:focus img { border-color: var(--accent-border); box-shadow: var(--shadow); }
.gallery figcaption { margin-top: .5rem; color: var(--text-2); font-size: .89rem; text-align: center; }

/* Credits columns */
.credits {
    display: grid;
    gap: .1rem 1.5rem;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    color: var(--text-2);
    font-size: .94rem;
}
.credits > li { margin: 0; }

/* Install call-to-action */
.install-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.install-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    min-width: 168px;
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    text-decoration: none;
    text-align: center;
}
.install-card:hover, .install-card:focus {
    border-color: var(--accent-border);
    box-shadow: var(--shadow);
    color: var(--text);
}
.install-card img { width: 44px; height: 44px; }
.install-card strong { font-size: 1rem; }
.install-card small { color: var(--text-3); }

/* --------------------------------------------------------------------------
   21. Pricing table
   -------------------------------------------------------------------------- */

.pr-tbl { min-width: 780px; font-size: .93rem; }
.pr-tbl th, .pr-tbl td { text-align: center; }
.pr-tbl tbody th, .pr-tbl thead tr:nth-child(2) th:first-child {
    text-align: left;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    font-size: .95rem;
    color: var(--text);
}
.pr-tbl tbody th { background: transparent; }
.pr-license { min-width: 118px; }
.pr-license h3 { margin: 0; font-size: 1rem; }
.pr-pricing td { font-size: 1rem; }
.pr-pricing strong { display: block; }
.pr-info { margin-top: 1rem; color: var(--text-3); font-size: .88rem; }
.pr-tbl .fa-check-circle { color: var(--success); font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   22. Legacy compatibility (pages that were not restyled)
   -------------------------------------------------------------------------- */

.main-section { min-width: 0; }
.intro-text { padding: 1.5rem 0 .5rem; }
.intro-text .name {
    display: block;
    font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
}
.intro-text .skills, .intro-text > span:not(.name) {
    display: block;
    margin-top: .5rem;
    color: var(--text-2);
    font-size: 1.05rem;
}
.ui-org-title { color: var(--accent); }
/* The embedded Salesforce forms are auto-sized by iframeResizer, which needs a
   matching child script inside the framed page. Until the child answers — or
   for good, if it is not there — the frame keeps this fallback height; once it
   does, organizer.js adds .is-autosized and the real height takes over. */
.sf-frame {
    width: 100%;
    min-height: 860px;
    border: 0;
}
@media (max-width: 767px) { .sf-frame { min-height: 1040px; } }
.sf-frame.is-autosized { min-height: 0; }
.ui-portfolio-img { width: 100%; border-radius: var(--radius); }
.ui-social-btn { }
.scroll-top { display: none; }
.relase-item-image { max-width: 100%; }
center { display: block; text-align: center; }

/* The old pages wrap images in a bare <p>, sometimes inside a link. Either way
   the image is centred in the column it sits in. */
.prose p > img,
.doc-section p > img,
.prose p > a > img,
.doc-section p > a > img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    border-radius: var(--radius);
}
/* A link around an image has to be a block for the margin above to centre it. */
.prose p > a:has(> img),
.doc-section p > a:has(> img) { display: block; }

/* Change log: the entries are a dump of a Salesforce page, so its markup
   classes have to keep meaning something. */
.row-eq-height { display: block; }
.control-label { color: var(--text-3); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.form-control-static { margin: 0 0 .5rem; padding: 0; }
ul.form-control-static { padding-left: 1.3em; }
.release-item-content { display: block; }
.release-item-applyes-to { font-size: .8rem; }
.release-item-image { max-width: 100%; border-radius: var(--radius); }
.panel .form-horizontal .form-group { align-items: start; }
.panel .form-horizontal .form-group > .col-sm-2 { padding-left: 0; }

/* --------------------------------------------------------------------------
   23. Lightbox
   Screenshots are usually larger than the column they sit in, so clicking one
   opens it at its own size instead of navigating away.
   -------------------------------------------------------------------------- */

.is-zoomable { cursor: zoom-in; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(8, 11, 20, .88);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 8rem);
    width: auto;
    height: auto;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
    cursor: zoom-out;
}

.lightbox__caption {
    max-width: 68ch;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: .92rem;
    line-height: 1.5;
    text-align: center;
}

.lightbox__close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.lightbox__close:hover, .lightbox__close:focus {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .45);
}

body.lightbox-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   24. Print
   -------------------------------------------------------------------------- */

@media print {
    :root { --bg: #fff; --surface: #fff; --text: #000; --text-2: #333; }
    .site-header, .site-footer, .page__rail, .docs-toc, .to-top { display: none !important; }
    .page, .page--docs { display: block; padding: 0; }
    .prose { max-width: none; }
    a { text-decoration: underline; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
