/*
Theme Name: Dey's Caterer V56 — WordPress
Theme URI: https://deyscaterer.com/
Author: Dey's Caterer
Description: Original V56 design preserved, native WordPress blogging, Elementor Free compatible. For testing at bonedis.com prior to migration.
Version: 1.0.13
Requires PHP: 7.4
Text Domain: deys-caterer
*/

/* V6: Searchable, six-post paginated WordPress + original blog list */
.deysBlogSearch{max-width:760px;margin:0 auto 28px;scroll-margin-top:110px}
.deysBlogSearch label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}
.deysBlogSearch>div{display:flex;gap:9px;flex-wrap:wrap}
.deysBlogSearch input{flex:1 1 220px;min-width:0;padding:13px 14px;border:1px solid #bca7a0;border-radius:8px;background:#fff;color:#251714}
.deysBlogSearch button,.deysBlogPagination button{padding:11px 15px;border-radius:8px;border:1px solid #701705;background:#701705;color:#fff;cursor:pointer;font-weight:700}
.deysBlogSearch .deysBlogReset{background:transparent;color:#701705}
.deysBlogPagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:30px auto 12px}
.deysBlogPagination button{min-width:42px}
.deysBlogPagination button[aria-current="page"]{background:#C82909;border-color:#C82909;box-shadow:0 0 0 2px #C8290930}
.deysBlogPagination button:disabled{opacity:.45;cursor:default}
.deysBlogPagination button:not(:disabled):hover{filter:brightness(1.17)}
.deysBlogWarning{grid-column:1/-1;font-size:13px}
body[data-site-theme="dark"] .deysBlogSearch input{background:#29211f;color:#f8f2ee;border-color:#715c52}
body[data-site-theme="dark"] .deysBlogSearch button,body[data-site-theme="dark"] .deysBlogPagination button{color:#fff;border-color:#954330}
body[data-site-theme="dark"] .deysBlogSearch .deysBlogReset{color:#f1ddd5;background:#302420}
body[data-site-theme="light"] .deysBlogSearch input{background:#fff;color:#241512}
.deysBlogSearch input:focus-visible,.deysBlogPagination button:focus-visible{outline:3px solid #ec987e;outline-offset:2px}

/* V10: Mobile blog search input and action share one neat row.
   Scoped to blog search only; desktop, suggestions and pagination unchanged. */
@media (max-width: 700px) {
  .deysBlogSearch > div:first-of-type {
    display: flex !important;
    flex-flow: row nowrap !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100%;
  }
  .deysBlogSearch > div:first-of-type > input[type="search"] {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 0 !important;
    max-width: none;
    height: 46px;
    box-sizing: border-box;
    font-size: 14px;
  }
  .deysBlogSearch > div:first-of-type > button[type="submit"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto !important;
    min-width: 82px;
    height: 46px;
    padding: 0 12px !important;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1;
    background: #701705;
    color: #fff;
    box-shadow: 0 3px 10px rgba(53, 12, 4, .16);
    white-space: nowrap;
  }
  .deysBlogSearch > div:first-of-type > button[type="submit"]:hover,
  .deysBlogSearch > div:first-of-type > button[type="submit"]:focus-visible {
    background: #922408;
    color: #fff;
  }
  .deysBlogSearch > div:first-of-type > .deysBlogReset {
    flex: 0 0 auto;
    min-width: 0;
    padding-inline: 7px;
    font-size: 12px;
  }
}
@media (max-width: 370px) {
  .deysBlogSearch > div:first-of-type { gap: 5px !important; }
  .deysBlogSearch > div:first-of-type > button[type="submit"] {
    min-width: 68px;
    padding-inline: 8px !important;
  }
}

/* V12: On narrow screens, the generic V56 `nav` mobile drawer rule must NOT
   apply to the blog pagination nav. Keep pagination after the six blog cards. */
@media (max-width: 1200px) {
  body nav#deysBlogPagination.deysBlogPagination {
    display: flex !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 30px auto 12px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  body nav#deysBlogPagination.deysBlogPagination:empty {
    display: none !important;
  }
  body nav#deysBlogPagination.deysBlogPagination > button {
    width: auto !important;
    flex: 0 0 auto !important;
    white-space: nowrap;
  }
}
