/* article-mockups.css
   The "See in mockups" expander that sits under each palette embed on
   article pages. Everything is injected by /js/article-mockups.js, so the
   crawlable article HTML is unchanged. */

.am-wrap {
    margin: 6px 0 30px;
}

/* Trigger button */
.am-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 600 14px/1 'Roboto', system-ui, -apple-system, sans-serif;
    color: #1a1a1a;
    background: #fff;
    border: 1.5px solid #e3e3e6;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.am-trigger:hover { border-color: #bdbdbd; box-shadow: 0 4px 14px rgba(0, 0, 0, .07); }
.am-trigger:active { transform: translateY(1px); }
.am-trigger-ico { display: inline-flex; color: #6a6a70; }
.am-caret { opacity: .55; transition: transform .2s ease; font-size: 11px; }
.am-trigger[aria-expanded="true"] .am-caret { transform: rotate(180deg); }

/* Collapsible panel */
.am-panel {
    position: relative;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: max-height .3s ease, opacity .3s ease, margin-top .3s ease;
}
.am-panel.is-open {
    max-height: 600px;
    opacity: 1;
    margin-top: 14px;
}

/* Horizontal carousel */
.am-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 26px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
.am-viewport::-webkit-scrollbar { height: 7px; }
.am-viewport::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.am-track {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    width: max-content;
    padding: 0 6px;
}

.am-slide {
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}
.am-stage { position: relative; }            /* JS sets scaled width/height */
.am-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.am-caption {
    font: 500 12.5px 'Roboto', system-ui, sans-serif;
    color: #6a6a70;
    text-align: center;
}

/* End CTA -> full feed */
/* Prefixed with .am-panel so these win over the global .article-body a
   link colour (otherwise the CTA text inherits the site's blue). */
.am-panel .am-cta,
.am-panel .am-cta:link,
.am-panel .am-cta:visited {
    scroll-snap-align: center;
    flex: 0 0 auto;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    min-height: 210px;
    border-radius: 16px;
    text-decoration: none;
    padding: 26px 22px;
    text-align: center;
    background: #ffd43b;                 /* solid, punchy yellow */
    border: 2px solid #f2b705;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
    transition: transform .12s ease, box-shadow .12s ease;
}
.am-panel .am-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .17); }
.am-panel .am-cta-inner { display: block; }
.am-panel .am-cta strong {
    display: block;
    color: #a61e1e;                      /* red headline (AA on yellow) */
    font: 800 18px/1.25 'Roboto', system-ui, sans-serif;
    margin-bottom: 16px;
}
.am-panel .am-cta .am-cta-btn {
    display: inline-block;
    background: #e03131;                 /* the actual button: red bg */
    color: #fff;                         /* white label */
    font: 700 13.5px 'Roboto', system-ui, sans-serif;
    padding: 11px 20px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(224, 49, 49, .35);
    transition: background .12s ease;
}
.am-panel .am-cta:hover .am-cta-btn { background: #c92a2a; }

/* Arrow nav (desktop only; touch users swipe) */
.am-nav {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e3e3e6;
    background: rgba(255, 255, 255, .96);
    font-size: 24px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s ease;
}
.am-nav:hover { background: #fff; }
.am-prev { left: 2px; }
.am-next { right: 2px; }

/* Loading / error state */
.am-loading {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6a6a70;
    font: 500 14px 'Roboto', system-ui, sans-serif;
}
.am-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: am-spin .7s linear infinite;
}
@keyframes am-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
    .am-nav { display: none; }
    .am-panel.is-open { max-height: 540px; }
    .am-track { gap: 16px; }
}
