/* ArtsyStudios customer portal layer. */

:root {
    --portal-ink: #353639;
    --portal-muted: #808080;
    --portal-line: #d8d8d8;
    --portal-paper: #edeee1;
    --portal-paper-soft: #f5f5ee;
    --portal-accent: #768fee;
}

body.portal-page {
    min-height: 100vh;
    background: var(--portal-paper);
    color: var(--portal-muted);
}

body.portal-auth-page {
    display: block;
}

.portal-page a {
    text-decoration: none;
}

.portal-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    transform: translateY(-160%);
    border-radius: 70px;
    padding: 13px 18px;
    background: var(--portal-ink);
    color: var(--portal-paper);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.25s ease;
}

.portal-skip-link:focus {
    transform: translateY(0);
}

.portal-top-panel {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 120px;
    padding: 22px 40px;
    background: rgba(237, 238, 225, 0.94);
    border-bottom: 1px solid rgba(53, 54, 57, 0.12);
    backdrop-filter: blur(14px);
}

.portal-logo {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: var(--portal-ink);
}

.portal-logo img {
    width: 168px;
    height: auto;
    display: block;
}

.portal-logo span {
    border-left: 1px solid rgba(53, 54, 57, 0.22);
    padding-left: 18px;
    color: var(--portal-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.portal-top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.portal-text-link,
.portal-status-pill,
.portal-menu-toggle,
.portal-logout-button {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.portal-text-link {
    color: var(--portal-ink);
}

.portal-text-link:hover {
    color: var(--portal-accent);
}

.portal-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border-radius: 70px;
    padding: 0 18px;
    background: var(--portal-ink);
    color: var(--portal-paper);
}

.portal-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding-left: 6px;
    color: var(--portal-ink);
}

.portal-user-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--portal-accent);
    color: var(--portal-ink);
    font-size: 12px;
    font-weight: 800;
}

.portal-user-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.portal-user-copy strong,
.portal-user-copy small {
    display: block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-user-copy strong {
    color: var(--portal-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.portal-user-copy small {
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1;
}

.portal-logout-form {
    margin: 0;
}

.portal-logout-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border: 0;
    border-radius: 70px;
    padding: 0 18px;
    background: transparent;
    box-shadow: 0 0 0 2px var(--portal-ink);
    color: var(--portal-ink);
    cursor: pointer;
    transition: transform 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.portal-logout-button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 0 2px var(--portal-accent);
    color: var(--portal-accent);
}

.portal-menu-toggle {
    display: none;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    border: 0;
    border-radius: 70px;
    padding: 0 16px;
    background: var(--portal-ink);
    color: var(--portal-paper);
    cursor: pointer;
}

.portal-menu-toggle i,
.portal-menu-toggle i::before,
.portal-menu-toggle i::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--portal-accent);
}

.portal-menu-toggle i {
    position: relative;
}

.portal-menu-toggle i::before,
.portal-menu-toggle i::after {
    content: "";
    position: absolute;
    left: 0;
    transition: transform 0.25s ease;
}

.portal-menu-toggle i::before {
    top: -7px;
}

.portal-menu-toggle i::after {
    top: 7px;
}

.portal-menu-open .portal-menu-toggle i {
    background: transparent;
}

.portal-menu-open .portal-menu-toggle i::before {
    transform: translateY(7px) rotate(45deg);
}

.portal-menu-open .portal-menu-toggle i::after {
    transform: translateY(-7px) rotate(-45deg);
}

.portal-shell {
    display: grid;
    grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
    min-height: calc(100vh - 120px);
}

.portal-sidebar {
    border-right: 1px solid rgba(53, 54, 57, 0.12);
}

.portal-sidebar-inner {
    position: sticky;
    top: 121px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 121px);
    padding: 50px 34px;
}

.portal-eyebrow {
    margin: 0 0 18px;
    color: var(--portal-accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.portal-nav {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--portal-line);
}

.portal-nav-link {
    display: flex;
    align-items: center;
    min-height: 62px;
    border-bottom: 1px solid var(--portal-line);
    color: var(--portal-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.portal-nav-link:hover,
.portal-nav-link.is-active {
    padding-left: 12px;
    color: var(--portal-ink);
}

.portal-nav-link.is-active {
    box-shadow: inset 4px 0 0 var(--portal-accent);
}

.portal-sidebar-note {
    margin-top: auto;
    padding-top: 28px;
    border-top: 1px solid var(--portal-line);
}

.portal-sidebar-note span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 18px;
    background: var(--portal-accent);
    color: var(--portal-ink);
    font-size: 12px;
    font-weight: 800;
}

.portal-sidebar-note p {
    margin: 0;
    color: var(--portal-ink);
    font-size: 15px;
    line-height: 1.55;
}

.portal-sidebar-note small {
    display: block;
    margin-top: 18px;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
}

.portal-main {
    padding: 78px 72px 92px;
}

.portal-main:focus {
    outline: none;
}

.portal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 60px;
    align-items: end;
    padding-bottom: 76px;
    border-bottom: 1px solid var(--portal-line);
}

.portal-title,
.portal-section-title {
    margin: 0;
    color: var(--portal-ink);
    font-family: "Anton", sans-serif;
    font-weight: 100;
    letter-spacing: 0;
    text-transform: uppercase;
}

.portal-title {
    max-width: 820px;
    font-size: 82px;
    line-height: 0.98;
}

.portal-intro {
    max-width: 620px;
    margin: 28px 0 0;
    color: var(--portal-muted);
    font-size: 18px;
    line-height: 1.65;
}

.portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 38px;
}

