/* ============================================================================
   2026-11-30: member pages + post pages laid out like Share the Pie.
   Loaded by includes/header.php on every page. It only acts on pages whose
   wrapper has .site-wide (every page except the home-style pages, which keep
   .home-wide from css/home.css). To switch it off: $stp_layout = false in
   includes/header.php.
   Target numbers (sharethepie.com, 1710px window): page 80% wide (1323px),
   line under the header at y111, green bar y117 / 65px tall, sidebar 25%
   (331px) x full window height, footer 35px under the sidebar.
   ========================================================================== */

/* ---- Page width: same 80% as Share the Pie and the home page (.home-wide) -- */
.container.midcont.site-wide {
    width: 100%;
    max-width: 100% !important;
    padding-left: 12px;
    padding-right: 12px;
}
@media (min-width: 768px) {
    .container.midcont.site-wide {
        max-width: 80% !important;
        padding-left: .75rem;
        padding-right: .75rem;
    }
}
@media (min-width: 1200px) {
    .container.midcont.site-wide {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
/* The header and every page open more .container boxes inside the wrapper;
   sb-admin caps each at 915px. Inside .site-wide they just fill the 80%. */
.site-wide .container {
    width: auto !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ---- Header spacing (member + post pages only) ----------------------------- */
.site-wide .head-row {        /* 92px row, logo centred: line under it at y111 */
    padding-top: 17px;
    padding-bottom: 10px;
    min-height: 92px;
    box-sizing: border-box;
    align-items: center;
}
.site-wide .hr {
    margin-top: 14px !important;
    margin-bottom: 5px !important;
}
.site-wide .green-nav .g-nav-link {
    border-width: 3px;
    line-height: 23px;
}
.site-wide .green-nav .g-nav-link:hover,
.site-wide .green-nav .g-nav-link.active {
    border-width: 3px;
}

/* ---- Sidebar (25%) + content (75%), like Share the Pie's col-md-3 / col-md-9 */
.site-wide .wrapcontent {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 8px !important;      /* see the per-page list below */
    margin-bottom: 35px !important;  /* footer 35px under the sidebar */
}
/* Sidebar top = Share the Pie's, page by page (it is 204-209px there).
   header.php puts pg-<page name> on the wrapper next to .site-wide. */
/* features/support: this margin collapses with the 8px under .sec-title above it */
.site-wide.pg-support .wrapcontent         { margin-top: -1px !important; }
.site-wide.pg-features .wrapcontent,
.site-wide.pg-poll .wrapcontent,
.site-wide.pg-freepage .wrapcontent        { margin-top: 12px !important; }
.site-wide.pg-afterlogin .wrapcontent      { margin-top: 0 !important; }
.site-wide.pg-paid .wrapcontent,
.site-wide.pg-dues .wrapcontent,
.site-wide.pg-support-account .wrapcontent,
.site-wide.pg-changepassword .wrapcontent,
.site-wide.pg-mycontact .wrapcontent       { margin-top: 7px !important; }
.site-wide .wrapcontent > .sidebar {
    flex: 0 0 25%;
    max-width: 25%;
    float: none;
    min-height: 100vh !important;   /* style_new.css forces 0 !important */
    margin-bottom: 0 !important;
    padding-left: 11.25px !important;
    padding-right: 11.25px !important;
}
.site-wide .wrapcontent > .sidebar ~ div {
    flex: 1 1 0;
    min-width: 0;
    max-width: 75%;
    margin-left: 0 !important;
}
/* Dashboard pages (Poll, My Account, Paid, Dues, Posts, ...): content starts at
   the top of the sidebar. 2026-12-01: the 101px below used to hit every page and
   left a big empty gap above the page title. */
.site-wide .wrapcontent > .content {
    padding: 0 11.25px 0 !important;
    min-height: 0 !important;
}
/* "Hello there" pages only: same box as Share the Pie's col-md-9 */
.site-wide.pg-features .wrapcontent > .content,
.site-wide.pg-support .wrapcontent > .content,
.site-wide.pg-freepage .wrapcontent > .content {
    padding-top: 101px !important;
}
@media (max-width: 991px) {
    .site-wide .wrapcontent > .sidebar,
    .site-wide .wrapcontent > .sidebar ~ div {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .site-wide .wrapcontent > .sidebar {
        min-height: auto !important;
    }
}

/* ---- Footer: always at the bottom of the window, never floating ----------- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.boxed_wrapper {
    flex: 1 0 auto;
}
body > footer {
    flex-shrink: 0;
}

/* ---- Post page (/post-title), like sharethepie.com/Christmas-gift ----------
   Measured there at 1710px: slider y132 (1323x210), Back to home y362,
   search row y401 (select 116 + box 397 + button 50, all 50px tall),
   Contact y461, title y500 at 26.25px, photo 450x450 centred, footer 50px
   under the description. */
.home-slider {               /* same strip as the home page (css/home.css) */
    width: 100%;
    overflow: hidden;
    position: relative;
    border: 5px solid #000;
    border-radius: 10px;
    box-sizing: border-box;
    margin: 20px 0 15px;
    background: #000;
}
.home-slider-track { display: flex; gap: 0; will-change: transform; }
.home-slider-item { flex-shrink: 0; }
.home-slider-item a { display: block; line-height: 0; }
.home-slider-img {
    display: block;
    width: auto;
    max-width: none;
    object-fit: cover;
    user-select: none;
}
@media (prefers-reduced-motion: reduce) {
    .home-slider { overflow-x: auto; }
    .home-slider-track { transform: none !important; }
}
.site-wide.pg-post-details #how-it-work .pt-30 {
    padding-left: 11.25px !important;
    padding-right: 11.25px !important;
    padding-bottom: 30px !important;
}
.site-wide.pg-post-details #how-it-work .container.midcont { margin: 0 0 10px !important; }
.site-wide.pg-post-details form.example1 {
    width: auto !important;
    margin: 0 !important;
    align-items: flex-start;
}
.site-wide.pg-post-details form.example1 #location {
    width: 115.5px;
    height: 50px;
    margin: 0 !important;
    border: 2px solid #cbcbcb;
    border-right: 0;
    flex: none;
}
.site-wide.pg-post-details form.example1 .search_bar {
    width: 396.9px;
    height: 50px;
    margin: 0 !important;
    flex: none;
}
.site-wide.pg-post-details form.example1 .search_icon {
    width: 50px;
    height: 50px;
    padding: 12px 0;
    margin: 0 !important;
    border: 2px solid #cbcbcb;
    flex: none;
}
.site-wide.pg-post-details .single-sidebar { height: 0; overflow: visible; }
.site-wide.pg-post-details #how-it-work .col-grid-12 { padding-bottom: 0; }
.site-wide.pg-post-details h3.pd {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 26.25px !important;
    line-height: 39.375px !important;
}
.site-wide.pg-post-details h3.pd b { font-size: inherit; }
.site-wide.pg-post-details .imgspace img { width: 450px; height: 450px; }
.site-wide.pg-post-details p.p-30 { margin: 20px 0 0 !important; padding: 0 !important; }
@media (max-width: 767px) {   /* phones: keep the search row and photo inside the screen */
    .site-wide.pg-post-details form.example1 .search_bar { width: auto; flex: 1 1 0; min-width: 0; }
    .site-wide.pg-post-details .imgspace img { width: 100%; height: auto; max-width: 450px; }
}

/* ---- 2026-12-01: dashboard spacing fixes (checked live on youwinnyc.com) ---- */
/* Contacts: the floated "Private Users" heading pulled the empty-message card up
   beside it, squeezing the text into a narrow right-hand column. */
.site-wide .wrapcontent > .content .fx-empty-card,
.site-wide .wrapcontent > .content .contact-card { clear: both; }
/* Cards, title bands, search bars and tabs fill the column, so their right edge
   lines up with the green bar above (they stopped 41px short: a 940px cap from
   includes/polls.php plus 11px right padding). */
.site-wide .wrapcontent > .content { padding-right: 0 !important; }
.site-wide .wrapcontent > .content > .row,
.site-wide .wrapcontent > .content > .container > .row { margin-right: 0; }
.site-wide .wrapcontent > .content .fx-hero,
.site-wide .wrapcontent > .content .fx-alert,
.site-wide .wrapcontent > .content .fx-card,
.site-wide .wrapcontent > .content .fx-wrap,
.site-wide .wrapcontent > .content .fx-pagination,
.site-wide .wrapcontent > .content .fx-note,
.site-wide .wrapcontent > .content .fx-optlist,
.site-wide .wrapcontent > .content .fx-empty-card,
.site-wide .wrapcontent > .content .fx-actionbar,
.site-wide .wrapcontent > .content .fx-tabs,
.site-wide .wrapcontent > .content .fx-search,
.site-wide .wrapcontent > .content .fx-toolbar,
.site-wide .wrapcontent > .content .fx-listfoot,
.site-wide .wrapcontent > .content .con_box { max-width: none !important; }
/* Posts (add / edit): editor and Location box were half the width of the Title box. */
.site-wide.pg-afterlogin .content .cke,
.site-wide.pg-edit-post .content .cke { width: 100% !important; box-sizing: border-box; }
.site-wide.pg-afterlogin .content select.form-control,
.site-wide.pg-edit-post .content select.form-control { width: 100% !important; max-width: none; }
