/**
 * Shared by the category layout (layout.css) and the patient detail page (single.css):
 * bands, typography, buttons, hero, related grid and the "Inspired" CTA.
 * Depends on the design tokens defined in cards.css.
 */

/* Full-width bands, even when the page template wraps the content in a max-width container */
.pgsa-band {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

.pgsa-wrap {
    max-width: var(--pgsa-max-width, 1240px);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Typography */
.pgsa-eyebrow {
    margin: 0 0 12px;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pgsa-muted);
}

.pgsa-section-title,
.pgsa-cta__title,
.pgsa-hero__title,
.pgsa-related__title {
    font-family: var(--pgsa-serif);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: normal;
    text-transform: none;
    margin: 0;
}

/* Buttons and links */
.pgsa-button {
    display: inline-block;
    padding: 12px 32px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity .2s ease;
}
.pgsa-button:hover { opacity: .85; }
.pgsa-button--dark { background: var(--pgsa-dark); color: #fff; }
.pgsa-button.pgsa-button--accent { background: var(--pgsa-accent); color: #fff; }
.pgsa-button--outline { border-color: #fff; color: #fff; background: transparent; }

.pgsa-link {
    font-size: 13px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    line-height: normal;
    letter-spacing: .26px;
    text-transform: uppercase;
    color: var(--pgsa-text, #ffffff);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

/* Hero */
.pgsa-hero {
    background: var(--pgsa-dark);
    color: #fff;
    padding: 96px 0 104px;
}
.pgsa-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 48px;
    align-items: end;
}
.pgsa-hero__breadcrumb {
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}
.pgsa-hero__breadcrumb a { color: inherit; text-decoration: none; }
.pgsa-hero__breadcrumb a:hover { color: #fff; }
.pgsa-hero__separator { margin: 0 6px; }
.pgsa-hero__title { font-size: clamp(36px, 5vw, 64px); color: #fff; }
.pgsa-hero__description { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.pgsa-hero__description p:last-child { margin-bottom: 0; }

/* Related galleries, and more results on the patient detail page */
.pgsa-related { padding: 112px 0; }
.pgsa-related .pgsa-section-title { font-size: clamp(30px, 3.5vw, 44px); margin-bottom: 40px; }
.pgsa-related__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.pgsa-related__media {
    position: relative;
    display: block;
    margin-bottom: 16px;
    background: var(--pgsa-tag);
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.pgsa-related__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pgsa-related__pair { display: flex; height: 100%; }
.pgsa-related__pair img { width: 50%; }
.pgsa-related__title { font-size: 22px; margin: 0 0 8px; }
.pgsa-related__title a { color: inherit; text-decoration: none; }
.pgsa-related__count { font-size: 12px; color: var(--pgsa-accent); text-decoration: none; }

/* "Inspired" CTA */
.pgsa-inspired {
    background: var(--pgsa-dark);
    color: #fff;
    padding: 112px 0;
    text-align: center;
}
.pgsa-inspired .pgsa-eyebrow { color: rgba(255, 255, 255, .7); }
.pgsa-inspired .pgsa-section-title { font-size: clamp(32px, 4vw, 52px); color: #fff; margin-bottom: 24px; }
.pgsa-inspired__text {
    max-width: 560px;
    margin: 0 auto 40px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
}
.pgsa-inspired__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* Responsive */
@media (max-width: 1024px) {
    .pgsa-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .pgsa-hero { padding: 64px 0; }
    .pgsa-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 640px) {
    .pgsa-wrap { padding: 0 16px; }
    .pgsa-related,
    .pgsa-inspired { padding: 72px 0; }
    .pgsa-related__grid { grid-template-columns: minmax(0, 1fr); }
    .pgsa-inspired__actions { flex-direction: column; align-items: stretch; width: 100%; }
}
