@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Radomir Tinkov - Gilroy-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Radomir Tinkov - Gilroy-Medium.woff') format('woff');
    font-weight: 500 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --f-purple: #6C22E1;
    --f-purple-dark: #5615C4;
    --f-purple-soft: #F3EDFD;
    --f-purple-softest: #f8f4fe;
    --f-pink-bg: #FADBE9;
    --f-pink-text: #E02472;
    --f-border: #E2DCF2;
    --f-divider: #EFEDF5;
    --f-text: #201F2E;
    --f-muted: #8F8CA3;
}

html, body {
    font-family: 'Gilroy', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--f-text);
    background-color: #fff;
}

body {
    background-image: url('img/body_background.png');
}

/* Base reading size, raised to 1.25rem (125% of the 16px default) once the
   screen has room for it. Deliberately on html rather than body: every size in
   this stylesheet is in rem, so scaling the root carries the whole hierarchy
   with it. Bumping body alone left the rem-sized elements behind, which
   inverted headings against their own body text -- a 1.15rem card title ended
   up smaller than the 1.25rem description beneath it. */
/* 1280px, not 1200px: measured, the 25%-larger header nav wraps at 1200px and
   only fits again from ~1250px, and the burger that would otherwise absorb it
   stops at 992px. Starting the bump above that band avoids a window where the
   nav is crushed. */
@media (min-width: 1280px) {
    html {
        font-size: 125%;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--f-text);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--f-purple);
}

a:hover, .btn-link:hover {
    color: var(--f-purple-dark);
}

/* ---- Header ---- */

.frends-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    /* min-height, not height: the bar has to absorb the larger base font size
       on wide screens without clipping its contents. */
    min-height: 85px;
    padding: 0 2rem;
    background: #fff;
    border-bottom: 1px solid var(--f-divider);
}

.frends-header-bar {
    display: flex;
    align-items: center;
}

.frends-header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Pushes the secondary links right; replaces space-between now that the header
   has three children. */
.frends-header-right {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
}

/* Hidden rather than display:none so the burger stays keyboard-operable. */
.frends-nav-toggle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.frends-nav-burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 12px;
    cursor: pointer;
}

.frends-nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--f-text);
    transition: transform 0.2s, opacity 0.2s;
}

.frends-nav-toggle:focus-visible ~ .frends-header-bar .frends-nav-burger {
    outline: 2px solid var(--f-purple);
    outline-offset: 2px;
}

/* Burger morphs into an X while the menu is open. */
.frends-nav-toggle:checked ~ .frends-header-bar .frends-nav-burger span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.frends-nav-toggle:checked ~ .frends-header-bar .frends-nav-burger span:nth-child(2) {
    opacity: 0;
}

.frends-nav-toggle:checked ~ .frends-header-bar .frends-nav-burger span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* 1050px: measured, the seven links need ~1020px to sit on one line, so the
   burger has to take over above the lg breakpoint an earlier guess assumed. */
@media (max-width: 1049.98px) {
    .frends-header {
        flex-wrap: wrap;
        align-items: stretch;
        height: auto;
        gap: 0;
        padding: 0.75rem 1.25rem;
    }

    /* Logo and burger own the first row; the link groups become full-width
       rows below it, revealed by the toggle. */
    .frends-header-bar {
        flex: 1 0 100%;
        justify-content: space-between;
    }

    .frends-nav-burger {
        display: flex;
    }

    .frends-header-left,
    .frends-header-right {
        display: none;
        flex: 1 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
    }

    .frends-nav-toggle:checked ~ .frends-header-left,
    .frends-nav-toggle:checked ~ .frends-header-right {
        display: flex;
    }

    .frends-nav-toggle:checked ~ .frends-header-left {
        padding-top: 0.5rem;
        border-top: 1px solid var(--f-divider);
        margin-top: 0.75rem;
    }

    .frends-header-divider {
        display: none;
    }

    .frends-nav-link {
        padding: 0.65rem 0;
    }
}

