/* ===========================================================================
   Dynamic home page (2026-10-28, One of NYC layout; ported from Nice to Sit)
   Used by index.php, hi.php, youwin.php, featured-companies.php (linked from
   includes/header.php when $show_home_header is set) and home-post.php.
   The look follows One of NYC (index.php l.100-191, css/style.css
   .posts / .join-network). Every class is home-* so nothing else on the site
   is affected.
   =========================================================================== */

/* ---- Page width (2026-11-09, same as Share the Pie and One of NYC) -------------
   80% of the window from 768px up, with 22.5px side padding from 1200px, so the
   content is 1048px on a 1366px laptop and 1491px on a 1920px desktop. Phones
   stay full width. Only the home-style pages get .home-wide (includes/header.php).
   Three classes outrank sb-admin's single .container, so this !important wins. */
.container.midcont.home-wide {
    width: 100%;
    max-width: 100% !important;
    padding-left: 12px;
    padding-right: 12px;
}
@media (min-width: 768px) {
    .container.midcont.home-wide {
        max-width: 80% !important;
        padding-left: .75rem;
        padding-right: .75rem;
    }
}
@media (min-width: 1200px) {
    .container.midcont.home-wide {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
/* includes/header.php opens a second .container inside .mainmenu-area and
   never closes it (footer.php does), so the whole page body sits inside it.
   sb-admin caps that one at 915px too; uncap it so the width above applies. */
.home-wide .mainmenu-area > .container {
    width: auto;
    max-width: none !important;
}

/* ---- Header on the home-style pages ------------------------------------------
   includes/header.php marks this header .home-head-row: one flex line of
   logo | Hi + YouWin | nav, all vertically centred. It replaced a
   col-md-3/4/5 split that squeezed the nav into 378px, wrapped the passcode
   box onto a second line ("Enter Pas...") and top-aligned the nav. The row
   has no negative margins, so the logo lines up with the heading below. */
.home-head-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
    padding: 18px 0;   /* One of NYC: about 25px band above the logo */
}
.home-head-logo {
    flex: 0 0 auto;
    padding: 0;
}
/* Same visual size as One of NYC's ONEOFNYC logo (about 157px wide). The
   header's own .main-logo img rule is 65px. */
.home-head-row .main-logo img {
    height: 48px;
    width: auto;
}
/* Hi + YouWin spread evenly between the logo and the nav (One of NYC
   includes/header.php .header-brand-logos). */
.home-header-logos {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}
.home-header-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none !important;
}
.home-header-link img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
/* The crops differ (lettering fills 77.5% of Hi, 84.9% of YouWin), so Hi is
   1px shorter to keep the two letterings in proportion, as on One of NYC. */
.home-header-link img.hi-logo { height: 39px; }

/* Nav: New User · Registered User · OR · [passcode][Login] on one line.
   The !important resets beat the Bootstrap 4 spacing utilities (mt-3, pt-2,
   pr-3, px-0) that header.php puts on these elements, and only inside this
   header. */
