/*
 * Redesign 2026-10, WP-E2: page-level refresh for landings that keep their own templates
 * (subscription landing, upload landing). The FITS storage landing has its own fits.css.
 * Loaded after apm.css via site_asset('css/refresh.css') from the templates that need it.
 * px only (Metronic sets html{font-size:13px}).
 */

/* --------------------------------------------------------------------------
   Author profile (/author/{slug}): old neutral greys -> new blue-cast surfaces,
   breathing room above the footer. The page's own <style> sits in <body>, so these
   rules use body.apm-public for higher specificity instead of !important.
   -------------------------------------------------------------------------- */
body.apm-public .author-profile-main {
    padding-bottom: 72px;
}

body.apm-public .author-profile-header {
    background: var(--apm-gradient-surface, var(--apm-surface));
    border: 1px solid var(--apm-border);
}

body.apm-public .author-profile-main .dataset-card {
    background: var(--apm-surface);
    border: 1px solid var(--apm-border);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

body.apm-public .author-profile-main .dataset-card:hover {
    border-color: var(--apm-accent-border);
}

body.apm-public .author-profile-main .section-title {
    margin-top: 40px;
}

/* Stat cells: surface + 2px accent rule on the left (same idea as .apm-stat), display-font numbers. */
body.apm-public .author-profile-main .stat-badge {
    position: relative;
    background: var(--apm-surface);
    border: 1px solid var(--apm-border);
    border-radius: var(--apm-radius);
    padding: 18px 20px;
    overflow: hidden;
}

body.apm-public .author-profile-main .stat-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 2px;
    border-radius: 2px;
    background: var(--apm-accent);
}

body.apm-public .author-profile-main .stat-badge .stat-number {
    font-family: var(--apm-font-display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--apm-text);
}

body.apm-public .author-profile-main .stat-badge .stat-label {
    margin-top: 4px;
    font-size: 13px;
    color: var(--apm-text-muted);
}

/* --------------------------------------------------------------------------
   Dataset detail page, guest view (front-image-details). CSS only: no markup,
   form, tracking or behaviour changes. The page's own <style> blocks sit in
   <body>, so rules are prefixed with body.apm-public .image-details-main.
   -------------------------------------------------------------------------- */

/* Card surfaces: blue-cast gradient fill, hairline border, design radius. */
/* !important only because the page's own ".section-darker .card" glass rule uses it. */
body.apm-public .image-details-main .card {
    background: var(--apm-gradient-surface, var(--apm-surface)) !important;
    border: 1px solid var(--apm-border) !important;
    border-radius: var(--apm-radius);
    box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.8) !important;
}

body.apm-public .image-details-main .card > .card-header {
    background: transparent;
}

