p {
    margin-bottom: 0;
}

html, body {
    font-family: Montserrat, Helvetica, Arial, sans-serif !important;
    background-image: repeating-radial-gradient( circle at 0 0, transparent 0, #f0f0f0 10px ), repeating-linear-gradient( #e0e0e055, #e0e0e055 );
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

/* Header card styling to visually separate from body */
.header-card {
    border-left: 4px solid #1b6ec2; /* primary accent */
    background-color: rgba(255,255,255,0.92);
    padding: 0.25rem;
}

.header-card .mud-card-header {
    padding-left: 1rem;
}

.mud-typography, .mud-select-input, .mud-button-label {
    font-family: Montserrat, Helvetica, Arial, sans-serif !important;
}

.mud-breadcrumbs {
    font-family: Montserrat, Helvetica, Arial, sans-serif !important;
}

input.mud-input-slot.mud-input-root.mud-input-root-outlined.mud-input-root-adorned-start {
    font-family: Montserrat, Helvetica, Arial, sans-serif !important;
}

h1:focus {
    outline: none;
}

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

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

.validation-message {
    color: #e50000;
}

/* blazor-error-ui: soft top-right toast pill (Blazor toggles style.display) */
#blazor-error-ui {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-left: 3px solid #f59e0b;
    padding: 0.625rem 0.875rem;
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: auto;
    bottom: auto;
    max-width: 22rem;
    z-index: 9998;
    font-size: 0.8125rem;
    color: #f1f5f9;
    font-family: Montserrat, Helvetica, Arial, sans-serif;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    animation: foreman-error-slide-in 0.25s ease-out;
}

@keyframes foreman-error-slide-in {
    from { opacity: 0; transform: translateY(-0.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}

#blazor-error-ui .reload {
    color: #93c5fd;
    font-weight: 600;
    text-decoration: underline;
}

#blazor-error-ui .reload:hover {
    color: #bfdbfe;
}

#blazor-error-ui .dismiss {
    margin-left: auto;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 1;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

#blazor-error-ui .dismiss:hover {
    color: #f1f5f9;
    background-color: rgba(255, 255, 255, 0.1);
}

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

/* ═══════════════════════════════════════════════════
   MCP Terminal Animation (Landing page)
═══════════════════════════════════════════════════ */
.mcp-line {
    margin: 0 0 0.25rem 0;
    color: #c9d1d9;
}

.mcp-line-appear {
    animation: mcp-line-appear 0.3s ease-out forwards;
}

