/*
 * Posted.Land — Member Page Styles
 * Loaded only on single member_page CPT views.
 * Theme-independent: uses isolated .pl-* class namespace.
 */

/* ── Layout ──────────────────────────────────────────────────────────────── */

.pl-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 36px 20px;
    font-family: Verdana, sans-serif;
}

.pl-main {
    display: block;
}

/* ── Sign card ───────────────────────────────────────────────────────────── */

.pl-sign {
    border-radius: 14px;
    border: 1.5px solid rgba(0, 0, 0, .18);
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, .04),
        0 8px 24px rgba(0, 0, 0, .10),
        0 24px 48px rgba(0, 0, 0, .08);
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.pl-sign-header {
    background: var(--sign-color, #f5c800);
    padding: 28px 32px 24px;
    position: relative;
    border-bottom: 1.5px solid rgba(0, 0, 0, .12);
}

.pl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: Verdana, sans-serif;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, .50);
    margin-bottom: 14px;
}

.pl-eyebrow::before,
.pl-eyebrow::after {
    content: '';
    display: block;
    height: 1px;
    width: 24px;
    background: rgba(0, 0, 0, .25);
}

.pl-sign-title {
    font-family: Verdana, sans-serif;
    font-weight: 900;
    font-size: clamp(36px, 7vw, 56px);
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #111;
    line-height: 1;
    margin: 0 0 10px 0;
}

.pl-sign-subtitle {
    font-family: Verdana, sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: rgba(0, 0, 0, .60);
    letter-spacing: .01em;
    margin: 0;
}

.pl-sign-url {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: Verdana, sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, .35);
    text-decoration: none;
}

/* ── Body ────────────────────────────────────────────────────────────────── */

.pl-sign-body {
    background: #fff;
    padding: 28px 32px;
}

.pl-section {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pl-section:first-child { padding-top: 0; }
.pl-section:last-child  { border-bottom: none; padding-bottom: 0; }

.pl-section-label {
    font-family: Verdana, sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 10px 0;
}

.pl-notice-text {
    font-size: 15px;
    line-height: 1.65;
    color: #222;
    font-weight: 400;
    margin: 0;
}

/* ── Contact grid ────────────────────────────────────────────────────────── */

.pl-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

@media (max-width: 480px) {
    .pl-contact-grid { grid-template-columns: 1fr; }
    .pl-sign-header  { padding: 22px 20px 18px; }
    .pl-sign-body    { padding: 20px; }
    .pl-sign-footer  { padding: 12px 20px; }
}

.pl-contact-item strong {
    display: block;
    font-size: 11px;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 3px;
    font-weight: 600;
    font-family: Verdana, sans-serif;
}

.pl-contact-item span {
    font-size: 15px;
    color: #222;
    font-weight: 500;
}

/* ── Contact form wrap ───────────────────────────────────────────────────── */

.pl-form-wrap {
    margin-top: 16px;
}



/* ── Footer ──────────────────────────────────────────────────────────────── */

.pl-sign-footer {
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pl-powered {
    font-family: Verdana, sans-serif;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #ccc;
    font-weight: 600;
    text-decoration: none;
}

.pl-tier-badge {
    font-family: Verdana, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    padding: 3px 10px;
    color: #aaa;
}

/* ── Theme overrides ─────────────────────────────────────────────────────── */

body.single-member_page .page-header,
body.single-member_page .entry-header,
body.single-member_page .page-title,
body.single-member_page .pmpro_page_title,
body.single-member_page .post-thumbnail {
    display: none !important;
}

body.single-member_page .entry-content,
body.single-member_page .post-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Memberlite layout override ──────────────────────────────────────────── */
/*
 * Memberlite wraps content in a .row div. On member pages we want
 * the sign to break free of that column constraint.
 */

body.pl-fullwidth #content .row,
body.single-member_page #content .row {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.pl-fullwidth #content .columns,
body.single-member_page #content .columns {
    width: 100% !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Suppress masthead on member pages (belt and suspenders) */
body.single-member_page .masthead,
body.pl-fullwidth .masthead {
    display: none !important;
}

/* ── Nuclear Memberlite override ─────────────────────────────────────────────
 * The PHP layout filters didn't take. Fight it with CSS instead.
 * All rules scoped to body.single-member_page so nothing else is affected.
 * ─────────────────────────────────────────────────────────────────────────── */

/* Kill the sidebar column and make the content fill full width */
body.single-member_page #content .row,
body.single-member_page #content > .row {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* The content column — make it full width, kill float */
body.single-member_page #content .row > .columns,
body.single-member_page #content .row > [class*="medium-"],
body.single-member_page #content .row > [class*="small-"],
body.single-member_page #content .row > [class*="large-"] {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Kill sidebar entirely */
body.single-member_page #secondary,
body.single-member_page .widget-area,
body.single-member_page aside.sidebar,
body.single-member_page #sidebar,
body.single-member_page .sidebar {
    display: none !important;
}

/* Masthead title bar */
body.single-member_page .masthead,
body.single-member_page header.masthead {
    display: none !important;
}

/* Remove any top padding/margin on the content area */
body.single-member_page #content,
body.single-member_page .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Prevent theme global typography from overriding sign title size */
body.single-member_page .pl-sign-title {
    font-size: clamp(36px, 7vw, 56px) !important;
    font-family: Verdana, sans-serif !important;
    font-weight: 900 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    line-height: 1 !important;
}

/* Prevent theme h2/h3 styles bleeding into sign sections */
body.single-member_page .pl-section-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    line-height: 1.2 !important;
}

/* Theme is forcing p font-size via wp-custom-css — reset inside sign */
body.single-member_page .pl-sign p,
body.single-member_page .pl-sign li {
    font-size: 15px !important;
    line-height: 1.65 !important;
}