.frends-logo {
    display: flex;
    align-items: center;
}

.frends-logo img {
    height: 26px;
    width: auto;
    display: block;
    margin-bottom: 7px;
}

.frends-header-divider {
    width: 1px;
    height: 1.75rem;
    background: #D9D7E0;
}

.frends-nav-link {
    color: var(--f-text);
    text-decoration: none;
    font-weight: 500;
}

.frends-nav-link:hover {
    color: var(--f-purple);
}

.frends-main {
    padding: 2rem;
}

.frends-page-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.frends-hero {
    text-align: center;
}

.frends-page-intro {
    max-width: 760px;
    margin: -0.75rem auto 1.5rem;
    color: var(--f-text);
}

/* ---- Badges / pills ---- */

.badge {
    border-radius: 999px;
    font-weight: 500;
    padding: 0.45em 1em;
}

.badge.bg-info {
    background-color: #fff !important;
    color: var(--f-purple);
    border: 1px solid var(--f-purple);
}

.frends-tag {
    display: inline-block;
    background: var(--f-pink-bg);
    color: var(--f-pink-text);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Marks a catalog-only Task, i.e. one with no documentation page, so a name
   that isn't a link reads as deliberate rather than broken. Neutral grey on
   purpose: it is an explanation, not a status worth highlighting like Partner. */
.on-request-badge {
    display: inline-block;
    background: var(--f-divider);
    color: var(--f-muted);
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    vertical-align: middle;
}

.partner-badge {
    display: inline-block;
    background: var(--f-purple-soft);
    color: var(--f-purple);
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    vertical-align: middle;
}

/* ---- Search + tag cloud (Home) ---- */

.frends-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto 1.25rem;
}

.frends-search-input {
    width: 100%;
    background: #fff;
    border: 1px solid var(--f-border);
    border-radius: 999px;
    padding: 0.65rem 3rem 0.65rem 1.25rem;
    font-size: 1rem;
    color: var(--f-text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.frends-search-input::placeholder {
    color: var(--f-muted);
}

.frends-search-input:focus {
    border-color: var(--f-purple);
    box-shadow: 0 0 0 3px var(--f-purple-soft);
}

.frends-search-icon {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--f-muted);
    pointer-events: none;
}

.frends-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    max-width: 1100px;
    margin: 0 auto 2rem;
}

.frends-tag-filter {
    display: inline-block;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--f-border);
    color: var(--f-purple);
    border-radius: 999px;
    padding: 0.2rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.frends-tag-filter:hover {
    border-color: var(--f-purple);
    background: var(--f-purple-soft);
    color: var(--f-purple);
}

.frends-tag-filter.active {
    background: var(--f-purple);
    border-color: var(--f-purple);
    color: #fff;
}

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

.card {
    border: 1px solid var(--f-border);
    border-radius: 25px;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--f-muted);
}

/* ---- System cards (Home) ---- */

.system-card {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid var(--f-border);
    border-radius: 25px;
    padding: 1.25rem 1.5rem;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.system-card:hover {
    color: inherit;
    text-decoration: none;
    border-color: var(--f-purple);
    box-shadow: 0 6px 18px rgba(58, 26, 120, 0.12);
}

.system-card-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--f-divider);
    margin-bottom: 1rem;
}

.system-card-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.system-card-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

/* ---- System detail ---- */

/* Markdown content: rein in raw h1/h2/h3 from the .md files so they read as
   section headings inside the card instead of competing with the page title. */
.system-description {
    line-height: 1.65;
}

.card-body.system-description {
    padding: 2rem 2.25rem;
}

@media (max-width: 575.98px) {
    .card-body.system-description {
        padding: 1.25rem;
    }
}

.system-description h1,
.system-description h2 {
    font-size: 1.35rem;
    margin: 1.75rem 0 0.75rem;
}

.system-description h3 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.6rem;
}

.system-description h4,
.system-description h5,
.system-description h6 {
    font-size: 1rem;
    margin: 1.25rem 0 0.5rem;
}

