/*
 * Aptomic Console — public home
 * Scoped to the default root route through body.aptomic-public-home.
 */

body.aptomic-public-home {
    --aptomic-home-canvas: #ffffff;
    --aptomic-home-subtle: #f9fafb;
    --aptomic-home-soft: #f3f4f6;
    --aptomic-home-border: #e5e7eb;
    --aptomic-home-border-strong: #d1d5db;
    --aptomic-home-ink: #111827;
    --aptomic-home-secondary: #4b5563;
    --aptomic-home-muted: #6b7280;
    --aptomic-home-blue: #2563eb;
    --aptomic-home-blue-hover: #1d4ed8;
    --aptomic-home-sun: #ffc12e;
    min-width: 0;
    margin: 0;
    background: var(--aptomic-home-canvas) !important;
    color: var(--aptomic-home-ink);
}

body.aptomic-public-home #wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--aptomic-home-canvas);
}

body.aptomic-public-home #wrapper > .container {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
}

body.aptomic-public-home #wrapper > .container > #headpart,
body.aptomic-public-home #wrapper > .container > #mainmenu-container,
body.aptomic-public-home #wrapper > .container > #submenu,
body.aptomic-public-home #wrapper > .container > footer {
    display: none;
}

body.aptomic-public-home #root,
body.aptomic-public-home #cont {
    float: none;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
}

body.aptomic-public-home #errors,
body.aptomic-public-home #infos {
    width: auto;
    max-width: 1240px;
    margin: 16px auto 0;
    padding: 0 32px;
}

body.aptomic-public-home .aptomic-home-shell {
    display: flex;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    background: var(--aptomic-home-canvas);
    color: var(--aptomic-home-ink);
}

body.aptomic-public-home .aptomic-home-skip {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--aptomic-home-ink);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    transform: translateY(-160%);
}

body.aptomic-public-home .aptomic-home-skip:focus {
    color: #ffffff;
    transform: translateY(0);
}

body.aptomic-public-home .aptomic-home-header {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--aptomic-home-border);
    background: rgba(255, 255, 255, 0.98);
}

body.aptomic-public-home .aptomic-home-header-inner {
    display: grid;
    width: 100%;
    max-width: 1240px;
    min-height: 76px;
    grid-template-columns: minmax(190px, 1fr) auto minmax(320px, 1fr);
    gap: 24px;
    align-items: center;
    margin: 0 auto;
    padding: 0 32px;
}

body.aptomic-public-home .aptomic-home-brand {
    justify-self: start;
    color: var(--aptomic-home-ink);
}

body.aptomic-public-home .aptomic-home-brand:hover,
body.aptomic-public-home .aptomic-home-brand:focus {
    color: var(--aptomic-home-ink);
}

body.aptomic-public-home .aptomic-home-brand .aptomic-wordmark-product {
    color: var(--aptomic-home-muted);
}

body.aptomic-public-home .aptomic-home-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

body.aptomic-public-home .aptomic-home-nav a,
body.aptomic-public-home .aptomic-home-login,
body.aptomic-public-home .aptomic-home-account {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--aptomic-home-secondary);
    font-size: 13px;
    font-weight: 650;
    line-height: 20px;
    white-space: nowrap;
}

body.aptomic-public-home .aptomic-home-nav a {
    padding: 0 12px;
}

body.aptomic-public-home .aptomic-home-nav a:hover,
body.aptomic-public-home .aptomic-home-nav a:focus,
body.aptomic-public-home .aptomic-home-login:hover,
body.aptomic-public-home .aptomic-home-login:focus {
    background: var(--aptomic-home-subtle);
    color: var(--aptomic-home-ink);
}

body.aptomic-public-home .aptomic-home-utilities {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

body.aptomic-public-home .aptomic-home-language {
    margin: 0 4px 0 0;
}

body.aptomic-public-home .aptomic-home-language select {
    width: auto;
    max-width: 112px;
    min-height: 44px;
    margin: 0;
    padding: 7px 28px 7px 10px;
    border: 1px solid var(--aptomic-home-border);
    border-radius: 8px;
    background-color: var(--aptomic-home-canvas);
    color: var(--aptomic-home-secondary);
    font-size: 12px;
    line-height: 20px;
}

body.aptomic-public-home .aptomic-home-login {
    padding: 0 12px;
}

body.aptomic-public-home .aptomic-home-account {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--aptomic-home-border-strong);
    background: var(--aptomic-home-canvas);
    color: var(--aptomic-home-ink);
}

body.aptomic-public-home .aptomic-home-account:hover,
body.aptomic-public-home .aptomic-home-account:focus {
    border-color: #9ca3af;
    background: var(--aptomic-home-subtle);
    color: var(--aptomic-home-ink);
}

body.aptomic-public-home .aptomic-home-main {
    display: grid;
    width: 100%;
    max-width: 1240px;
    min-height: calc(100vh - 152px);
    min-height: calc(100dvh - 152px);
    flex: 1 0 auto;
    grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
    gap: clamp(56px, 7vw, 104px);
    align-items: center;
    margin: 0 auto;
    padding: clamp(64px, 8vw, 112px) 32px;
}