.portal-hero-card {
    min-height: 300px;
    padding: 34px 0 0 34px;
    border-left: 4px solid var(--portal-accent);
    color: var(--portal-ink);
}

.portal-card-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 82px;
    background: var(--portal-accent);
    color: var(--portal-ink);
    font-size: 18px;
    font-weight: 800;
}

.portal-hero-card h2 {
    margin: 0 0 18px;
    color: var(--portal-ink);
    font-family: "Anton", sans-serif;
    font-size: 42px;
    font-weight: 100;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.portal-hero-card p {
    margin: 0;
    color: var(--portal-muted);
    font-size: 16px;
    line-height: 1.6;
}

.portal-section {
    padding: 58px 0;
    border-bottom: 1px solid var(--portal-line);
}

.portal-metrics,
.portal-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--portal-line);
    border-bottom: 1px solid var(--portal-line);
}

.portal-metric,
.portal-module-card {
    min-height: 210px;
    border-right: 1px solid var(--portal-line);
    padding: 28px;
}

.portal-metric:last-child,
.portal-module-card:last-child {
    border-right: 0;
}

.portal-metric p,
.portal-module-card span {
    margin: 0;
    color: var(--portal-accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-metric strong {
    display: block;
    margin: 34px 0 24px;
    color: var(--portal-ink);
    font-family: "Anton", sans-serif;
    font-size: 64px;
    font-weight: 100;
    line-height: 1;
}

.portal-metric-value.is-word {
    font-size: 44px;
    line-height: 0.98;
    overflow-wrap: anywhere;
}

.portal-metric span,
.portal-module-card p {
    display: block;
    margin: 0;
    color: var(--portal-muted);
    font-size: 14px;
    line-height: 1.6;
}

.portal-section-split {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.6fr);
    gap: 54px;
    align-items: start;
}

.portal-section-title {
    max-width: 560px;
    font-size: 54px;
    line-height: 1.02;
}

.portal-section-text {
    margin: 0;
    color: var(--portal-muted);
    font-size: 17px;
    line-height: 1.7;
}

.portal-module-grid {
    margin-top: 54px;
}

.portal-module-card {
    display: block;
    color: var(--portal-muted);
    transition: background-color 0.25s ease, padding-left 0.25s ease;
}

.portal-module-card:hover {
    padding-left: 40px;
    background: rgba(245, 245, 238, 0.48);
}

.portal-module-card-static {
    cursor: default;
}

.portal-module-card-static:hover {
    padding-left: 28px;
    background: transparent;
}

.portal-module-card span {
    display: block;
    margin-bottom: 42px;
}

.portal-module-card h3 {
    margin: 0 0 16px;
    color: var(--portal-ink);
    font-family: "Anton", sans-serif;
    font-size: 40px;
    font-weight: 100;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.portal-plain-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 260px);
    max-width: 820px;
}

.portal-plain-page .mil-btn {
    align-self: flex-start;
    margin-top: 36px;
}

.portal-login-page {
    min-height: 100vh;
    padding: 40px;
}

.portal-login-page:focus {
    outline: none;
}

.portal-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 80px;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.portal-login-logo {
    display: inline-flex;
    margin-bottom: 86px;
}

.portal-login-logo img {
    width: 168px;
    height: auto;
    display: block;
}

.portal-login-brand .portal-title {
    max-width: 620px;
}

.portal-login-panel {
    border-left: 4px solid var(--portal-accent);
    padding-left: 44px;
}

.portal-form-message {
    margin: 0 0 28px;
    border-bottom: 1px solid var(--portal-line);
    padding-bottom: 18px;
    color: var(--portal-ink);
    font-size: 15px;
    line-height: 1.55;
}

.portal-form-message.is-error {
    color: #8b1c29;
}

.portal-form-message.is-success {
    color: #355e3b;
}

.portal-login-form {
    width: 100%;
}

