/* Shared stylesheet for the integrations site (landing + per-integration guides).
   Palette inspired by seria.no (Elementor brand kit): warm, earthy neutrals with
   a deep-green accent and periwinkle secondary. */
:root {
    --accent: #445e51;        /* deep green — primary actions */
    --accent-ink: #344a40;    /* darker green — hover */
    --secondary: #7d96f2;     /* periwinkle */
    --secondary-soft: #eef1fd;/* periwinkle wash — chips/highlights */
    --text: #282727;          /* near-black */
    --muted: #6b6864;         /* warm gray */
    --border: #e9e1d4;        /* warm border */
    --subtle: #f7f0e3;        /* cream */
    --bg: #fffdfa;            /* warm white */
}

* { box-sizing: border-box; }

/* Keyboard users get a clear brand-colored focus ring (mouse clicks don't). */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Hidden until focused, then drops in at the top-left corner. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 0.6rem 1.1rem;
    border-radius: 0 0 8px 0;
}

.skip-link:focus { left: 0; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

.wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
}

/* ---- Page header / hero -------------------------------------------------- */

header.page {
    margin-bottom: 2.5rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 0.4rem;
}

h1 {
    font-size: 2.1rem;
    line-height: 1.15;
    margin: 0 0 0.6rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0;
    max-width: 40em;
}

/* Top row: breadcrumb (guide pages) left, language switch right. */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.topbar .lang-switch { margin-left: auto; }

.lang-switch {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.lang-switch button {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    padding: 0.35rem 0.8rem;
    min-height: 24px; /* WCAG 2.2 target size */
    cursor: pointer;
}

.lang-switch button:not(.active):hover { background: var(--subtle); }

.lang-switch button.active {
    background: var(--accent);
    color: #fff;
}

.crumbs {
    font-size: 0.9rem;
}

.crumbs a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.crumbs a:hover { text-decoration: underline; }

/* Compact facts under a guide-page heading (version, platform, requirements). */
.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ---- Cards ---------------------------------------------------------------- */

.cards {
    display: grid;
    gap: 1.25rem;
}

/* Landing page: integrations side by side when there's room. min() keeps the
   column able to shrink below 320px so narrow viewports reflow, not scroll. */
.cards.pick {
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    align-items: stretch;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
}

.cards.pick .card {
    display: flex;
    flex-direction: column;
}

.cards.pick .card .actions {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 1rem;
}

.card-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.4rem;
}

.card h2, section.block > h2 {
    font-size: 1.3rem;
    margin: 0;
}

section.block { margin-top: 2.25rem; }
section.block > h2 { margin-bottom: 0.75rem; }

.badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--subtle);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    font-variant-numeric: tabular-nums;
}

.badge-platform {
    color: #41538f;            /* readable ink on the periwinkle wash */
    background: var(--secondary-soft);
    border-color: #d6ddfb;
}

.card p {
    color: var(--muted);
    margin: 0 0 1rem;
}

/* ---- Buttons --------------------------------------------------------------- */

.btn {
    display: inline-block;
    border: 0;
    font: inherit;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    transition: filter 0.15s ease;
}

.btn:hover { background: var(--accent-ink); }

.btn-secondary {
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-secondary:hover { background: var(--subtle); }

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.actions:last-child { margin-bottom: 0; }

.actions .hint {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ---- Lists ----------------------------------------------------------------- */

ol, ul {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
    color: var(--muted);
}

ol li, ul li { margin-bottom: 0.4rem; }

/* Feature bullets on cards: green dash markers, tighter rhythm. */
ul.features {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem;
}

ul.features li {
    padding-left: 1.3rem;
    position: relative;
}

ul.features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.7rem;
    height: 0.18rem;
    border-radius: 2px;
    background: var(--accent);
}

/* Numbered install steps with circled markers. */
ol.steps {
    list-style: none;
    counter-reset: step;
    padding-left: 0;
    margin-top: 1rem;
}

ol.steps > li {
    counter-increment: step;
    position: relative;
    padding-left: 2.6rem;
    margin-bottom: 0.9rem;
}

ol.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

ol.steps > li strong { color: var(--text); }

code {
    font-family: "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: var(--subtle);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    word-break: break-all;
}

/* ---- "How it works" strip on the landing page ------------------------------ */

.how {
    margin-top: 2.5rem;
    background: var(--subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
}

.how h2 {
    font-size: 1.15rem;
    margin: 0 0 0.25rem;
}

.how > p {
    color: var(--muted);
    margin: 0;
}

.how ol.steps { margin-bottom: 0; }

.how ol.steps > li:last-child { margin-bottom: 0; }

/* ---- Pre-filled deep-link values ------------------------------------------- */

.prefill {
    background: var(--subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
}

.prefill-lead {
    margin: 0 0 0.75rem;
    color: var(--text);
    font-size: 0.95rem;
}

.prefill-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.prefill-label {
    width: 5.5rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.prefill-row code {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    background: #fff;
}

.copy {
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 0.3rem 0.8rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.copy:hover { background: var(--subtle); }

#officeReady > p { color: var(--muted); }

/* ---- Footer ----------------------------------------------------------------- */

footer.page {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

footer.page a { color: var(--accent); }