body.aptomic-public-home .aptomic-home-intro,
body.aptomic-public-home .aptomic-home-directory {
    min-width: 0;
}

body.aptomic-public-home .aptomic-home-copy {
    max-width: 700px;
}

body.aptomic-public-home .aptomic-home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--aptomic-home-secondary);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.12em;
    line-height: 18px;
    text-transform: uppercase;
}

body.aptomic-public-home .aptomic-home-kicker > span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--aptomic-home-sun);
}

body.aptomic-public-home .aptomic-home-intro h1 {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--aptomic-home-ink);
    font-size: clamp(46px, 5.1vw, 68px);
    font-weight: 650;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

body.aptomic-public-home .aptomic-home-intro p {
    max-width: 630px;
    margin: 24px 0 0;
    color: var(--aptomic-home-secondary);
    font-size: 18px;
    line-height: 1.65;
}

body.aptomic-public-home .aptomic-home-primary {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    padding: 0 18px;
    border: 1px solid var(--aptomic-home-blue);
    border-radius: 9px;
    background: var(--aptomic-home-blue);
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
    line-height: 20px;
}

body.aptomic-public-home .aptomic-home-primary:hover,
body.aptomic-public-home .aptomic-home-primary:focus {
    border-color: var(--aptomic-home-blue-hover);
    background: var(--aptomic-home-blue-hover);
    color: #ffffff;
}

body.aptomic-public-home .aptomic-home-primary:active {
    transform: translateY(1px);
}

body.aptomic-public-home .aptomic-home-primary svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
}

body.aptomic-public-home .aptomic-home-primary:hover svg,
body.aptomic-public-home .aptomic-home-primary:focus svg {
    transform: translateX(2px);
}