.home-head-nav {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0;
}
.home-head-nav .r-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
}
.home-head-nav .r-menu > div {
    display: flex;
    align-items: center;
    gap: 14px;
}
.home-head-nav .r-menu li,
.home-head-nav .r-menu .mt-3,
.home-head-nav .r-menu .pt-2 {
    margin: 0 !important;
    padding: 0 !important;
}
.home-head-nav .r-menu li a {
    padding: 0;
    white-space: nowrap;
    font-size: 15px;
    color: #858796;   /* One of NYC: grey label, blue icon */
}
.home-head-nav .r-menu li a i { color: #1d4ed8; margin-right: 4px; }
.home-head-nav .r-menu li a:hover,
.home-head-nav .r-menu li a:focus { color: #1e3a8a; }
.home-head-nav .passcodeOr {
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
}
.home-head-nav .navbar-form {
    float: none;
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
}
.home-head-nav .navbar-form .input-group {
    width: auto;
}
.home-head-nav .passcodeIn {
    flex: 0 0 150px;
    width: 150px;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .home-head-row .main-logo img { height: 40px; }
    .home-header-logos { gap: 16px; padding: 0 10px; }
    .home-header-link img { height: 29px; }
    .home-header-link img.hi-logo { height: 28px; }
    .home-head-nav .r-menu,
    .home-head-nav .r-menu > div { gap: 10px; }
    .home-head-nav .passcodeIn { flex-basis: 120px; width: 120px; }
}

/* Below 992px: logo, then Hi + YouWin, then the nav, each centred on its own
   line (the rest of the site already centres the menu at this width). */
@media (max-width: 991px) {
    .home-head-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    .home-head-logo,
    .home-header-logos,
    .home-head-nav {
        flex: 0 0 100%;
        margin-left: 0;
    }
    .home-header-logos {
        justify-content: center;
        gap: 40px;
        padding: 8px 0 4px;
    }
    .home-header-link img { height: 32px; }
    .home-header-link img.hi-logo { height: 31px; }
    .home-head-nav .r-menu {
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 10px;
        padding: 10px 0 12px;
    }
}
@media (max-width: 767px) {
    .home-header-link img { height: 30px; }
    .home-header-link img.hi-logo { height: 29px; }
}

/* ---- Slider (marquee) -------------------------------------------------------- */
.home-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    border: 5px solid #000;
    border-radius: 10px;
    box-sizing: border-box;
    margin: 16px 0;   /* focamedia.nyc: .my-3 */
    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) {
    /* No animation: let the visitor scroll the strip themselves. */
    .home-slider { overflow-x: auto; }
    .home-slider-track { transform: none !important; }
}

/* ---- Heading + search (left) | Featured Companies (right) ------------------
   One of NYC index.php l.100-166: one flex row; the Featured heading is
   right-aligned and vertically centred on the heading + search block. On One
   of NYC it is an image; here it is styled text, as there is no artwork with
   that name. */
.home-main { padding-bottom: 16px; }
/* Bootstrap 4 (sb-admin) gives rows -11.25px margins, but columns here have
   15px padding. Matching margins line every edge up. */
.home-main .row {
    margin-left: -15px;
    margin-right: -15px;
}
.home-search-row {
    display: flex;
    align-items: stretch;
    margin: 0 0 15px;   /* the slider above sets the gap */
}
.home-search-col {
    flex: 0 1 auto;
    min-width: 0;
}
.home-heading {
    text-align: left;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
}
.home-search {
    display: flex;
    align-items: stretch;
    width: 450px;
    max-width: 100%;
    height: 44px;
    margin: 20px 0 0;
}
.home-search-q,
.home-search-btn {
    height: 100%;
    font-size: 17px;
    font-family: inherit;
    box-sizing: border-box;
    margin: 0;
}
.home-search-q {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 12px;
    background: #fff;
    color: #222;
}
/* One of NYC: the input keeps the site's 1px #ccc border and rounded left
   corners; the grey button is square with a 2px border and no left edge. */
.home-search .home-search-q {
    border: 1px solid #ccc !important;
    border-radius: 5px 0 0 5px !important;
    box-shadow: none;
}
.home-search .home-search-btn {
    border: 2px solid #d3d3d3;
    border-left: none;
    border-radius: 0 !important;
    box-shadow: none;
}
.home-search-q:focus {
    outline: none;
    border-color: #1d4ed8 !important;
}
.home-search-btn {
    flex: 0 0 20%;
    font-size: 17px;
    color: #000;
    background: #cbcbcb;
    cursor: pointer;
}
.home-search-btn:hover { background: #bdbdbd; }
.home-featured-head {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Matches the heading's top margin so the centre line is the left block's. */
    padding-top: 20px;
}
.home-featured-head a {
    display: inline-block;
    max-width: 100%;
    padding-right: 4px;   /* room for the slant, so the last letter isn't cut */
    font-size: inherit;   /* css/style_new.css sets every <a> to 14px */
    text-decoration: none !important;
}
/* Styled to look like One of NYC's "Featured Vendors" artwork
   (images/Featured_Vendors_crop.png, shown 32px tall): tall condensed bold,
   slanted, fill #0840c0 (sampled from the PNG). Oswald has no italic, so the
   browser slants it, the same way the artwork is a slanted upright face.
   Oswald is linked from includes/header.php. */
.home-featured-text {
    display: inline-block;
    font-family: 'Oswald', 'Arial Narrow', Impact, sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 36px;
    line-height: 40px;
    color: #0840c0;
    letter-spacing: 0;
    white-space: nowrap;
}
.home-featured-head a:hover .home-featured-text,
.home-featured-head a:focus .home-featured-text { color: #1d4ed8; }
@media (max-width: 991px) {
    .home-search-row { flex-wrap: wrap; }
    .home-search-col,
    .home-featured-head { flex-basis: 100%; }
    .home-featured-head {
        justify-content: center;
        padding-top: 15px;
    }
}
@media (max-width: 600px) {
    .home-search { width: 100%; }
    .home-featured-text { font-size: 30px; line-height: 34px; }
}

/* ---- Vendor Posts | Headline Posts (One of NYC css/style.css .posts) -------- */
.home-posts-row { margin-top: 20px; }
.home-posts-col { margin-bottom: 20px; }
.home-posts-heading {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px;
}
.home-posts-list {
    list-style-type: disc;
    margin: 0 0 15px;
    padding-left: 20px;
}
.home-posts-list li {
    color: #5a8db8;
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
}
.home-posts-list li a { color: #1c52b5; font-size: 14px; display: inline; }   /* One of NYC */
.home-posts-list li a:hover,
.home-posts-list li a:focus {
    color: #1e3a8a;
    text-decoration: underline;
}
.home-posts-pin {
    color: #15803d;
    font-size: 13px;
    margin-right: 4px;
}
.home-posts-empty {
    color: #555;
    font-size: 16px;
    margin: 0 0 15px;
}

/* ---- Join Our Network (same as focamedia.nyc css/style.css .join-network-*) ----
   The title and underline are part of the artwork, so the whole image shows, with
   no crop. */
.home-join {
    width: 100%;
    margin-bottom: 0;
}
.home-join-box {
    border: 5px solid #000;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 16px;
}
.home-join-box a { display: block; }
.home-join-img {
    display: block;
    width: 100%;
    height: auto;
}
.home-join-logo {
    text-align: center;
    margin-top: 8px;
}
/* A box wider than the logo's own shape makes object-fit:cover crop the blank space
   built into the top and bottom of the file. */
.home-join-logo img {
    width: 280px;
    max-width: 100%;
    height: 72px;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 768px) {
    .home-join-box {
        border-width: 4px;
        border-radius: 8px;
        margin-top: 14px;
    }
    .home-join-logo img {
        width: 220px;
        height: 58px;
    }
}

/* ---- Results line / empty state ---------------------------------------------- */
.home-results {
    font-size: 16px;
    margin: 0 0 15px;
    color: #333;
}
.home-results-clear {
    margin-left: 10px;
    font-size: 14px;
    color: #c0392b;
    text-decoration: underline;
}
.home-empty {
    text-align: center;
    font-size: 18px;
    color: #555;
    padding: 30px 0;
}

/* ---- Featured Companies cards -------------------------------------------------- */
.home-grid { margin-bottom: 10px; }
.home-card-col { margin-bottom: 25px; }
.home-card {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid #ccc;
    padding: 12px;
    text-decoration: none !important;
    transition: box-shadow .18s ease, transform .18s ease;
}
a.home-card:hover,
a.home-card:focus {
    box-shadow: 0 6px 18px rgba(0, 0, 32, .12);
    transform: translateY(-2px);
}
.home-card img {
    display: block;
    width: 100%;
    height: 253px;
    object-fit: cover;
}
.home-card-title {
    margin: 12px 0 0;
    padding: 6px 8px;
    border-left: 8px solid #00008b;
    text-align: center;
    color: #1d4ed8;
    font-size: 16px;
    line-height: 1.35;
    word-wrap: break-word;
}
.home-feat-img { display: block; position: relative; }
.home-feat-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(31, 88, 193, .92);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .3px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.home-feat-foot {
    text-align: center;
    margin-top: 10px;
    font-size: 15px;
}

/* ---- Pagination (Bootstrap 4 classes: .page-item / .page-link) ----------------- */
.home-pagination { display: flex; justify-content: flex-end; }   /* One of NYC: right-aligned */
.home-pagination .pagination { flex-wrap: wrap; justify-content: flex-end; margin: 0; }
.home-pagination .page-item.active .page-link {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}
.home-pagination .page-link { color: #1d4ed8; }

/* ---- Page headings (Featured Companies, Hi, YouWin) ------------------------------- */
.home-page-head { margin: 20px 0 25px; }
.home-page-title {
    font-size: 26px;
    font-weight: 700;
    color: #1d4ed8;
    margin: 0 0 8px;
    line-height: 1.3;
}
.home-page-rule {
    display: block;
    width: 62px;
    height: 4px;
    background: #166534;
    margin-top: 6px;
}

/* ---- Hi / YouWin forms ---------------------------------------------------------- */
.home-form-card {
    max-width: 720px;
    margin: 20px auto 40px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, .2);
}
.home-form-sub { font-size: 16px; color: #333; margin-bottom: 20px; }
.home-form-section {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 25px 0 12px;
    padding-top: 15px;
    border-top: 1px solid #e3e6ea;
}
.home-alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 15px;
}
.home-alert-success { background: #e6f5e6; color: #166534; border: 1px solid #b7dfb7; }
.home-alert-error   { background: #fdecea; color: #a12a1e; border: 1px solid #f5c2bd; }
.home-form .home-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}
.home-form label { font-weight: bold; margin-bottom: 6px; }
.home-form .req { color: red; }
.home-form input[type=text],
.home-form input[type=email],
.home-form input[type=tel],
.home-form select,
.home-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 15px;
    background: #fff;
}
.home-form select { height: 40px; }
.home-radios { display: flex; flex-wrap: wrap; gap: 20px; }
.home-radios label { font-weight: normal; margin: 0; }
.home-field-err { color: #c0392b; font-size: 13px; margin-top: 4px; }
.home-field-err:empty { display: none; }
.home-form-note { font-size: 13px; color: #666; }
.home-form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.home-btn {
    display: inline-block;
    padding: 9px 26px;
    background: #1d4ed8;
    color: #fff !important;
    border: 1px solid #1d4ed8;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none !important;
}
.home-btn:hover { background: #1e3a8a; border-color: #1e3a8a; }
.home-btn-light { background: #fff; color: #1d4ed8 !important; }
.home-btn-light:hover { background: #eef1f8; }
.home-form .g-recaptcha { max-width: 100%; overflow: hidden; }
@media (max-width: 480px) {
    .home-form-card { padding: 20px 15px; }
    .home-form .g-recaptcha { transform: scale(.88); transform-origin: 0 0; }
}

/* ---- Post detail page (home-post.php) ------------------------------------------ */
.home-detail { padding: 10px 0 40px; }
.home-detail-back { margin: 10px 0; }
.home-detail-back a { color: #1d4ed8; }
.home-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d4ed8;
    margin: 10px 0 8px;
    word-wrap: break-word;
}
.home-detail-type {
    display: inline-block;
    background: #e6f5e6;
    color: #166534;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 15px;
}
.home-detail-cover img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}
.home-detail-gallery { margin-bottom: 10px; }
.home-detail-thumb {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    padding: 4px;
    background: #fff;
}
.home-detail-thumb img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
}
.home-detail-desc {
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0 20px;
    word-wrap: break-word;
}
.home-detail-desc img { max-width: 100%; height: auto; }
.home-detail-missing { text-align: center; padding: 50px 0; }
.home-detail-missing h1 { color: #1d4ed8; font-size: 28px; }
