/* App-style mobile interface (2026-11-27). Phones and small tablets only; the desktop layout is untouched.
   Loaded after every other stylesheet. Markup helpers: views/partials/app-tabbar.php, assets/js/appui.js. */
.app-tabbar, .app-tiles, .app-buybar, .app-filter-toggle, .app-more { display: none; }

@media (max-width: 860px) {
    :root { --app-bg: #f2f0ec; --app-card: #fff; --app-line: #e6e2da; --app-ink: #1a1410; --app-mut: #6d655d; --app-acc: #c9371f; --app-r: 16px; --app-tab: 62px; --app-bar: 56px; }
    html { -webkit-tap-highlight-color: transparent; }
    body { background: var(--app-bg); padding-bottom: calc(var(--app-tab) + env(safe-area-inset-bottom)); overflow-x: clip; }
    main, .mk { background: var(--app-bg); }
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }

    /* ---- app bar ---- */
    .ent-header { position: sticky; top: 0; z-index: 60; }
    .ent-bar { box-shadow: 0 1px 0 var(--app-line); }
    .ent-bar-in { height: var(--app-bar); }
    .ent-brand-logo img { height: 38px; width: auto; }
    .ent-nav { inset: var(--app-bar) 0 0 0; padding-bottom: calc(var(--app-tab) + 40px); }

    /* ---- bottom tab bar ---- */
    .app-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid var(--app-line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 24px rgba(26,20,16,.07); }
    .app-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--app-tab); font: 600 11px/1 var(--f-sans); color: var(--app-mut); text-decoration: none; }
    .app-tabbar svg { width: 24px; height: 24px; padding: 3px 14px; box-sizing: content-box; border-radius: 999px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .app-tabbar a[aria-current="page"] { color: var(--app-ink); }
    .app-tabbar a[aria-current="page"] svg { background: #fbe2dc; color: var(--app-acc); }
    .app-tabbar i { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--app-acc); color: #fff; font: 700 10px/17px var(--f-sans); font-style: normal; text-align: center; }
    #mk-imp { bottom: calc(var(--app-tab) + 12px) !important; }

    /* ---- type and spacing ---- */
    .mk .mk-wrap { padding-left: 16px; padding-right: 16px; }
    .mk .mk-section { padding-top: 26px; padding-bottom: 26px; border: 0; }
    .mk .mk-section.tint { background: #eae6df; }
    .mk h1 { font-size: 1.62rem; line-height: 1.15; letter-spacing: -.01em; }
    .mk h2 { font-size: 1.28rem; line-height: 1.22; margin-top: 0; }
    .mk h3 { font-size: 1.04rem; }
    .mk p, .mk li { font-size: .94rem; line-height: 1.55; }
    .mk .mk-kicker { letter-spacing: 0; text-transform: none; font-family: var(--f-sans); font-size: .8rem; font-weight: 600; }
    .mk .mk-kicker::before { display: none; }
    .mk .mk-shead { margin-bottom: 14px; text-align: left; }
    .mk .mk-shead > * { text-align: left; margin-left: 0; margin-right: 0; }
    .mk .mk-shead p { margin-top: 6px; color: var(--app-mut); }
    .mk .mk-btn { border-radius: 12px; min-height: 46px; justify-content: center; text-align: center; }
    .mk input:not([type=checkbox]):not([type=radio]), .mk select, .mk textarea { font-size: 16px; border-radius: 12px; }

    /* ---- page header of inner pages ---- */
    .mk .mk-phero { background: #fff; padding: 14px 0 18px; border-bottom: 1px solid var(--app-line); border-radius: 0 0 22px 22px; }
    .mk .mk-phero::before { display: none; }
    .mk .mk-phero .bc { display: none; }
    .mk .mk-phero h1 { margin: 6px 0 0 !important; }
    .mk .mk-phero .sub { margin-top: 10px; color: var(--app-mut); }
    .mk .mk-titlerow { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
    .mk .mk-titlerow h1 { overflow-wrap: anywhere; }
    .mk .mk-visit { min-height: 38px; padding: 6px 14px; font-size: .86rem; }
    .mk .mk-facts { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 14px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
    .mk .mk-facts li { flex: 0 0 auto; white-space: nowrap; font-size: .82rem; padding: 8px 12px; border-radius: 12px; }
    .app-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
    .app-more { display: inline-block; border: 0; background: none; padding: 8px 0 0; font: 700 .86rem var(--f-sans); color: var(--app-acc); cursor: pointer; }

    /* ---- card rails: long grids become swipeable rows ---- */
    .mk .mk-grid, .mk .mk-pkg-grid, .mk .mk-site-grid, .mk .mk-steps { display: flex !important; flex-wrap: nowrap; align-items: stretch; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; margin-left: -16px; margin-right: -16px; padding: 2px 16px 12px; scrollbar-width: none; border: 0; }
    .mk .mk-grid > *, .mk .mk-pkg-grid > *, .mk .mk-site-grid > *, .mk .mk-steps > * { flex: 0 0 80%; max-width: 320px; scroll-snap-align: start; border-radius: var(--app-r); border: 1px solid var(--app-line); background: var(--app-card); box-shadow: 0 2px 10px rgba(26,20,16,.05); }
    .mk .mk-grid > *, .mk .mk-steps > * { padding: 18px; }
    .mk .mk-grid > .mk-article { padding: 0; overflow: hidden; }
    .mk .mk-pkg-grid > * { flex-basis: 86%; max-width: 360px; align-self: flex-start; }
    .mk .mk-pkg-sites .mk-pkg-chips { max-height: 150px; overflow-y: auto; }
    .mk .dark .mk-grid > *, .mk .dark .mk-steps > * { background: #26201b; border-color: #3a322b; }
    .mk-grid::-webkit-scrollbar, .mk-pkg-grid::-webkit-scrollbar, .mk-site-grid::-webkit-scrollbar, .mk-steps::-webkit-scrollbar, .mk-facts::-webkit-scrollbar { display: none; }

    /* ---- text blocks, lists, FAQ ---- */
    .mk .mk-detail { display: flex; flex-direction: column; gap: 16px; }
    .mk .mk-detail > * { min-width: 0; width: 100%; }
    .mk .mk-detail > .mk-buybox { order: -1; position: static; border-radius: var(--app-r); border: 1px solid var(--app-line); background: #fff; padding: 16px; scroll-margin-top: 70px; }
    .mk .mk-detail > .mk-prose { background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-r); padding: 16px; }
    .mk .mk-detail .mk-prose p { font-family: var(--f-sans); font-size: .93rem; }
    .app-fold { max-height: 340px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
    .mk .mk-faq details { background: #fff; color: var(--app-ink); border: 1px solid var(--app-line); border-radius: 14px; margin-bottom: 8px; padding-left: 14px; padding-right: 14px; }
    .mk .dark .mk-faq details, .mk .dark .mk-faq summary, .mk .dark .mk-faq details p { color: var(--app-ink); }
    .mk .mk-faq summary { font-size: .95rem; }

    /* ---- stats ---- */
    .mk .mk-stats { padding: 0; background: transparent; }
    .mk .mk-stats .mk-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; width: auto; max-width: none; margin: 14px 16px 0; padding: 4px; background: var(--app-ink); border-radius: var(--app-r); }
    .mk .mk-stats .mk-stat { padding: 12px 4px; text-align: center; border: 0; min-width: 0; }
    .mk .mk-stats .mk-stat b { font-size: 1.12rem; color: #fff; }
    .mk .mk-stats .mk-stat span { display: block; margin-top: 4px; font: 500 .62rem/1.3 var(--f-sans); letter-spacing: 0; text-transform: none; color: #cfc8c0; }

    /* ---- home ---- */
    .mk .mk-hero { background: #fff; border-bottom: 1px solid var(--app-line); border-radius: 0 0 22px 22px; }
    .mk .mk-hero::before { display: none; }
    .mk .mk-hero .mk-hero-inner { display: block; padding-top: 16px; padding-bottom: 16px; }
    .mk .mk-hero .mk-hero-dateline { display: none; }
    .mk .mk-hero h1 { margin: 0; font-size: 1.7rem; }
    .mk .mk-hero h1 .mk-h1-topic { display: block; margin-bottom: 6px; font: 600 .8rem/1.35 var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--app-mut); }
    .mk .mk-hero-lede { margin: 10px 0 0; font-size: .93rem; color: var(--app-mut); }
    .mk .mk-discover { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; padding: 5px 5px 5px 14px; background: var(--app-bg); border: 1px solid var(--app-line); border-radius: 999px; box-shadow: none; }
    .mk .mk-discover > svg { flex: 0 0 18px; width: 18px; }
    .mk .mk-discover input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 4px; }
    .mk .mk-discover .mk-btn { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: .88rem; }
    .mk .mk-pills { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 12px -16px 0; padding: 0 16px; scrollbar-width: none; }
    .mk .mk-pill { flex: 0 0 auto; padding: 8px 13px; font-size: .82rem; white-space: nowrap; }
    .mk .mk-hero:not(.prd-hero) .mk-hero-actions, .mk .mk-hero:not(.prd-hero) .mk-hero-badges, .mk .mk-hero:not(.prd-hero) .mk-hero-visual { display: none; }
    .app-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px 0; }
    .app-tiles a { display: flex; flex-direction: column; gap: 3px; padding: 14px; background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-r); text-decoration: none; color: var(--app-ink); box-shadow: 0 2px 10px rgba(26,20,16,.05); }
    .app-tiles svg { width: 22px; height: 22px; padding: 8px; margin-bottom: 7px; border-radius: 12px; background: #fbe2dc; fill: none; stroke: var(--app-acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; box-sizing: content-box; }
    .app-tiles b { font: 700 .95rem/1.25 var(--f-sans); }
    .app-tiles span { font: 500 .78rem/1.35 var(--f-sans); color: var(--app-mut); }

    /* ---- press release page ---- */
    .mk .prd-hero .mk-hero-inner { padding-top: 16px; }
    .mk .prd-hero .mk-hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
    .mk .prd-hero .mk-hero-actions .mk-btn { width: 100%; }
    .mk .prd-hero .mk-hero-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; padding: 0; border: 0; }
    .mk .prd-hero .mk-hero-badge { padding: 10px 12px; background: var(--app-bg); border-radius: 12px; }
    .mk .prd-hero .mk-hero-badge b { font-size: 1.25rem; }
    .mk .prd-hero .mk-hero-badge span { font-family: var(--f-sans); letter-spacing: 0; text-transform: none; font-size: .74rem; }
    .mk .prd-table { display: block; max-width: 100%; overflow-x: auto; }

    /* ---- how it works strip ---- */
    .mk .mk-how { background: transparent; border: 0; padding: 14px 0 0; }
    .mk .mk-how-list { display: flex !important; overflow-x: auto; gap: 10px; margin: 0 -16px; padding: 2px 16px 4px; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; }
    .mk .mk-how-list > li { flex: 0 0 66%; scroll-snap-align: start; background: #fff; border-radius: 14px; }

    /* small labels read as normal text, not spaced capitals */
    .mk .mk-how-head > *:not(a) { font: 700 1rem var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--app-ink); margin: 0; }
    .mk .mk-scard-for, .mk .mk-buybox .type, .mk .mk-metric span, .mk .mk-site span, .mk .mk-cred-badge, .mk .mk-bb-packages-label, .mk .mk-pkg-head span:not([data-b-save]):not([data-b-off]) { font-family: var(--f-sans); letter-spacing: 0; text-transform: none; }
    .mk .mk-buybox .amt { font-size: 2.2rem; }

    /* ---- shop: the table becomes a list of cards ---- */
    .mk.page-shop .mk-phero .sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
    .mk.page-shop .mk-sterms, .mk.page-shop .mk-how { display: none; }
    .mk.page-shop .mk-sl-sec { padding-top: 12px; }
    .mk .mk-sf { border-radius: var(--app-r); overflow: hidden; }
    .mk .mk-sf .mk-sf-q > span:first-child { display: none; }
    .mk .mk-sf-kbd { display: none; }
    .app-filter-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; border: 0; border-top: 1px solid var(--app-line); background: #fff; font: 700 .9rem var(--f-sans); color: var(--app-ink); cursor: pointer; }
    .app-filter-toggle::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--app-acc); }
    .app-filter-toggle[aria-expanded="true"]::after { content: "−"; }
    .app-js .mk-sf:not(.app-open) .mk-sf-f:not(.mk-sf-q), .app-js .mk-sf:not(.app-open) .mk-sf-foot { display: none; }
    .mk .mk-sl-card { overflow: visible; background: transparent; border: 0; box-shadow: none; }
    .mk table.mk-sl, .mk .mk-sl tbody { display: block; width: 100%; min-width: 0; }
    .mk .mk-sl thead { display: none; }
    .mk .mk-sl tr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 6px; row-gap: 4px; margin-bottom: 10px; padding: 14px 12px 12px; background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-r); content-visibility: auto; contain-intrinsic-size: auto 146px; }
    .mk .mk-sl tr[hidden], .mk .mk-sl tr.app-later { display: none !important; }
    .app-showmore { width: 100%; min-height: 48px; margin: 2px 0 14px; border: 1px solid var(--app-ink); border-radius: 12px; background: #fff; font: 700 .92rem var(--f-sans); color: var(--app-ink); cursor: pointer; }
    .app-showmore[hidden] { display: none; }
    .mk .mk-sl td { display: block; position: static; width: auto; max-width: none; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; }
    .mk .mk-sl td.nm { display: none; }
    .mk .mk-sl td.dm { grid-area: 1 / 1 / 2 / 4; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mk .mk-sl td.ct { grid-area: 2 / 1 / 3 / 4; font-size: .8rem; color: var(--app-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mk .mk-sl td:nth-child(4) { display: none; }
    .mk .mk-sl td.n { grid-row: 3; margin-top: 8px; text-align: center; }
    .mk .mk-sl td.n::before { display: block; margin-bottom: 4px; font: 600 .66rem var(--f-sans); color: var(--app-mut); }
    .mk .mk-sl td:nth-child(5)::before { content: "PR"; }
    .mk .mk-sl td:nth-child(6)::before { content: "Post"; }
    .mk .mk-sl td:nth-child(7)::before { content: "Casino"; }
    .mk .mk-sl td:nth-child(8)::before { content: "CBD"; }
    .mk .mk-sl td:nth-child(9)::before { content: "Dating"; }
    .mk .mk-sl .mk-sl-p { display: block; width: 100%; padding: 7px 0; font-size: .74rem; border-radius: 10px; }
    .mk .mk-sl td.ad { grid-area: 1 / 4 / 3 / 6; align-self: center; text-align: right; }
    .mk .mk-sl .mk-sl-add { width: 100%; min-height: 40px; padding: 0 6px; border-radius: 999px; font-size: .78rem; }

    /* ---- sticky order bar on product pages ---- */
    .app-buybar { display: flex; align-items: center; gap: 12px; position: fixed; left: 10px; right: 10px; bottom: calc(var(--app-tab) + env(safe-area-inset-bottom) + 8px); z-index: 80; padding: 8px 8px 8px 16px; background: var(--app-ink); color: #fff; border-radius: 999px; box-shadow: 0 10px 30px rgba(26,20,16,.3); transform: translateY(160%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
    .app-buybar.on { transform: none; visibility: visible; }
    .app-buybar b { font: 700 1.15rem var(--f-sans); color: #fff; }
    .app-buybar span { flex: 1; min-width: 0; font: 500 .76rem/1.3 var(--f-sans); color: #d9d2ca; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .app-buybar button { border: 0; border-radius: 999px; padding: 12px 20px; background: var(--app-acc); color: #fff; font: 700 .9rem var(--f-sans); cursor: pointer; }

    /* ---- closing call to action and lead form ---- */
    .mk .mk-cta { margin: 0 12px 16px; padding: 24px 0; border-radius: 22px; }
    .mk .mk-cta-actions { display: flex; flex-direction: column; gap: 10px; }
    .mk .mk-cta-actions .mk-btn { width: 100%; }
    .mk .mk-lead-band .mk-form { border-radius: var(--app-r); }

    /* ---- agency directory search ---- */
    .dir-search { border-radius: 16px; }
    .dir-search button { flex: 1 0 100%; min-height: 48px; justify-content: center; }

    /* ---- cart and checkout ---- */
    .mk .ck-steps { flex-wrap: nowrap; gap: 6px; justify-content: space-between; margin-bottom: 14px; }
    .mk .ck-steps li { gap: 6px; font-size: .8rem; white-space: nowrap; }
    .mk .ck-steps li { min-width: 0; margin: 0; flex: 0 1 auto; }
    .mk .ck-steps li .n { width: 24px; height: 24px; flex: 0 0 24px; margin-right: 6px; }
    .mk .ck-steps li::after { width: 10px; flex: 0 0 10px; margin: 0 6px; }
    .mk .ck-item { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; }
    .mk .ck-item > * { min-width: 0; }
    .mk .ck-item > .ck-item-right { grid-column: 1 / -1; }
    .mk .ck-thumb { width: 40px; height: 40px; }
    .mk .ck-item-name { font-size: 1rem; overflow-wrap: anywhere; }
    .mk .ck-item select { width: 100%; max-width: 100%; margin-top: 4px; }

    /* ---- remaining spaced capitals on inner pages ---- */
    main :is(.news-mast-top, .news-date, .news-label, .news-slide-meta, .news-col-h, .news-meta, .news-meta time, .news-section-h, .news-section-h span, .blog-pager-now, .post-side-k, .post-side-h, .post-banner-tag,
        .dir-eyebrow, .dir-badge, .dir-profile h3, .dir-card h3, dt, th, label, .prd-strip-k, .prd-strip-k b, .prd-live, .prd-strip-foot p, .prd-strip-foot span, .prd-strip-foot a, .prd-assure h3, .prd-tag, .from, .k, .prd-pin, .prd-pin b, .mk-comp h3,
        .ck-thumb, .ck-chip, small, .skp-brands, .ckc-coins, .skp-brands span, .ck-or, .ck-or span, .ckc-coins span, h3),
    .ent-footer :is(.ent-foot-k, h4) { text-transform: none !important; letter-spacing: 0 !important; }

    /* ---- footer: collapsible groups ---- */
    .ent-footer-cta-band .ent-footer-cta-copy p { display: none; }
    .ent-footer-main { padding-top: 20px; padding-bottom: 20px; }
    .ent-footer-brand > p { display: none; }
    .app-js .ent-footer-cols { display: block !important; }
    .app-js .ent-footer-col { border-bottom: 1px solid rgba(255,255,255,.12); }
    .app-js .ent-footer-col h4 { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 14px 0; cursor: pointer; }
    .app-js .ent-footer-col h4::after { content: "+"; font-size: 1.2rem; opacity: .7; }
    .app-js .ent-footer-col.open h4::after { content: "−"; }
    .app-js .ent-footer-col a { display: none; }
    .app-js .ent-footer-col.open a { display: block; padding: 8px 0; }
}

@media (max-width: 360px) {
    .app-tabbar svg { padding-left: 9px; padding-right: 9px; }
    .mk .mk-sl .mk-sl-p { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) { .app-buybar { transition: none; } }
@media print { .app-tabbar, .app-buybar { display: none !important; } }