body.aptomic-public-home .aptomic-home-scope {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 36px;
    color: var(--aptomic-home-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
}

body.aptomic-public-home .aptomic-home-scope span {
    position: relative;
}

body.aptomic-public-home .aptomic-home-scope span + span::before {
    position: absolute;
    top: 50%;
    left: -12px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
    content: "";
    transform: translateY(-50%);
}

body.aptomic-public-home .aptomic-home-directory {
    padding-left: clamp(40px, 5vw, 72px);
    border-left: 1px solid var(--aptomic-home-border);
}

body.aptomic-public-home .aptomic-home-directory-heading > span {
    display: block;
    color: var(--aptomic-home-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 18px;
    text-transform: uppercase;
}

body.aptomic-public-home .aptomic-home-directory-heading h2 {
    margin: 7px 0 0;
    color: var(--aptomic-home-ink);
    font-size: 28px;
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

body.aptomic-public-home .aptomic-home-paths {
    display: block;
    margin-top: 26px;
    border-bottom: 1px solid var(--aptomic-home-border);
}

body.aptomic-public-home .aptomic-home-path {
    display: grid;
    min-width: 0;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    gap: 14px;
    align-items: center;
    margin: 0 -12px;
    padding: 20px 12px;
    border-top: 1px solid var(--aptomic-home-border);
    border-radius: 8px;
    color: var(--aptomic-home-ink);
}

body.aptomic-public-home .aptomic-home-path:hover,
body.aptomic-public-home .aptomic-home-path:focus {
    background: var(--aptomic-home-subtle);
    color: var(--aptomic-home-ink);
}

body.aptomic-public-home .aptomic-home-path-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--aptomic-home-border);
    border-radius: 10px;
    background: var(--aptomic-home-canvas);
    color: var(--aptomic-home-blue);
}

body.aptomic-public-home .aptomic-home-path-icon svg,
body.aptomic-public-home .aptomic-home-path-arrow {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.aptomic-public-home .aptomic-home-path-copy {
    min-width: 0;
}

body.aptomic-public-home .aptomic-home-path-copy strong,
body.aptomic-public-home .aptomic-home-path-copy small {
    display: block;
}

body.aptomic-public-home .aptomic-home-path-copy strong {
    color: var(--aptomic-home-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

body.aptomic-public-home .aptomic-home-path-copy small {
    margin-top: 5px;
    color: var(--aptomic-home-muted);
    font-size: 12px;
    line-height: 1.5;
}

body.aptomic-public-home .aptomic-home-path-arrow {
    color: #9ca3af;
    transition: color 160ms ease, transform 160ms ease;
}

body.aptomic-public-home .aptomic-home-path:hover .aptomic-home-path-arrow,
body.aptomic-public-home .aptomic-home-path:focus .aptomic-home-path-arrow {
    color: var(--aptomic-home-blue);
    transform: translateX(2px);
}

body.aptomic-public-home .aptomic-home-footer {
    display: flex;
    width: 100%;
    max-width: 1240px;
    min-height: 76px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    padding: 20px 32px;
    border: 0;
    border-top: 1px solid var(--aptomic-home-border);
    color: var(--aptomic-home-muted);
    font-size: 12px;
    line-height: 18px;
}

body.aptomic-public-home a:focus,
body.aptomic-public-home button:focus,
body.aptomic-public-home select:focus,
body.aptomic-public-home a:focus-visible,
body.aptomic-public-home button:focus-visible,
body.aptomic-public-home select:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}

@media (max-width: 1080px) {
    body.aptomic-public-home .aptomic-home-header-inner {
        grid-template-columns: minmax(170px, 1fr) auto minmax(280px, 1fr);
        gap: 16px;
    }

    body.aptomic-public-home .aptomic-home-main {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
        gap: 48px;
    }

    body.aptomic-public-home .aptomic-home-directory {
        padding-left: 40px;
    }
}

@media (max-width: 880px) {
    body.aptomic-public-home .aptomic-home-header-inner {
        grid-template-columns: minmax(180px, 1fr) auto;
        min-height: 72px;
    }

    body.aptomic-public-home .aptomic-home-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        margin: 0 -8px;
        padding: 8px 0;
        border-top: 1px solid var(--aptomic-home-border);
    }

    body.aptomic-public-home .aptomic-home-utilities {
        grid-column: 2;
        grid-row: 1;
    }

    body.aptomic-public-home .aptomic-home-main {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 56px;
        padding-top: 72px;
        padding-bottom: 64px;
    }

    body.aptomic-public-home .aptomic-home-copy {
        max-width: 760px;
    }

    body.aptomic-public-home .aptomic-home-directory {
        padding: 44px 0 0;
        border-top: 1px solid var(--aptomic-home-border);
        border-left: 0;
    }

    body.aptomic-public-home .aptomic-home-directory-heading,
    body.aptomic-public-home .aptomic-home-paths {
        max-width: 680px;
    }
}

@media (max-width: 620px) {
    body.aptomic-public-home #errors,
    body.aptomic-public-home #infos {
        padding: 0 20px;
    }

    body.aptomic-public-home .aptomic-home-header-inner {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 20px 0;
    }

    body.aptomic-public-home .aptomic-home-brand {
        grid-column: 1;
        grid-row: 1;
    }

    body.aptomic-public-home .aptomic-home-utilities {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    body.aptomic-public-home .aptomic-home-nav {
        grid-row: 3;
        gap: 0;
        margin-top: 4px;
    }

    body.aptomic-public-home .aptomic-home-main {
        gap: 48px;
        padding: 56px 20px 48px;
    }

    body.aptomic-public-home .aptomic-home-intro h1 {
        margin-top: 18px;
        font-size: clamp(40px, 11.5vw, 52px);
        letter-spacing: -0.05em;
    }

    body.aptomic-public-home .aptomic-home-intro p {
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.6;
    }

    body.aptomic-public-home .aptomic-home-primary {
        width: 100%;
        margin-top: 28px;
    }

    body.aptomic-public-home .aptomic-home-scope {
        margin-top: 28px;
    }

    body.aptomic-public-home .aptomic-home-directory {
        padding-top: 36px;
    }

    body.aptomic-public-home .aptomic-home-directory-heading h2 {
        font-size: 25px;
    }

    body.aptomic-public-home .aptomic-home-path {
        grid-template-columns: 42px minmax(0, 1fr) 18px;
        gap: 12px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    body.aptomic-public-home .aptomic-home-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        min-height: 0;
        padding: 22px 20px;
    }
}

@media (max-width: 390px) {
    body.aptomic-public-home .aptomic-home-language {
        flex: 0 0 auto;
        width: auto;
        margin-right: 0;
    }

    body.aptomic-public-home .aptomic-home-language select {
        width: 92px;
        max-width: 92px;
    }

    body.aptomic-public-home .aptomic-home-login {
        flex: 0 0 auto;
    }

    body.aptomic-public-home .aptomic-home-account {
        flex: 1 1 auto;
    }

    body.aptomic-public-home .aptomic-home-main {
        padding-right: 16px;
        padding-left: 16px;
    }

    body.aptomic-public-home .aptomic-home-scope {
        gap: 8px 18px;
    }

    body.aptomic-public-home .aptomic-home-path {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    body.aptomic-public-home .aptomic-home-path-icon {
        width: 40px;
        height: 40px;
    }

    body.aptomic-public-home .aptomic-home-path-arrow {
        display: none;
    }

    body.aptomic-public-home .aptomic-home-footer {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (max-width: 340px) {
    body.aptomic-public-home .aptomic-home-language {
        width: 100%;
    }

    body.aptomic-public-home .aptomic-home-language select {
        width: 100%;
        max-width: none;
    }

    body.aptomic-public-home .aptomic-home-login,
    body.aptomic-public-home .aptomic-home-account {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.aptomic-public-home *,
    body.aptomic-public-home *::before,
    body.aptomic-public-home *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    body.aptomic-public-home .aptomic-home-header,
    body.aptomic-public-home .aptomic-home-account,
    body.aptomic-public-home .aptomic-home-directory,
    body.aptomic-public-home .aptomic-home-path,
    body.aptomic-public-home .aptomic-home-path-icon,
    body.aptomic-public-home .aptomic-home-footer {
        border-color: currentColor;
    }

    body.aptomic-public-home .aptomic-home-kicker > span {
        background: CanvasText;
    }
}
