/* The sample herd (docs/features/SAMPLE_HERD_PREVIEW.md): the offer on the empty My Herd and the Herd's sign-in,
   the band and dashed frame that make every sample page read as a preview (G10), the Sample mark on a sample dollar
   total, and the footer's ways out. The footer is the sticky sell bar (pocket.css). */

/* The band: the sample kind's toolbar note (base.html, copy in services/pocket/nav.py SAMPLE_NOTE), pinned under
   the toolbar in the kind's amber, its pill inverted and in capitals. */
.pocket-toolbar-note[data-kind="sample"] {
    position: sticky;
    top: var(--pocket-top-chrome);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: var(--pocket-space-sm);
    margin: 0 0 var(--pocket-space-xl);
    padding: var(--pocket-space-sm) var(--pocket-space-md);
    border-bottom: 2px solid var(--kind-sample);
    border-radius: var(--pocket-radius-lg);
    background: var(--kind-sample-bg);
    color: var(--kind-sample);
    font-weight: 600;
}

.pocket-toolbar-note[data-kind="sample"] .pocket-toolbar-kind {
    flex: none;
    margin: 0;
}

/* The band's pill and the frame's tab: one inverted amber label. */
.pocket-toolbar-note[data-kind="sample"] .pocket-toolbar-kind,
[data-sample]::before {
    background: var(--kind-sample);
    color: var(--kind-sample-bg);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* The frame: a dashed amber border round the page, its tab label from pocket/routes.py SAMPLE_FRAME_LABEL. */
[data-sample] {
    position: relative;
    padding: var(--pocket-space-xl) var(--pocket-space-sm) var(--pocket-space-sm);
    border: 3px dashed var(--kind-sample);
    border-radius: var(--pocket-radius-xl);
}

[data-sample]::before {
    content: attr(data-sample);
    position: absolute;
    top: calc(-1 * var(--pocket-space-md));
    left: var(--pocket-space-md);
    padding: 2px var(--pocket-space-sm);
    border-radius: var(--pocket-radius-md);
    font-size: var(--pocket-font-size-xs);
    font-weight: 700;
}

.pocket-sample-offer {
    margin: 0 0 var(--pocket-space-xl);
    padding: var(--pocket-space-lg);
    border: 2px dashed var(--pocket-active);
    border-radius: var(--pocket-radius-xl);
    background: var(--pocket-card-bg);
    text-align: left;
}

.pocket-sample-offer-title {
    margin: 0 0 var(--pocket-space-sm);
    font-size: var(--pocket-font-size-lg);
    color: var(--pocket-text-primary);
}

/* On the sign-in page the offer sits under the sign-in card: the page's row (login.css) becomes a column only
   where this sheet loads, which is when the offer shows. */
.pocket-login {
    flex-direction: column;
}

.pocket-login .pocket-sample-offer {
    box-sizing: border-box;
    width: 100%;
    margin: var(--pocket-space-lg) 0 0;
}

.pocket-sample-offer-text,
.pocket-empty .pocket-sample-offer-text {
    margin: 0 0 var(--pocket-space-lg);
    font-size: var(--pocket-font-size-sm);
    line-height: 1.45;
}

/* The kind pill (pocket.css .pocket-toolbar-kind, in the sample's colours there) beside a dollar total. */
.pocket-sample-mark {
    margin: 0 0 0 var(--pocket-space-xs);
    vertical-align: middle;
}

.pocket-sample-footer-actions {
    display: flex;
    flex: 0 1 55%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--pocket-space-xs);
    text-align: center;
}

.pocket-sample-footer-actions .pocket-sell-bar-btn {
    max-width: none;
}

.pocket-sample-footer-links {
    display: flex;
    justify-content: space-between;
    gap: var(--pocket-space-sm);
}

.pocket-sample-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--pocket-target-min);
    color: var(--on-chrome);
    font-size: var(--pocket-font-size-xs);
    font-weight: 600;
}