.system-description > :first-child {
    margin-top: 0;
}

.system-description > :last-child {
    margin-bottom: 0;
}

.system-description code {
    background: var(--f-purple-soft);
    color: var(--f-purple);
    border-radius: 6px;
    padding: 0.1em 0.4em;
    font-size: 0.875em;
}

.system-description pre {
    background: var(--f-purple-soft);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
}

.system-description pre code {
    background: none;
    padding: 0;
    color: var(--f-text);
}

.system-description img {
    max-width: 100%;
    height: auto;
}

.categories-card h2 {
    font-size: 1.25rem;
}

.categories-card .card-body {
    padding: 1.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.5rem 0;
    color: var(--f-text);
    text-decoration: none;
    font-weight: 500;
}

.category-item:hover {
    color: var(--f-purple);
}

.category-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-list-item + .sidebar-list-item {
    border-top: 1px solid var(--f-divider);
}

/* ---- Templates section ---- */

/* Clips the outer edge of the grid's divider lines so only inner lines show. */
.templates-grid-clip {
    overflow: hidden;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 -1px -1px 0;
}

.categories-grid .category-item {
    padding: 0.55rem 0.75rem;
    border-right: 1px solid var(--f-divider);
    border-bottom: 1px solid var(--f-divider);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin: 0 -1px -1px 0;
}

.template-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem 1.1rem;
    border-right: 1px solid var(--f-divider);
    border-bottom: 1px solid var(--f-divider);
    color: var(--f-text);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.template-card:hover {
    background: #F7F6FA;
    color: var(--f-purple);
}

.template-icons {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.template-icons img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.template-card-name {
    font-weight: 500;
    line-height: 1.35;
}

.template-card-meta {
    font-size: 0.85rem;
    color: var(--f-text-muted, #6c757d);
}

.template-hero-icons img {
    width: 36px;
    height: 36px;
}

.template-description img {
    max-width: 100%;
    height: auto;
}

/* ---- Image lightbox ---- */

.system-description img {
    cursor: zoom-in;
}

.img-lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(20, 16, 33, 0.78);
    cursor: zoom-out;
    overflow: hidden;
}

.img-lightbox-backdrop img {
    /* Fill the viewport regardless of the image's intrinsic size (SVG diagrams
       often report a tiny one); contain keeps the aspect ratio. */
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Diagrams are often transparent SVGs; keep them readable on the dark backdrop. */
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.12s ease-out;
    touch-action: none;
}

.img-lightbox-controls {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.6rem;
    background: rgba(20, 16, 33, 0.85);
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    cursor: default;
}

.img-lightbox-controls button {
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.img-lightbox-controls button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.img-lightbox-zoom-label {
    min-width: 3.2rem;
    text-align: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Pins the detail-page sidebar while the main content scrolls; long sidebars
   scroll internally. Only on lg+ where the sidebar sits beside the content,
   and only when the viewport is tall enough for pinning to be useful. */
@media (min-width: 992px) and (min-height: 600px) {
    .sidebar-sticky {
        position: sticky;
        top: 1.5rem;
        max-height: calc(100vh - 3rem);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--f-border) transparent;
    }
}

/* ---- Task detail ---- */

.task-title {
    overflow-wrap: anywhere;
}

.task-header-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Task metadata ("Details") card shown beside the summary. */
/* Matches .card-body.system-description so the Details and Summary headings
   line up across the two cards. */
.task-meta-card .card-body {
    padding: 2rem 2.25rem;
}

@media (max-width: 575.98px) {
    .task-meta-card .card-body {
        padding: 1.25rem;
    }
}

/* Shared eyebrow heading for the cards under the page title. Qualified with
   h2 so it outranks the `.system-description h2` markdown heading styles. */
h2.task-card-title {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--f-muted);
}

.task-meta-list {
    margin: 0;
}

.task-meta-row {
    padding: 0.8rem 0;
}

.task-meta-row + .task-meta-row {
    border-top: 1px solid var(--f-divider);
}

.task-meta-row:first-child {
    padding-top: 0;
}

.task-meta-row:last-child {
    padding-bottom: 0;
}

.task-meta-label {
    margin: 0 0 0.15rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--f-muted);
}