.portal-field {
    margin-bottom: 28px;
}

.portal-field label {
    display: block;
    margin-bottom: 12px;
    color: var(--portal-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.portal-field input {
    width: 100%;
    height: 62px;
    border: 0;
    border-bottom: 1px solid rgba(53, 54, 57, 0.34);
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: var(--portal-ink);
    font-family: "Outfit", sans-serif;
    font-size: 18px;
    line-height: 1;
    outline: none;
    transition: border-color 0.25s ease;
}

.portal-field input:focus {
    border-bottom-color: var(--portal-accent);
}

.portal-login-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
    margin-top: 36px;
}

.portal-forgot-link {
    color: var(--portal-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.portal-forgot-link:hover {
    color: var(--portal-accent);
}

@media (max-width: 1180px) {
    .portal-shell {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .portal-sidebar-inner {
        padding: 42px 26px;
    }

    .portal-main {
        padding: 62px 44px 78px;
    }

    .portal-hero {
        grid-template-columns: 1fr;
    }

    .portal-hero-card {
        max-width: 460px;
    }

    .portal-metrics,
    .portal-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-metric:nth-child(2n),
    .portal-module-card:nth-child(2n) {
        border-right: 0;
    }

    .portal-metric:nth-child(n + 3),
    .portal-module-card:nth-child(n + 3) {
        border-top: 1px solid var(--portal-line);
    }
}

@media (max-width: 860px) {
    .portal-top-panel {
        min-height: 92px;
        padding: 18px 22px;
    }

    .portal-logo img {
        width: 132px;
    }

    .portal-logo span,
    .portal-text-link,
    .portal-status-pill,
    .portal-user-copy {
        display: none;
    }

    .portal-menu-toggle {
        display: inline-flex;
    }

    .portal-shell {
        display: block;
        min-height: calc(100vh - 92px);
    }

    .portal-sidebar {
        position: fixed;
        inset: 92px 0 auto 0;
        z-index: 40;
        border-right: 0;
        border-bottom: 1px solid rgba(53, 54, 57, 0.12);
        background: rgba(237, 238, 225, 0.98);
        transform: translateY(-120%);
        transition: transform 0.28s ease;
    }

    .portal-menu-open .portal-sidebar {
        transform: translateY(0);
    }

    .portal-sidebar-inner {
        position: static;
        min-height: auto;
        padding: 28px 22px;
    }

    .portal-sidebar-note {
        display: none;
    }

    .portal-main {
        padding: 48px 22px 70px;
    }

    .portal-title {
        font-size: 58px;
    }

    .portal-section-title {
        font-size: 44px;
    }

    .portal-section-split {
        grid-template-columns: 1fr;
    }

    .portal-login-page {
        padding: 28px 22px;
    }

    .portal-login-shell {
        grid-template-columns: 1fr;
        gap: 48px;
        min-height: calc(100vh - 56px);
    }

    .portal-login-logo {
        margin-bottom: 64px;
    }

    .portal-login-panel {
        padding-left: 28px;
    }
}

@media (max-width: 560px) {
    .portal-main {
        padding: 38px 18px 58px;
    }

    .portal-hero {
        gap: 36px;
        padding-bottom: 48px;
    }

    .portal-title {
        font-size: 42px;
    }

    .portal-intro {
        font-size: 16px;
    }

    .portal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-actions .mil-btn,
    .portal-plain-page .mil-btn {
        justify-content: center;
    }

    .portal-hero-card {
        min-height: 0;
        padding: 26px 0 0 24px;
    }

    .portal-card-index {
        margin-bottom: 48px;
    }

    .portal-metrics,
    .portal-module-grid {
        grid-template-columns: 1fr;
    }

    .portal-metric,
    .portal-module-card,
    .portal-metric:nth-child(2n),
    .portal-module-card:nth-child(2n) {
        border-right: 0;
    }

    .portal-metric + .portal-metric,
    .portal-module-card + .portal-module-card {
        border-top: 1px solid var(--portal-line);
    }

    .portal-section {
        padding: 44px 0;
    }

    .portal-section-title {
        font-size: 36px;
    }

    .portal-metric-value.is-word {
        font-size: 38px;
    }

    .portal-module-grid {
        margin-top: 44px;
    }

    .portal-top-actions {
        gap: 10px;
    }

    .portal-user-pill {
        display: none;
    }

    .portal-logout-button {
        min-height: 38px;
        padding: 0 14px;
    }

    .portal-login-page {
        padding: 22px 18px;
    }

    .portal-login-logo img {
        width: 132px;
    }

    .portal-login-panel {
        padding-left: 22px;
    }

    .portal-login-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-login-actions .mil-btn {
        justify-content: center;
    }
}
