﻿

/* ---  CMS page body  --------------------------------------------------- */
.cms-body {
    width: min(100%, 1120px);
    margin: 0;
    padding: 1.5rem 1.25rem 2rem;
    line-height: 1.7;
}

.cms-notfound {
    text-align: center;
    padding: 4rem 1rem;
}

/* ---  #subscriptions# tag rendered output  ----------------------------- */
.cms-subscriptions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.cms-sub-card {
    background: var(--card, #fff);
    border: 1px solid #e5e9f0;
    border-radius: var(--radius-lg, 14px);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(16,24,40,0.06));
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cms-sub-card__name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.cms-sub-card__desc {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted, #6b7280);
    line-height: 1.5;
}

.cms-sub-card__apps {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cms-sub-app {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cms-sub-app__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent, #0078d4);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

    .cms-sub-app__link:hover {
        text-decoration: underline;
    }

.cms-sub-app__icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.cms-sub-app__desc {
    font-size: 0.8rem;
    color: var(--muted, #6b7280);
    line-height: 1.4;
}

/* ---  Global app tile  ----------------------------------------------- */
/* Used by My Apps page, Welcome page, and the footer My Apps section.    */
.app-tile {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 140px;
    height: 110px;
    padding: 0.9rem 0.75rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #f8f9fb 0%, #e8ecf2 40%, #d4dae5 70%, #e8ecf2 100%);
    border: 1px solid rgba(180,188,204,0.55);
    box-shadow: 0 2px 6px rgba(16,24,40,0.07), inset 0 1px 0 rgba(255,255,255,0.85);
    text-decoration: none;
    text-align: center;
    color: #1a2236;
    transition: transform 200ms cubic-bezier(.2,.9,.3,1), box-shadow 200ms ease, background 200ms ease;
}

    .app-tile:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 10px 28px rgba(16,24,40,0.13), inset 0 1px 0 rgba(255,255,255,0.9);
        background: linear-gradient(160deg, #ffffff 0%, #edf0f6 40%, #dce1ec 70%, #edf0f6 100%);
    }

    .app-tile:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(0,120,212,0.15), var(--shadow-md);
    }

.app-tile__icon {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12));
}

.app-tile__name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1a2236;
}

/* Footer tiles are slightly smaller */
.app-tile--sm {
    width: 110px;
    height: 90px;
}

    .app-tile--sm .app-tile__icon {
        font-size: 1.6rem;
    }

    .app-tile--sm .app-tile__name {
        font-size: 0.75rem;
    }

/* Welcome-page tiles are larger */
.app-tile--lg {
    width: 180px;
    height: 150px;
    border-radius: 16px;
}

    .app-tile--lg .app-tile__icon {
        font-size: 2.75rem;
    }

    .app-tile--lg .app-tile__name {
        font-size: 1rem;
        font-weight: 700;
    }

/* ---  Utility classes  --- */
.card {
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0,120,212,0.18);
    }



/* ---  CMS page body  --------------------------------------------------- */
.cms-body {
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.7;
}

.cms-notfound {
    text-align: center;
    padding: 4rem 1rem;
}

/* ---  #subscriptions# tag rendered output  ----------------------------- */
.cms-subscriptions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.cms-sub-card {
    background: var(--card, #fff);
    border: 1px solid #e5e9f0;
    border-radius: var(--radius-lg, 14px);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(16,24,40,0.06));
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cms-sub-card__name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.cms-sub-card__desc {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted, #6b7280);
    line-height: 1.5;
}

.cms-sub-card__apps {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cms-sub-app {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cms-sub-app__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent, #0078d4);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

    .cms-sub-app__link:hover {
        text-decoration: underline;
    }

.cms-sub-app__icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.cms-sub-app__desc {
    font-size: 0.8rem;
    color: var(--muted, #6b7280);
    line-height: 1.4;
}

/* ---  Global app tile  ----------------------------------------------- */
/* Used by My Apps page, Welcome page, and the footer My Apps section.    */
.app-tile {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 140px;
    height: 110px;
    padding: 0.9rem 0.75rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #f8f9fb 0%, #e8ecf2 40%, #d4dae5 70%, #e8ecf2 100%);
    border: 1px solid rgba(180,188,204,0.55);
    box-shadow: 0 2px 6px rgba(16,24,40,0.07), inset 0 1px 0 rgba(255,255,255,0.85);
    text-decoration: none;
    text-align: center;
    color: #1a2236;
    transition: transform 200ms cubic-bezier(.2,.9,.3,1), box-shadow 200ms ease, background 200ms ease;
}

    .app-tile:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 10px 28px rgba(16,24,40,0.13), inset 0 1px 0 rgba(255,255,255,0.9);
        background: linear-gradient(160deg, #ffffff 0%, #edf0f6 40%, #dce1ec 70%, #edf0f6 100%);
    }

    .app-tile:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(0,120,212,0.15), var(--shadow-md);
    }

.app-tile__icon {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12));
}

.app-tile__name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1a2236;
}

/* Footer tiles are slightly smaller */
.app-tile--sm {
    width: 110px;
    height: 90px;
}

    .app-tile--sm .app-tile__icon {
        font-size: 1.6rem;
    }

    .app-tile--sm .app-tile__name {
        font-size: 0.75rem;
    }

/* Welcome-page tiles are larger */
.app-tile--lg {
    width: 180px;
    height: 150px;
    border-radius: 16px;
}

    .app-tile--lg .app-tile__icon {
        font-size: 2.75rem;
    }

    .app-tile--lg .app-tile__name {
        font-size: 1rem;
        font-weight: 700;
    }

/* ---  Utility classes  --- */
.card {
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0,120,212,0.18);
    }

.container {
    width: 100%;
    max-width: 152rem;
    margin: 0 auto;
    display: grid;
    padding-right: 5rem;
    padding-left: 5rem;
}