.task-meta-value {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.frends-pill-btn-soft {
    display: inline-block;
    background: var(--f-purple-soft);
    color: var(--f-purple);
    border-radius: 999px;
    padding: 0.5rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.frends-pill-btn-soft:hover {
    background: #E9DEFB;
    color: var(--f-purple-dark);
}

.frends-pill-btn {
    display: inline-block;
    background: var(--f-purple);
    color: #fff;
    border-radius: 999px;
    padding: 0.5rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.frends-pill-btn:hover {
    background: var(--f-purple-dark);
    color: #fff;
}

.frends-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.4rem;
    margin: 1.5rem 0 -1px;
    position: relative;
    z-index: 1;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--f-border) transparent;
}

.frends-tabs::-webkit-scrollbar {
    height: 6px;
}

.frends-tabs::-webkit-scrollbar-thumb {
    background: var(--f-border);
    border-radius: 999px;
}

.frends-tab {
    background: #fff;
    border: 1px solid var(--f-border);
    border-bottom: none;
    color: var(--f-purple);
    border-radius: 14px 14px 0 0;
    padding: 0.55rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.frends-tab:hover:not(.active) {
    background: var(--f-purple-soft);
}

.frends-tab.active {
    background: var(--f-purple);
    border-color: var(--f-purple);
    color: #fff;
    padding-top: 0.75rem;
}

.frends-tab-card {
    border-top-left-radius: 0;
}

/* Below lg the tab labels no longer fit on one line (they already scroll at
   790px), and a horizontal scroll strip hides sections and breaks the
   tab-joined-to-card look. Drop the tab metaphor instead: wrapping pills above
   a normally rounded card. Above this the existing overflow-x scroll stays as
   a fallback for tasks with unusually many parameters. */
@media (max-width: 991.98px) {
    .frends-tabs {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        margin: 1.5rem 0 0.85rem;
        overflow-x: visible;
    }

    .frends-tab {
        border: 1px solid var(--f-border);
        border-radius: 999px;
        padding: 0.45rem 1rem;
    }

    .frends-tab.active {
        padding-top: 0.45rem;
    }

    /* "Parameter: Connection" is mostly prefix; the section name alone is
       enough to keep the pills to one or two rows. */
    .frends-tab-prefix {
        display: none;
    }

    .frends-tab-card {
        border-top-left-radius: 25px;
    }
}

.frends-remarks {
    border: 1px solid var(--f-border);
    border-radius: 14px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
}

.frends-remarks summary {
    color: var(--f-purple);
    font-weight: 600;
    cursor: pointer;
}

.frends-remarks summary:hover {
    color: var(--f-purple-dark);
}

.frends-remarks-body {
    margin-top: 0.75rem;
}

.frends-tab-content {
    padding: 1.5rem 2rem;
}

/* ---- Changelog ---- */

.changelog-entry + .changelog-entry {
    margin-top: 1.75rem;
}

.changelog-entry-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    background: var(--f-purple-soft);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.85rem;
}

.changelog-version {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--f-purple);
}

.changelog-date {
    color: var(--f-muted);
    font-size: 0.9rem;
}

.changelog-category {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0.85rem 0 0.35rem;
    color: var(--f-text);
}

span.changelog-category {
    margin: 0;
}

.cl-added {
    color: #14794E;
}

.cl-changed, .cl-updated {
    color: var(--f-purple);
}

.cl-fixed {
    color: #2456C4;
}

.cl-removed, .cl-breaking {
    color: var(--f-pink-text);
}

.cl-deprecated, .cl-security {
    color: #A35F0A;
}

/* ---- Updates report ---- */

.updates-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.updates-search {
    width: 100%;
    max-width: 560px;
    margin: 0;
}

