/* ==========================================================================
   Styles for the four sample pages:
   /staff-directories, /product-catalogs, /asset-registers, /property-listings
   Load after /guides/guide.css, which supplies the nav button, .shot-frame,
   .btn-gold, .cta-block and the focus styles.
   ========================================================================== */

.sample-note { margin: 0 0 2.5rem; color: #4B5563; font-size: 1rem; line-height: 1.5; }

/* ---- One sample: name, one line, page image, PDF link ---- */
.sample { display: grid; gap: 1.25rem; padding: 2.5rem 0; border-top: 1px solid #DDDBDA; }
.sample:first-of-type { padding-top: 0; border-top: 0; }
.sample h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    color: #004B8D;
    font-size: 1.875rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
}
.sample-lead { margin: 0; color: #374151; font-size: 1.0625rem; line-height: 1.65; }
.sample-figure { margin: 0; max-width: 600px; }
.sample-zoom { display: block; cursor: zoom-in; }
.sample-figure figcaption { margin-top: 0.7rem; color: #6B7280; font-size: 0.875rem; line-height: 1.5; text-align: center; }
.sample-link { margin: 0; color: #4B5563; font-size: 0.9375rem; line-height: 1.5; }
.sample-link a {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.35rem 0;
    color: #0070D2;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sample-link a:hover { color: #004B8D; }
@media (min-width: 1024px) {
    .sample {
        grid-template-columns: minmax(0, 1fr) 600px;
        grid-template-rows: auto 1fr;
        grid-template-areas: "head figure" "link figure";
        column-gap: 4rem;
        row-gap: 1rem;
        padding: 3.5rem 0;
    }
    .sample-head { grid-area: head; padding-top: 1.5rem; }
    .sample-figure { grid-area: figure; }
    .sample-link { grid-area: link; }
}

/* ---- Larger view (samples.js). Without JavaScript the link opens the image. ---- */
html.zoom-open { overflow: hidden; }
.zoom-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.zoom-dialog::backdrop { background: rgba(0, 29, 54, 0.92); }
.zoom-scroll { height: 100%; overflow: auto; padding: 4rem 1rem 1.5rem; cursor: zoom-out; -webkit-overflow-scrolling: touch; }
.zoom-scroll img {
    display: block;
    width: min(1400px, max(100%, 820px));
    max-width: none;
    height: auto;
    margin: 0 auto;
    border-radius: 4px;
    background: #FFFFFF;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: default;
}
.zoom-close {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 9999px;
    background: #FFB81C;
    color: #002D54;
    cursor: pointer;
}
.zoom-close:hover { background: #FFC64D; }
.zoom-close:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.zoom-close svg { width: 1.25rem; height: 1.25rem; }

/* ---- Closing call to action (guide.css scopes its text styles to .guide) ---- */
.sample-page .cta-block { margin: 1rem 0 0; }
.sample-page .cta-block p { margin: 0 0 1.5rem; color: rgba(255,255,255,0.8); font-size: 1.0625rem; line-height: 1.65; }
.sample-page .cta-block .cta-title {
    font-family: 'DM Serif Display', Georgia, serif;
    color: #FFFFFF;
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
}
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.cta-actions .cta-link { color: #FFFFFF; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,0.4); }
.cta-actions .cta-link:hover { text-decoration-color: #FFB81C; }

/* ---- Links to the other sample pages ---- */
.more-samples { margin: 2.5rem 0 0; color: #4B5563; font-size: 1rem; line-height: 1.6; }
.more-samples strong { color: #1C1C1C; font-weight: 600; margin-right: 0.5rem; }
.more-samples a { display: inline-block; padding: 0.25rem 0; margin-right: 1.25rem; color: #0070D2; text-decoration: underline; text-underline-offset: 2px; }
.more-samples a:hover { color: #004B8D; }