@keyframes mcp-line-appear {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Cursor blink */
.mcp-cursor {
    display: inline;
    animation: mcp-cursor-blink 0.7s steps(1) infinite;
    color: #7eb3d9;
    font-weight: bold;
}

@keyframes mcp-cursor-blink {
    0%, 50%  { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Colour tokens */
.tc-dim    { color: #8b949e; }
.tc-user   { color: #7ee787; }
.tc-tool   { color: #79c0ff; }
.tc-green  { color: #7ee787; }
.tc-purple { color: #d2a8ff; }
.tc-orange { color: #ffa657; }

/* Scenario dots */
.mcp-term-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    border: none; padding: 0; cursor: pointer;
    background-color: #8b949e;
    opacity: 0.5;
    transition: all 0.3s;
}
.mcp-term-dot:hover { opacity: 0.75; }

/* ── Marquee (auto-scrolling capability cards) ── */
/* grab cursor + horizontal-drag affordance on both marquee strips */
.features-marquee-wrap,
.mcp-marquee-wrap {
    cursor: grab;
    touch-action: pan-y; /* let the browser handle vertical page scroll; we handle horizontal */
}


@keyframes mcp-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.mcp-marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: mcp-marquee 35s linear infinite;
}

.mcp-marquee-wrap:hover .mcp-marquee-track {
    animation-play-state: paused;
}

/* ── Features marquee (Everything you need in Autodesk Forma) ── */
.features-marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: mcp-marquee 55s linear infinite;
}

.features-marquee-wrap:hover .features-marquee-track {
    animation-play-state: paused;
}

/* ── QA/QC marquee ── */
.qa-marquee-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: mcp-marquee 40s linear infinite;
}

.qa-marquee-wrap:hover .qa-marquee-track {
    animation-play-state: paused;
}

/* ═══════════════════════════════════════════════════
   Help article content — Drafting-ticket body
   (shared by article page + editor preview)
═══════════════════════════════════════════════════ */
.help-content { line-height: 1.7; color: #2a3642; font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif; }

.help-content h1,
.help-content h2,
.help-content h3,
.help-content h4 {
    font-family: 'Fraunces', ui-serif, Georgia, serif;
    font-weight: 500;
    color: #0b1219;
    letter-spacing: -0.01em;
}
.help-content h1 { font-size: 1.375rem; margin-top: 2.5rem; margin-bottom: 0.875rem; padding-bottom: 0.5rem; border-bottom: 1px dashed #c7bca3; }
.help-content h2 { font-size: 1.15rem; margin-top: 2.25rem; margin-bottom: 0.75rem; }
.help-content h3 { font-size: 1rem; margin-top: 1.75rem; margin-bottom: 0.5rem; color: #2a3642; }
.help-content h4 { font-size: 0.9375rem; margin-top: 1.5rem; margin-bottom: 0.5rem; color: #2a3642; text-transform: none; }

.help-content p { font-size: 0.9375rem; color: #2a3642; margin-bottom: 1.1rem; line-height: 1.75; }
.help-content ul, .help-content ol { font-size: 0.9375rem; color: #2a3642; margin: 0 0 1.1rem; padding-left: 2em; list-style-position: outside; }
.help-content ul { list-style-type: disc; }
.help-content ol { list-style-type: decimal; }
.help-content ul li::marker { color: #b0392b; }
.help-content ol li::marker { color: #b0392b; font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-weight: 600; }
.help-content li { margin-bottom: 0.4rem; line-height: 1.7; padding-left: 0.25rem; }
.help-content li > p { margin-bottom: 0.5rem; }
.help-content li > p:last-child { margin-bottom: 0; }
.help-content li > ul, .help-content li > ol { margin-top: 0.4rem; margin-bottom: 0.4rem; }
.help-content li strong { color: #0b1219; font-weight: 600; }
.help-content strong { color: #0b1219; font-weight: 600; }

.help-content table {
    font-size: 0.875rem;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    background: #f1ead9;
    border: 1px solid #0b1219;
    display: table;
    table-layout: fixed;
}
.help-content th, .help-content td { padding: 0.625rem 0.875rem; border-bottom: 1px dashed #c7bca3; text-align: left; vertical-align: top; color: #2a3642; }
.help-content tr:last-child td { border-bottom: 0; }
.help-content th {
    background-color: #ede5d0;
    font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0b1219;
    border-bottom: 1px solid #0b1219;
}

.help-content code {
    font-size: 0.8125rem;
    background-color: #ede5d0;
    padding: 0.125rem 0.4rem;
    border: 1px solid rgba(11,18,25,0.14);
    color: #0b1219;
    font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
.help-content pre {
    background-color: #0b2545;
    color: #b4d9e8;
    padding: 1.1rem 1.25rem;
    border: 1px solid #061a37;
    overflow-x: auto;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.65;
    position: relative;
}
.help-content pre::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #5386b6, #7fbcd9);
}
.help-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    border: 0;
}
.help-content blockquote {
    border-left: 3px solid #b0392b;
    padding: 0.75rem 1.25rem 0.75rem 1.25rem;
    margin: 1.25rem 0;
    color: #0b1219;
    font-family: 'Fraunces', ui-serif, Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.55;
    background: rgba(176,57,43,0.04);
}
.help-content blockquote p { margin-bottom: 0.5rem; font-family: inherit; font-size: inherit; color: inherit; }
.help-content blockquote p:last-child { margin-bottom: 0; }
.help-content a { color: #5386b6; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.help-content a:hover { color: #0b2545; text-decoration-thickness: 2px; }
.help-content hr { border: none; border-top: 1px dashed #c7bca3; margin: 2.25rem 0; }
.help-content img { border: 1px solid #0b1219; background: #f1ead9; padding: 4px; display: block; max-width: 100%; height: auto; }
.help-content > h1:first-child,
.help-content > h2:first-child { display: none; }
.help-content > h1:first-child + p,
.help-content > h2:first-child + p { margin-top: 0; }

/* Article page: images are clickable for lightbox */
.help-content img { cursor: pointer; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.help-content img:hover { box-shadow: 3px 3px 0 0 rgba(11,18,25,0.22); transform: translate(-1px,-1px); }

@media (max-width: 768px) {
    .help-content table {
        display: block;
        overflow-x: auto;
        table-layout: auto;
        white-space: nowrap;
    }
}

/* Help article: See also callout panel (works for markdown HTML and bootstrap alert pattern) */
.help-content .alert.alert-secondary,
.help-content .alert-secondary,
.help-content div.mt-8.p-4.rounded-lg {
    position: relative;
    margin: 2rem 0;
    padding: 20px 22px;
    background: #f1ead9 !important;
    border: 1px solid #0b1219 !important;
    border-radius: 0 !important;
    box-shadow: 4px 4px 0 rgba(11,18,25,0.09);
    color: #2a3642;
}
.help-content .alert.alert-secondary::before,
.help-content .alert-secondary::before,
.help-content div.mt-8.p-4.rounded-lg::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(11,18,25,0.16);
    pointer-events: none;
}
.help-content .alert.alert-secondary > *,
.help-content .alert-secondary > *,
.help-content div.mt-8.p-4.rounded-lg > * {
    position: relative;
    z-index: 1;
}
.help-content .alert.alert-secondary h2,
.help-content .alert.alert-secondary h3,
.help-content .alert.alert-secondary h4,
.help-content .alert-secondary h2,
.help-content .alert-secondary h3,
.help-content .alert-secondary h4,
.help-content div.mt-8.p-4.rounded-lg h2,
.help-content div.mt-8.p-4.rounded-lg h3,
.help-content div.mt-8.p-4.rounded-lg h4 {
    margin: 0 0 12px;
    padding: 0;
    border: 0 !important;
    color: #0b1219 !important;
    font-family: 'Fraunces', ui-serif, Georgia, serif;
    font-weight: 500;
    font-size: clamp(18px, 2.2vw, 22px);
    letter-spacing: -0.01em;
}
.help-content .alert.alert-secondary ul,
.help-content .alert.alert-secondary ol,
.help-content .alert-secondary ul,
.help-content .alert-secondary ol,
.help-content div.mt-8.p-4.rounded-lg ul,
.help-content div.mt-8.p-4.rounded-lg ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.help-content .alert.alert-secondary li,
.help-content .alert-secondary li,
.help-content div.mt-8.p-4.rounded-lg li {
    margin: 0;
    padding: 0;
}
.help-content .alert.alert-secondary a,
.help-content .alert-secondary a,
.help-content div.mt-8.p-4.rounded-lg a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #c7bca3 !important;
    background: #f7f1e2 !important;
    color: #5386b6 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.help-content .alert.alert-secondary a::before,
.help-content .alert-secondary a::before,
.help-content div.mt-8.p-4.rounded-lg a::before {
    content: ">";
    color: #b0392b;
    font-weight: 700;
    line-height: 1;
}
.help-content .alert.alert-secondary a:hover,
.help-content .alert-secondary a:hover,
.help-content div.mt-8.p-4.rounded-lg a:hover {
    color: #0b2545 !important;
    border-color: #5386b6 !important;
    background: #ede5d0 !important;
    transform: translateX(1px);
}
@media (min-width: 880px) {
    .help-content .alert.alert-secondary ul,
    .help-content .alert.alert-secondary ol,
    .help-content .alert-secondary ul,
    .help-content .alert-secondary ol,
    .help-content div.mt-8.p-4.rounded-lg ul,
    .help-content div.mt-8.p-4.rounded-lg ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
        row-gap: 10px;
    }
}
@media (max-width: 639px) {
    .help-content .alert.alert-secondary,
    .help-content .alert-secondary,
    .help-content div.mt-8.p-4.rounded-lg {
        padding: 16px;
    }
}

/* ═══════════════════════════════════════════════════
   Blazor Reconnection Modal — Custom Foreman UI
   Blazor adds CSS classes to #components-reconnect-modal:
     .components-reconnect-show    → attempting
     .components-reconnect-failed  → all retries exhausted
     .components-reconnect-rejected → server refused (new deploy, etc.)
     .components-reconnect-hide    → connected / hidden
═══════════════════════════════════════════════════ */

/* Base: hidden */
.foreman-reconnect-modal {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 99999;
    font-family: Montserrat, Helvetica, Arial, sans-serif;
}

/* When dismissed by user, hide the toast */
.foreman-reconnect-modal.foreman-reconnect-dismissed {
    display: none !important;
}

/* Show when Blazor adds its state classes */
.components-reconnect-show,
.components-reconnect-failed,
.components-reconnect-rejected {
    display: block !important;
}

/* Card */
.foreman-reconnect-card {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.75rem 1.5rem;
    width: 22rem;
    text-align: center;
    box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: foreman-reconnect-slide-up 0.3s ease-out;
}

/* Dismiss button */
.foreman-reconnect-dismiss {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.foreman-reconnect-dismiss:hover {
    background: #f1f5f9;
    color: #475569;
}

/* Top offline banner — shown when toast is dismissed */
.foreman-offline-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: #fef3c7;
    color: #92400e;
    font-family: Montserrat, Helvetica, Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    padding: 0.375rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: foreman-reconnect-fade-in 0.2s ease-out;
}
.foreman-offline-banner.foreman-offline-banner-visible {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.foreman-offline-banner button {
    background: none;
    border: none;
    color: #92400e;
    text-decoration: underline;
    font: inherit;
    cursor: pointer;
    padding: 0;
}
.foreman-offline-banner button:hover {
    color: #78350f;
}

/* State visibility: hide all inner divs by default, show the right one */
.foreman-reconnect-attempting,
.foreman-reconnect-failed,
.foreman-reconnect-rejected {
    display: none;
}
.components-reconnect-show .foreman-reconnect-attempting { display: block; }
.components-reconnect-failed .foreman-reconnect-failed   { display: block; }
.components-reconnect-rejected .foreman-reconnect-rejected { display: block; }

/* Icon ring — animated spinner */
.foreman-reconnect-icon-ring {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: foreman-reconnect-pulse 2s ease-in-out infinite;
}

.foreman-reconnect-spinner {
    width: 1.5rem;
    height: 1.5rem;
    animation: foreman-reconnect-spin 1.5s linear infinite;
}

/* Icon circles for failed / rejected */
.foreman-reconnect-icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foreman-reconnect-icon-circle svg {
    width: 1.5rem;
    height: 1.5rem;
}

.foreman-reconnect-icon-failed {
    background: #fef2f2;
    color: #ef4444;
}

.foreman-reconnect-icon-rejected {
    background: #fff7ed;
    color: #f97316;
}

/* Typography */
.foreman-reconnect-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.foreman-reconnect-message {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

/* Progress bar (attempting state) */
.foreman-reconnect-bar-track {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.foreman-reconnect-bar-fill {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #5386b6, #7ba8d4);
    border-radius: 2px;
    animation: foreman-reconnect-progress 1.8s ease-in-out infinite;
}

/* Countdown bar (rejected retry state) */
.foreman-reconnect-countdown-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #5386b6, #7ba8d4);
    border-radius: 2px;
    /* transition set dynamically by JS */
}

/* Reload button */
.foreman-reconnect-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #5386b6;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.foreman-reconnect-btn:hover {
    background: #3b6d99;
    transform: translateY(-1px);
}

.foreman-reconnect-btn:active {
    transform: translateY(0);
}

/* Animations */
@keyframes foreman-reconnect-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes foreman-reconnect-slide-up {
    from { opacity: 0; transform: translateX(20px) scale(0.97); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes foreman-reconnect-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes foreman-reconnect-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(83, 134, 182, 0.3); }
    50%      { box-shadow: 0 0 0 10px rgba(83, 134, 182, 0); }
}

@keyframes foreman-reconnect-progress {
    0%   { transform: translateX(-100%); }
    50%  { transform: translateX(150%); }
    100% { transform: translateX(-100%); }
}

