/*
Theme Name: NairaOutlet Signature
Description: Nigerian classifieds storefront for NairaOutlet Core.
Version: 2.0
*/
:root {
  --mk-ink:#08132d; --mk-green:#09730e; --mk-leaf:#15930d; --mk-muted:#485467;
  --mk-line:#e1e6e8; --mk-font:"Inter",Arial,sans-serif;
}
html { scroll-behavior:smooth; }
body.mk-site { margin:0; background:white; color:var(--mk-ink); font:400 16px/1.45 var(--mk-font); -webkit-font-smoothing:antialiased; }
body.mk-site .no-wrap, body.mk-site .no-card-box { font-family:var(--mk-font); }
body.mk-site :is(button,input,select,textarea) { font-family:var(--mk-font); }
.mk-site *, .mk-site *::before, .mk-site *::after { box-sizing:border-box; }
.mk-shell, .mk-wide { width:min(92%,1320px); margin-inline:auto; }
.mk-wide { width:min(94%,1350px); }
.mk-header a,.mk-footer a,.mk-home a,.mk-crumb a { text-decoration:none; color:inherit; }
.mk-header button,.mk-home button,.mk-home input,.mk-home select,.mk-footer input,.mk-footer button { font:inherit; }
.mk-site :where(a,button,summary,input,select):focus-visible { outline:3px solid #1269bc; outline-offset:3px; }
.mk-icon { width:1.2em; height:1.2em; display:inline-block; vertical-align:middle; flex:none; }
.mk-site .mk-button { display:inline-flex; align-items:center; justify-content:center; gap:.43em; white-space:nowrap; min-height:38px; padding:.6em 1.05em; border:0; border-radius:15px; text-decoration:none; font:750 clamp(12px,1.05vw,15px)/1.15 var(--mk-font); cursor:pointer; }
.mk-site .mk-green,.mk-site .mk-orange { background:linear-gradient(155deg,#46be12 0%,#008006 47%,#005b03 100%); color:white; box-shadow:inset 0 1px 0 #ffffff32; }
.mk-site .mk-orange { background:linear-gradient(170deg,#ffad05,#ff7600 54%,#f55900); }
.mk-site .mk-outline { background:white; color:var(--mk-ink); border:1px solid #41764b; }
.mk-button:hover { filter:brightness(1.065); }
.mk-skip { position:fixed; left:1rem; top:-200px; z-index:1000; padding:.7rem 1rem; background:#fff; color:var(--mk-ink); }
.mk-skip:focus { top:1rem; }
.mk-header { position:sticky; top:0; z-index:999; background:rgba(255,255,255,.98); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-bottom:1px solid #e5ece7; box-shadow:0 5px 20px rgba(12,62,31,.065); } html { scroll-padding-top:110px; } @media(max-width:920px){html{scroll-padding-top:76px}} body.admin-bar .mk-header{top:32px} @media(max-width:782px){body.admin-bar .mk-header{top:46px}}
.mk-navline { height:clamp(72px,7.1vw,96px); display:flex; align-items:center; justify-content:space-between; gap:clamp(12px,1.7vw,26px); }
.mk-brand { display:flex; align-items:center; position:relative; width:clamp(206px,25.5vw,337px); height:100%; padding-right:clamp(17px,2.5vw,38px); flex-shrink:0; }
.mk-brand::after { content:""; position:absolute; right:0; height:44%; width:1px; background:#c5cbd3; }
.mk-brand img { max-width:100%; width:100%; height:95%; object-fit:contain; object-position:left center; }
.mk-desktop-nav,.mk-actions { display:flex; align-items:center; }
.mk-desktop-nav { flex:1; justify-content:space-around; gap:10px; }
.mk-desktop-nav>a,.mk-navmenu>summary { display:inline-flex; align-items:center; gap:.38em; position:relative; font-weight:800; font-size:clamp(12px,1.15vw,16px); white-space:nowrap; cursor:pointer; }
.mk-desktop-nav>a[aria-current] { color:var(--mk-green); }
.mk-desktop-nav>a[aria-current]::after { content:""; position:absolute; left:0; right:0; bottom:-9px; border-bottom:2px solid #198c18; }
.mk-navmenu { position:relative; }
.mk-navmenu>summary, .mk-allcats>summary { list-style:none; }
.mk-navmenu>summary::-webkit-details-marker, .mk-allcats>summary::-webkit-details-marker { display:none; }
.mk-navmenu>summary .mk-icon { width:11px; height:11px; }
.mk-pop { position:absolute; z-index:30; top:calc(100% + 12px); left:0; display:grid; min-width:190px; max-height:65vh; overflow:auto; border:1px solid var(--mk-line); border-radius:12px; padding:6px; background:#fff; box-shadow:0 8px 25px #07182723; }
.mk-pop a { padding:8px 12px; border-radius:6px; font-size:14px; font-weight:650; white-space:nowrap; }
.mk-pop a:hover,.mk-pop a:focus-visible { background:#edf7ec; color:var(--mk-green); }
/* Category dropdown: explicit width, equal columns and non-overlapping labels. */
.mk-desktop-nav .mk-pop-grid {
  left:50%;
  transform:translateX(-50%);
  width:min(580px,calc(100vw - 36px));
  min-width:0;
  max-width:calc(100vw - 36px);
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:14px;
  row-gap:4px;
  padding:14px;
  border-radius:18px;
  box-shadow:0 20px 50px rgba(13,46,29,.16);
}
.mk-desktop-nav .mk-pop-grid a {
  display:flex;
  align-items:center;
  min-width:0;
  min-height:40px;
  padding:10px 13px;
  white-space:normal;
  overflow-wrap:break-word;
  line-height:1.35;
  border-radius:10px;
}
.mk-desktop-nav .mk-pop-grid a:hover,
.mk-desktop-nav .mk-pop-grid a:focus-visible {
  background:#eaf6eb;
  color:var(--mk-green);
}
.mk-actions { gap:clamp(6px,1vw,15px); }
.mk-mobile { display:none; }
/* Balanced footer: brand and link groups on the first row, search below. */
.mk-footer { background:linear-gradient(112deg,#03452d,#003d29 65%,#023b28); color:#fff; }
.mk-foot-grid { display:grid; grid-template-columns:minmax(200px,1.22fr) repeat(3,minmax(135px,1fr)); column-gap:clamp(24px,3vw,52px); row-gap:26px; align-items:start; padding-block:36px 28px; }
.mk-foot-grid h2 { font-size:clamp(15px,1.2vw,17px); line-height:1.3; margin:0 0 11px; color:#fff; font-weight:800; }
.mk-foot-grid > div:not(.mk-foot-brand):not(.mk-foot-search) > a { display:flex; align-items:center; width:fit-content; min-height:32px; font-size:clamp(12px,1vw,14px); line-height:1.4; color:#f6fcf8; }
.mk-foot-grid > div:not(.mk-foot-brand):not(.mk-foot-search) > a:hover { color:#c4f49c; text-decoration:underline; }
.mk-footer p { font-size:13px; line-height:1.5; margin:0; }
.mk-foot-brand { min-width:0; padding:0; border:0; }
.mk-foot-grid .mk-foot-brand > a { display:flex; align-items:center; justify-content:center; width:min(100%,244px); padding:10px 12px; border-radius:10px; background:#fff; box-shadow:0 6px 18px rgba(0,21,14,.14); }
.mk-foot-brand .mk-footer-brand-image { display:block; width:100%; height:auto; object-fit:contain; object-position:center; }
.mk-foot-brand p { margin-top:12px; max-width:255px; font-size:12px; line-height:1.5; }
.mk-foot-search { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr) minmax(270px,380px); gap:2px 32px; align-items:center; padding:21px 0 0; border-top:1px solid #ffffff38; }
.mk-foot-search h2 { grid-column:1; grid-row:1; margin:0; }
.mk-foot-search p { grid-column:1; grid-row:2; margin:0; }
.mk-foot-search form { grid-column:2; grid-row:1/span 2; display:flex; align-items:center; background:#fff; border-radius:9px; padding:4px; width:100%; min-height:46px; }
.mk-foot-search input { border:0; min-width:0; flex:1; width:100%; font-size:13px; background:#fff; color:var(--mk-ink); padding:9px 12px; }
.mk-foot-search button { display:flex; align-items:center; justify-content:center; min-width:40px; min-height:38px; border:0; color:#fff; background:var(--mk-green); border-radius:6px; cursor:pointer; }
.mk-foot-base { border-top:1px solid #ffffff38; background:#003222; }
.mk-foot-base .mk-shell { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:32px; padding-block:13px; font-size:clamp(10px,.88vw,13px); }
.mk-owner-legal { display:block; margin-top:3px; opacity:.86; line-height:1.5; }
@media(max-width:980px) {
  .mk-foot-grid { grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:26px; row-gap:24px; }
  .mk-foot-brand { grid-column:1/-1; }
  .mk-foot-search { grid-column:1/-1; }
}
@media(max-width:680px) { .mk-foot-base .mk-shell { flex-direction:column; align-items:flex-start; gap:5px; padding-block:15px; } }
.mk-flag { display:inline-block; width:24px; height:14px; vertical-align:middle; border-radius:2px; margin-left:4px; background:linear-gradient(90deg,#0b9432 33%,#fff 33%,#fff 66%,#0b9432 66%); }
.mk-inner { min-height:55vh; padding:30px 0 65px; }
.mk-inner>.mk-shell { width:min(92%,1180px); }
.mk-crumb { color:var(--mk-muted); font-size:13px; margin-bottom:12px; }
.mk-crumb a { color:var(--mk-green); }
.mk-inner h1 { margin:0 0 24px; font:850 clamp(28px,3.4vw,48px)/1.1 var(--mk-font); letter-spacing:-.055em; }
.mk-entry .no-wrap { margin-inline:0; width:100%; }
.mk-inner .no-wrap { font-family:var(--mk-font); }
.mk-archive { display:grid; gap:15px; }
@media(max-width:1140px) {
  .mk-desktop-nav { display:none; }
  .mk-brand { width:clamp(175px,30vw,255px); padding:0; }
  .mk-brand::after { display:none; }
  .mk-mobile { display:block; }
  .mk-mobile>summary { width:38px; height:38px; justify-content:center; border:1px solid var(--mk-line); border-radius:10px; }
  .mk-mobile>summary .mk-icon { width:21px; height:21px; }
  .mk-mobile .mk-pop { left:auto; right:0; }
}
@media(max-width:680px) {
  .mk-navline { height:64px; gap:6px; }
  .mk-brand { width:clamp(121px,34vw,190px); }
  .mk-actions { gap:6px; }
  .mk-header .mk-button { font-size:12px; padding:8px 10px; min-height:36px; border-radius:12px; }
  .mk-header .mk-sign { padding:8px; }
  .mk-sign span { position:absolute; clip-path:inset(50%); overflow:hidden; width:1px; height:1px; white-space:nowrap; }
  .mk-foot-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px 18px; padding-block:28px 22px; }
  .mk-foot-brand,.mk-foot-search { grid-column:1/-1; }
  .mk-foot-grid > div:not(.mk-foot-brand):not(.mk-foot-search) > a,.mk-footer p { font-size:13px; }
  .mk-foot-brand p { margin-bottom:0; }
  .mk-foot-search { grid-template-columns:minmax(0,1fr); gap:7px; padding-top:18px; }
  .mk-foot-search h2,.mk-foot-search p,.mk-foot-search form { grid-column:1; grid-row:auto; }
  .mk-foot-search form { max-width:460px; margin-top:6px; }
  .mk-foot-base .mk-shell { min-height:44px; }
  .mk-inner { padding-top:20px; }
}
@media(max-width:520px) {
  .mk-foot-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-areas:"brand brand" "quick support" "quick selling" "search search"; gap:18px 20px; }
  .mk-foot-brand { grid-area:brand; }
  .mk-foot-grid > div:nth-child(2) { grid-area:quick; }
  .mk-foot-grid > div:nth-child(3) { grid-area:support; }
  .mk-foot-grid > div:nth-child(4) { grid-area:selling; }
  .mk-foot-search { grid-area:search; }
  .mk-foot-grid h2 { font-size:15px; }
  .mk-foot-grid > div:not(.mk-foot-brand):not(.mk-foot-search) > a { font-size:12px; line-height:1.4; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

@media(max-width:365px) {
  .mk-header .mk-brand { width:clamp(95px,29vw,110px); min-width:0; flex-shrink:1; }
  .mk-actions { gap:4px; }
  .mk-header .mk-button { padding-inline:8px; }
  .mk-mobile>summary { width:34px; }
}