/* Price: display font, bigger, the most prominent number on the page. */
body.apm-public .image-details-main .price-pill {
    font-family: var(--apm-font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
    padding: 9px 22px;
    border-radius: 999px;
    border-color: var(--apm-accent-border);
    background: var(--apm-accent-tint);
    color: var(--apm-accent-light);
    font-variant-numeric: tabular-nums;
}

body.apm-public .image-details-main .free-pill {
    background: var(--apm-free-tint);
    border-color: var(--apm-free-border);
    color: var(--apm-free-light);
    border-radius: 999px;
    padding: 5px 14px;
}

/* Main CTA (add to cart / download): the site primary button. */
body.apm-public .image-details-main .detail-btn-cta {
    min-height: 54px;
    border-radius: 12px;
    background: var(--apm-gradient-accent, linear-gradient(135deg, #FF9A1F 0%, #FF7F00 100%));
    color: var(--apm-accent-ink);
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(255, 127, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.apm-public .image-details-main .detail-btn-cta:hover,
body.apm-public .image-details-main .detail-btn-cta:focus {
    color: var(--apm-accent-ink);
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 14px 34px rgba(255, 127, 0, 0.42);
}

body.apm-public .image-details-main .detail-btn-cta:focus-visible {
    outline: 2px solid var(--apm-accent-light);
    outline-offset: 2px;
}

body.apm-public .image-details-main .detail-btn-cta i {
    color: inherit;
}

/* Data tiles (acquisition time, Bortle, location, dates): bordered tiles, mono values. */
body.apm-public .image-details-main .acquisition-block {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--apm-border);
    border-radius: 12px;
}

body.apm-public .image-details-main .acquisition-label {
    font-size: 11px !important;
    letter-spacing: 0.06em;
}

/* Equipment chips. */
body.apm-public .image-details-main .equipment-pill {
    border-color: var(--apm-border-light);
    background: rgba(16, 23, 38, 0.7);
    color: var(--apm-text-secondary);
    border-radius: 999px;
}

/* Frames table: quieter header, mono numbers, total stays visible on phones. */
body.apm-public .image-details-main .frames-header-row {
    background: rgba(255, 255, 255, 0.04);
    color: var(--apm-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Mono for the numeric columns only; the filter name (first column) stays in the body font. */
body.apm-public .image-details-main .frames-data-row > div:not(:first-child),
body.apm-public .image-details-main .frames-total-row > div {
    font-family: var(--apm-font-mono);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

body.apm-public .image-details-main .frames-total-row {
    background: var(--apm-accent-tint);
    border: 1px solid var(--apm-accent-border);
}

@media (max-width: 760px) {
    /* The total column is hidden on phones by .hide-mobile, which left an empty orange bar. */
    body.apm-public .image-details-main .frames-total-row > div:not(.hide-mobile) {
        display: none;
    }

    body.apm-public .image-details-main .frames-total-row > .hide-mobile {
        display: block;
        flex: 0 0 100%;
        max-width: 100%;
        text-align: right !important;
    }
}

/* Detail page typography (public type system, owner request 2026-10-02). */
body.apm-public .image-details-main .desc-label {
    color: var(--apm-text);
    font-family: var(--apm-font-display);
    font-size: 17px !important; /* the page's own rule is 15px !important */
    font-weight: 650;
    letter-spacing: -0.01em;
}

body.apm-public .image-details-main .desc-label.orange {
    color: var(--apm-accent-light);
}

body.apm-public .image-details-main .text-gray-600 {
    color: var(--apm-text-secondary) !important;
}

body.apm-public .image-details-main .pb-5.fs-6 .text-gray-600 {
    font-size: 15px;
    line-height: 1.7;
}

body.apm-public .image-details-main .acquisition-block .fs-6 {
    color: var(--apm-text) !important;
    font-size: 15px !important;
}

body.apm-public .image-details-main .answer {
    color: var(--apm-text-secondary);
    font-size: 15px !important;
    line-height: 1.7;
}

body.apm-public .image-details-main .rotate.answer {
    color: var(--apm-accent-light);
    font-family: var(--apm-font-display);
    font-size: 16px !important;
    font-weight: 650;
}

body.apm-public .image-details-main ul li {
    color: var(--apm-text-secondary);
    font-size: 15px !important; /* page rule "ul li" sets 14px !important */
    line-height: 1.65;
}

body.apm-public .image-details-main .alert.alert-success {
    font-size: 15px;
    line-height: 1.6;
}

body.apm-public .image-details-main .equipment-pill {
    font-size: 13px;
}

body.apm-public .image-details-main .free-pill {
    font-size: 12px;
}

body.apm-public .image-details-main .detail-sample-label {
    font-size: 12px;
}

/* Reviews: rem sizes on a 13px root made them tiny. */
body.apm-public .image-details-main .apm-reviews-subtitle {
    color: var(--apm-text-muted);
    font-size: 15px;
}

body.apm-public .image-details-main .apm-reviews-count-line {
    color: var(--apm-text-muted);
    font-size: 13px;
}

body.apm-public .image-details-main .apm-review-name {
    color: var(--apm-text);
    font-size: 15px;
}

body.apm-public .image-details-main .apm-review-date {
    color: var(--apm-text-muted);
    font-family: var(--apm-font-mono);
    font-size: 12px;
}

body.apm-public .image-details-main .apm-review-text {
    color: var(--apm-text-secondary);
    font-size: 15px;
    line-height: 1.65;
}

body.apm-public .image-details-main .publication-link {
    font-size: 14px;
}

/* Detail page: heading-like blocks in the display font (same system as the homepage cards). */
body.apm-public .image-details-main .subtitle-card .fw-bold {
    font-family: var(--apm-font-display);
    font-size: 17px !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

body.apm-public .image-details-main .author-info-bar .fw-bold {
    font-family: var(--apm-font-display);
    font-size: 16px !important;
    font-weight: 650 !important;
}

body.apm-public .image-details-main .author-info-bar .text-muted {
    color: var(--apm-text-muted) !important;
    font-size: 12px !important;
}

/* Data tile values read as data: display font, like prices and stat numbers. */
body.apm-public .image-details-main .acquisition-block .fs-6 {
    font-family: var(--apm-font-display);
    font-weight: 600;
    letter-spacing: -0.005em;
}

/* --------------------------------------------------------------------------
   Showcase detail (/showcase/{id}/{slug}), guest view: foundation surfaces,
   display-font titles and names, public text scale. Like/comment/share/follow
   markup, ids and data attributes are unchanged.
   -------------------------------------------------------------------------- */
body.apm-public .showcase-breadcrumb {
    flex-wrap: wrap;
    max-width: 100%;
}

body.apm-public .showcase-breadcrumb a {
    color: var(--apm-text-secondary);
    text-decoration: none;
}

body.apm-public .showcase-breadcrumb a:hover {
    color: var(--apm-accent-light);
}

body.apm-public .showcase-page-header .am-page-header-subtitle strong {
    color: var(--apm-text);
    font-weight: 600;
}

body.apm-public .showcase-page {
    padding-top: 0;
    padding-bottom: 40px;
}

body.apm-public .showcase-page .card {
    border: 1px solid var(--apm-border);
    border-radius: var(--apm-radius);
    background: var(--apm-gradient-surface);
    box-shadow: var(--apm-shadow-card);
}

body.apm-public .showcase-page .card.showcase-meta-card {
    border-left: 3px solid var(--apm-accent);
}

body.apm-public .showcase-page .card-body > h5,
body.apm-public .showcase-page .card-body h6,
body.apm-public .showcase-page h3 {
    color: var(--apm-text) !important;
    font-size: 19px;
    font-weight: 650 !important;
    letter-spacing: -0.01em;
}

body.apm-public .showcase-page h3 {
    font-size: 22px;
}

@media (min-width: 768px) {
    body.apm-public .showcase-page h3 {
        font-size: 26px;
    }
}

body.apm-public .showcase-page .showcase-name {
    color: var(--apm-text) !important;
    font-family: var(--apm-font-display);
    font-size: 17px !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em;
}

body.apm-public .showcase-page a.showcase-name:hover {
    color: var(--apm-accent-light) !important;
}

/* Running text and small print at the public scale (Metronic .fs-* are !important). */
body.apm-public .showcase-page p.fs-6,
body.apm-public .showcase-page .comment-card p {
    color: var(--apm-text-secondary) !important;
    font-size: 15px !important;
    line-height: 1.7;
}

body.apm-public .showcase-page .text-muted.fs-7,
body.apm-public .showcase-page .text-muted.fs-8,
body.apm-public .showcase-page p.text-muted {
    color: var(--apm-text-muted) !important;
    font-size: 13px !important;
}

body.apm-public .showcase-page .card .fw-bold.d-block {
    color: var(--apm-text) !important;
    font-size: 15px;
}

body.apm-public .showcase-page .comment-card {
    border-radius: 12px !important;
}

body.apm-public .showcase-page .comment-card .fw-bold {
    color: var(--apm-text) !important;
    font-size: 15px;
}

/* Image details table: muted labels, mono values. */
body.apm-public .showcase-page .table {
    font-size: 14px !important;
}

body.apm-public .showcase-page .table td {
    border-color: var(--apm-border) !important;
}

body.apm-public .showcase-page .table td.text-muted {
    color: var(--apm-text-muted) !important;
}

body.apm-public .showcase-page .table td.text-end {
    color: var(--apm-text) !important;
    font-family: var(--apm-font-mono);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

/* Like button and counter: same pill as the dataset page favourite button. */
body.apm-public .showcase-page .like-btn {
    border: 1px solid rgba(241, 65, 108, .3) !important;
    border-radius: 999px;
    background: rgba(241, 65, 108, .08) !important;
    color: var(--apm-text-secondary) !important;
    font-weight: 600;
}

body.apm-public .showcase-page .like-btn i,
body.apm-public .showcase-page .like-btn .ki-heart {
    color: #F1416C !important;
}

body.apm-public .showcase-page .like-btn:hover,
body.apm-public .showcase-page .like-btn.liked {
    border-color: #F1416C !important;
    background: rgba(241, 65, 108, .16) !important;
    color: #FF8FA8 !important;
    transform: none;
}

/* Share buttons: outline buttons with brand-coloured icons. */
body.apm-public .showcase-page .card-body .d-flex.flex-column.gap-2 > .btn {
    height: 40px;
    border: 1px solid var(--apm-border-light) !important;
    border-radius: 12px;
    background: transparent !important;
    color: var(--apm-text-secondary) !important;
    font-size: 14px;
    font-weight: 600;
}

body.apm-public .showcase-page .card-body .d-flex.flex-column.gap-2 > .btn:hover {
    border-color: var(--apm-accent-border) !important;
    background: rgba(255, 127, 0, .06) !important;
    color: var(--apm-text) !important;
}

body.apm-public .showcase-page .fa-facebook-f {
    color: #1877F2 !important;
}

body.apm-public .showcase-page .fa-x-twitter {
    color: #FFFFFF !important;
}

body.apm-public .showcase-page .showcase-copy-link-btn i,
body.apm-public .showcase-page .showcase-native-share-btn i {
    color: var(--apm-accent-light) !important;
}

/* "More results" cards: same treatment as the gallery cards. */
body.apm-public .showcase-page .showcase-more-card {
    overflow: hidden;
}

body.apm-public .showcase-page .showcase-more-title {
    color: var(--apm-text) !important;
    font-family: var(--apm-font-display);
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

body.apm-public .showcase-page .showcase-more-card:hover {
    border-color: var(--apm-accent-border);
}