.updates-dates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1rem;
}

.updates-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--f-muted);
    white-space: nowrap;
}

.updates-date input {
    background: #fff;
    border: 1px solid var(--f-border);
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    color: var(--f-text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.updates-date input:focus {
    border-color: var(--f-purple);
    box-shadow: 0 0 0 3px var(--f-purple-soft);
}

.updates-clear {
    white-space: nowrap;
}

.updates-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.updates-stat {
    flex: 1 1 140px;
    background: var(--f-purple-soft);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.updates-stat-muted {
    background: var(--f-divider);
}

.updates-stat-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--f-purple);
    line-height: 1;
}

.updates-stat-muted .updates-stat-num {
    color: var(--f-text);
}

.updates-stat-label {
    font-size: 0.85rem;
    color: var(--f-muted);
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.updates-item {
    background: #fff;
    border: 1px solid var(--f-border);
    border-radius: 25px;
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.updates-item:hover {
    border-color: var(--f-purple);
    box-shadow: 0 6px 18px rgba(58, 26, 120, 0.12);
}

.updates-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.updates-item-task {
    font-weight: 600;
    color: var(--f-text);
    text-decoration: none;
}

a.updates-item-task:hover {
    color: var(--f-purple);
    text-decoration: underline;
}

.update-kind {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    color: #fff;
}

.update-kind-new {
    background: #14794E;
}

.update-kind-major {
    background: var(--f-pink-text);
}

.update-kind-minor {
    background: var(--f-purple);
}

.update-kind-patch {
    background: var(--f-muted);
}

.updates-item-body {
    font-size: 0.95rem;
}

.updates-more {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Fixed layout so column widths come from these percentages instead of each
   tab's own content — otherwise every tab swap reflows the columns differently. */
.prop-table {
    table-layout: fixed;
    width: 100%;
    min-width: 700px;
    font-size: 90%;
}

.prop-table th {
    border-bottom: 2px solid var(--f-text);
    font-weight: 600;
    padding: 0.6rem 0.75rem;
    white-space: nowrap;
}

.prop-table td {
    padding: 0.85rem 0.75rem;
    vertical-align: top;
    border-color: var(--f-divider);
}

.prop-table code {
    background: var(--f-purple-soft);
    color: var(--f-purple);
    border-radius: 6px;
    padding: 0.1em 0.4em;
    font-size: 0.875em;
    overflow-wrap: anywhere;
}

/* table-layout:fixed reads column widths from <col>, not from td classes
   further down the table — these are the authoritative widths. */
.prop-table col.prop-col-name { width: 15%; }
.prop-table col.prop-col-type { width: 13%; }
.prop-table col.prop-col-default { width: 11%; }
.prop-table col.prop-col-example { width: 14%; }
.prop-table col.prop-col-description { width: 47%; }

.prop-table .prop-name,
.prop-table .prop-type,
.prop-table .prop-default,
.prop-table .prop-example {
    overflow-wrap: anywhere;
}

/* Flattened sub-properties (e.g. "Source.ConnectionString") are indented
   under their parent property row, which always precedes them in the list. */
.prop-table tr.prop-row-nested td {
    background: var(--f-purple-softest);
}

.prop-table tr.prop-row-nested .prop-name {
    color: var(--f-muted);
}

.prop-nested-indent {
    display: inline-block;
    width: 1.1rem;
}

.prop-nested-indent::before {
    content: "\21b3";
    margin-right: 0.35rem;
    color: var(--f-muted);
}

.prop-table .prop-example code,
.prop-table .prop-default code {
    white-space: pre-wrap;
}

/* Stack table rows as cards on smaller screens */
@media (max-width: 767.98px) {
    .prop-table,
    .prop-table tbody,
    .prop-table tr,
    .prop-table td {
        display: block;
        width: auto;
    }

    .prop-table thead {
        display: none;
    }

    .prop-table tr {
        padding: 0.9rem 0;
        border-top: 1px solid var(--f-divider);
    }

    .prop-table tr:first-child {
        border-top: none;
        padding-top: 0;
    }

    .prop-table td {
        border: none;
        padding: 0.25rem 0;
    }

    .prop-table td[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--f-muted);
        font-size: 0.85rem;
        margin-right: 0.35rem;
    }

    .prop-table td.prop-name[data-label]::before {
        display: none;
    }

    .prop-table td.prop-description[data-label]::before {
        display: block;
        margin-bottom: 0.25rem;
    }

    .prop-table .prop-name {
        width: auto;
        min-width: 0;
        font-size: 1.05rem;
        padding-bottom: 0.35rem;
    }

    .frends-tab-content {
        padding: 1.25rem;
    }
}

/* ---- Task browser overlay sidebar ---- */

.task-browser-handle {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1030;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: var(--f-purple);
    color: #fff;
    border: none;
    border-radius: 0 14px 14px 0;
    padding: 0.9rem 0.45rem;
    cursor: pointer;
    box-shadow: 2px 0 12px rgba(58, 26, 120, 0.25);
    transition: background-color 0.15s, padding-right 0.15s;
}

.task-browser-handle:hover {
    background: var(--f-purple-dark);
    padding-right: 0.65rem;
}

.task-browser-handle-label {
    writing-mode: vertical-rl;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.task-browser-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(32, 31, 46, 0.35);
    z-index: 1040;
}

.task-browser {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 340px;
    max-width: 90vw;
    background: #fff;
    border-right: 1px solid var(--f-border);
    box-shadow: 0 0 30px rgba(58, 26, 120, 0.15);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    visibility: hidden;
}

.task-browser.open {
    transform: translateX(0);
    visibility: visible;
}

.task-browser-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid var(--f-divider);
}

.task-browser-search {
    flex: 1;
    margin: 0;
    max-width: none;
}

.task-browser-search .frends-search-input {
    padding: 0.45rem 2.5rem 0.45rem 1rem;
    font-size: 0.9rem;
}

.task-browser-search .frends-search-icon {
    right: 0.9rem;
}

.task-browser-close {
    background: none;
    border: none;
    color: var(--f-muted);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
}

.task-browser-close:hover {
    color: var(--f-text);
}

.task-browser-body {
    overflow-y: auto;
    padding: 0.75rem;
    flex: 1;
}

.task-browser-group {
    border-radius: 14px;
}

.task-browser-group.expanded {
    background: var(--f-purple-soft);
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
}

.task-browser-system {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 0.55rem 0.75rem;
    font-weight: 500;
    color: var(--f-text);
    border-radius: 14px;
    cursor: pointer;
}

.task-browser-system:hover {
    color: var(--f-purple);
}

.task-browser-system img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.task-browser-chevron {
    margin-left: auto;
    color: var(--f-muted);
    font-size: 0.8rem;
}

.task-browser-task {
    display: block;
    padding: 0.4rem 0.75rem 0.4rem 3rem;
    color: var(--f-text);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 10px;
}

.task-browser-task:hover {
    color: var(--f-purple);
}

.task-browser-task.active {
    background: var(--f-purple);
    color: #fff;
    margin: 0 0.5rem;
    padding-left: 2.5rem;
}

.task-browser-task .partner-badge {
    margin-left: 0.5rem;
}

.task-browser-task.active .partner-badge {
    background: #fff;
    color: var(--f-purple);
}

.task-browser-empty {
    padding: 0.4rem 0.75rem 0.4rem 3rem;
    color: var(--f-muted);
    font-size: 0.9rem;
}

/* ---- Search result task cards (Home) ---- */

.task-result-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--f-border);
    border-radius: 25px;
    padding: 1.1rem 1.5rem;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.task-result-card:hover {
    color: inherit;
    border-color: var(--f-purple);
    box-shadow: 0 6px 18px rgba(58, 26, 120, 0.12);
}

.task-result-card img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.task-result-name {
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* ---- Misc / framework ---- */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}