/*
Theme Name: APKChamber Light
Version: 1.1.13
Description: Premium APK discovery theme. Presentation only; app data lives in apkchamber-core.
License: GPL-2.0-or-later
*/
:root{--bg:#F7F8FC;--panel:#FFFFFF;--navy:#14213D;--indigo:#4F46E5;--indigo-dark:#3730A3;--teal:#0D9488;--muted:#64748B;--border:#E2E8F0;--radius:16px;--shadow:0 1px 2px rgba(20,33,61,.06),0 8px 24px rgba(20,33,61,.06)}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--navy);font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.6}
a{color:var(--indigo);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
img{max-width:100%;height:auto}
.wrap{max-width:1280px;margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-9999px}.skip:focus{left:12px;top:12px;background:#fff;padding:8px 12px;z-index:100}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);border-bottom:1px solid var(--border)}
body.admin-bar .site-header{top:32px}
@media screen and (max-width:782px){body.admin-bar .site-header{top:46px}}
.header-inner{max-width:1280px;margin:0 auto;padding:10px 20px;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:.02em;color:var(--navy);font-size:20px}
.logo:hover{text-decoration:none}
.logo-mark{width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:linear-gradient(135deg,var(--indigo),var(--teal));display:grid;place-items:center;color:#fff;font-weight:900}
.search-form{flex:1 1 320px;display:flex;max-width:560px}
.search-form input{flex:1;min-width:0;padding:10px 14px;border:1px solid var(--border);border-right:0;border-radius:12px 0 0 12px;font:inherit;color:var(--navy);background:#fff}
.search-form button{padding:10px 18px;border:0;border-radius:0 12px 12px 0;background:var(--indigo);color:#fff;font:inherit;font-weight:600;cursor:pointer;transition:background-color 180ms,box-shadow 180ms}
.search-form button:hover{background:var(--indigo-dark)}
.main-nav{display:flex;gap:4px;flex-wrap:wrap;margin-left:auto}
.main-nav a{color:var(--navy);font-weight:600;padding:8px 12px;border-radius:10px}
.main-nav a:hover{background:#EEF2FF;text-decoration:none}
.mobile-menu{display:none;width:100%}
.mobile-menu summary{cursor:pointer;font-weight:700;padding:10px 0;list-style:none}
.mobile-menu nav{display:flex;flex-direction:column;gap:2px;padding:8px 0}
.mobile-menu nav a{padding:10px 4px;color:var(--navy);font-weight:600}
main{padding:24px 0 40px}
.hero{background:linear-gradient(135deg,#EEF2FF 0%,#FFFFFF 55%,#ECFDF5 100%);border:1px solid var(--border);border-radius:20px;padding:24px 28px;display:grid;grid-template-columns:1.35fr .65fr;gap:20px;align-items:center;overflow:hidden}
.hero h1{font-size:clamp(26px,3.5vw,36px);line-height:1.15;margin:0 0 8px;letter-spacing:-.02em}
.hero p{color:var(--muted);margin:0 0 16px;max-width:56ch}
.hero .search-form{max-width:100%}
.hero-art{width:100%;max-width:300px;margin-left:auto;animation:hero-float 7s ease-in-out infinite}
.hero-art svg{width:100%;height:auto;display:block}
@keyframes hero-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.page-head{margin:0 0 18px}
.page-head h1{font-size:clamp(24px,3vw,32px);line-height:1.2;margin:0;letter-spacing:-.01em}
.page-head p{color:var(--muted);margin:6px 0 0;max-width:68ch}
.section{margin-top:28px}
.section h2{font-size:21px;margin:0 0 4px}
.section .sub{color:var(--muted);margin:0 0 14px}
.cat-row{display:flex;flex-wrap:wrap;gap:10px}
.cat-chip{display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--border);border-radius:999px;padding:8px 13px;color:var(--navy);font-weight:600;transition:box-shadow 180ms,transform 180ms}
.cat-chip:hover{box-shadow:var(--shadow);text-decoration:none}
@media (hover:hover){.cat-chip:hover{transform:translateY(-2px)}}
.cat-chip svg{width:20px;height:20px;flex:0 0 20px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.grid > *{min-width:0}
.card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;gap:8px;color:var(--navy);box-shadow:0 1px 2px rgba(20,33,61,.04);transition:transform 180ms,box-shadow 180ms}
.card:hover{text-decoration:none;box-shadow:var(--shadow)}
@media (hover:hover){.card:hover{transform:translateY(-3px)}}
.card img{width:56px;height:56px;border-radius:14px;object-fit:cover;background:#EEF2FF}
.card .monogram{width:56px;height:56px;border-radius:14px;background:linear-gradient(135deg,#EEF2FF,#ECFDF5);display:grid;place-items:center;font-size:24px;font-weight:800;color:var(--indigo)}
.card h3{font-size:16px;line-height:1.35;margin:0}
.card p{font-size:14px;color:var(--muted);margin:0;line-height:1.5}
.card .version{font-size:13px;color:var(--teal);font-weight:700}
.card .source-date{font-size:13px;color:var(--muted)}
.cat-card .cat-icon{width:48px;height:48px;border-radius:12px;background:#EEF2FF;display:grid;place-items:center}
.cat-card .cat-icon svg{width:26px;height:26px}
.badge{display:inline-block;background:#EEF2FF;color:var(--indigo);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:3px 8px;border-radius:999px}
.btn{display:inline-block;background:var(--indigo);color:#fff;font-weight:700;padding:12px 20px;border-radius:12px;border:0;cursor:pointer;transition:background-color 180ms,box-shadow 180ms;text-align:center}
.btn:hover{background:var(--indigo-dark);text-decoration:none}
.btn.secondary{background:#fff;color:var(--navy);border:1px solid var(--border)}
.btn.secondary:hover{border-color:var(--teal)}
.btn-download{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:14px 20px;font-size:17px;background:var(--indigo);color:#fff;border-radius:12px}
.btn-download:hover{background:var(--indigo-dark);text-decoration:none}
.btn-download svg{flex:0 0 20px}
.download-meta{font-size:14px;color:var(--muted);margin:10px 0 0}
.download-source{font-size:14px;color:var(--navy);font-weight:600;margin:4px 0 0}
.download-note{font-size:14px;color:var(--navy);margin:8px 0 0}
.notice{background:#FFFBEB;border:1px solid #FDE68A;border-radius:12px;padding:14px 16px}
.breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;list-style:none;margin:4px 0 20px;padding:0;font-size:14px;color:var(--muted)}
.breadcrumbs li{display:flex;align-items:center;gap:6px}
.breadcrumbs li + li::before{content:"›";color:var(--muted)}
.breadcrumbs a{color:var(--navy);font-weight:600}
.breadcrumbs a:hover{color:var(--indigo)}
.breadcrumbs [aria-current="page"]{color:var(--muted)}
.detail-layout{display:grid;grid-template-columns:1fr 320px;gap:24px;align-items:start}
.detail-head{display:flex;gap:18px;align-items:flex-start}
.detail-head img,.detail-head .monogram{width:96px;height:96px;border-radius:20px;flex:0 0 96px}
.detail-head .monogram{font-size:40px}
.detail-head h1{margin:0;line-height:1.2}
.panel{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:0 1px 2px rgba(20,33,61,.04)}
.panel h2{font-size:18px;margin-top:0}
.aside-panel{margin-top:16px}
.report-section{margin-top:28px}
.report-section fieldset{border:0;padding:0;margin:0 0 14px}
.report-section legend{font-weight:700;margin-bottom:10px}
.radio-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.radio-tile{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#fff;border:1px solid var(--border);border-radius:12px;font-weight:600;color:var(--navy);cursor:pointer;transition:border-color 180ms,background-color 180ms,box-shadow 180ms}
.radio-tile:hover{border-color:var(--indigo)}
.radio-tile:has(input:checked){border-color:var(--indigo);background:#EEF2FF;box-shadow:0 1px 2px rgba(20,33,61,.08)}
.radio-tile:focus-within{outline:3px solid var(--teal);outline-offset:2px}
.radio-tile input{width:18px;height:18px;flex:0 0 18px;accent-color:var(--indigo);margin:0}
.form-control{width:100%;padding:11px 14px;border:1px solid var(--border);border-radius:12px;font:inherit;color:var(--navy);background:#fff;resize:vertical}
.report-link{font-size:14px;margin:0}
.entry-content p{margin:0 0 14px}
.entry-content h2,.entry-content h3{margin:20px 0 8px}
.entry-content details{border:1px solid var(--border);border-radius:12px;padding:14px 16px;background:var(--panel)}
.entry-content summary{cursor:pointer;font-weight:700;color:var(--navy)}
.entry-content summary:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.entry-content details p:last-child{margin-bottom:0}
table{width:100%;border-collapse:collapse;font-size:15px}
th{text-align:left;color:var(--muted);font-weight:600;padding:9px 8px 9px 0;vertical-align:top}
td{padding:9px 0;border-top:1px solid var(--border);overflow-wrap:anywhere}
.gallery{display:flex;gap:12px;overflow-x:auto;padding-bottom:6px}
.gallery img{border-radius:12px;border:1px solid var(--border)}
.empty{background:var(--panel);border:1px dashed var(--border);border-radius:var(--radius);padding:20px;color:var(--muted)}
.empty h2{color:var(--navy);font-size:18px;margin:0 0 6px}
.empty p{margin:0 0 10px}
.empty p:last-child{margin-bottom:0}
.site-footer{border-top:1px solid var(--border);background:#fff;padding:28px 0}
.site-footer nav{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:10px}
.site-footer nav a{color:var(--navy);font-weight:600}
.site-footer p{color:var(--muted);margin:0}
@media (max-width:900px){.detail-layout{grid-template-columns:1fr}.hero{grid-template-columns:1fr}.hero-art{max-width:260px;margin:0 auto}.main-nav{display:none}.mobile-menu{display:block}
/* 1.1.8 mobile header fix (phone evidence 2026-10-28): the old stacked,
semi-transparent sticky header was oversized and let content show through
while scrolling. On mobile the header is no longer sticky, is fully opaque,
and compacts to two rows: logo + Menu button, then one full-width search. */
.site-header{position:relative;background:#fff}
body.admin-bar .site-header{top:0}
.header-inner{gap:10px;padding:10px 16px}
.logo{font-size:18px}
.logo-mark{width:30px;height:30px;flex-basis:30px;border-radius:9px}
.header-inner .search-form{order:3;flex:1 1 100%;max-width:none}
.hero .search-form{display:none}
.mobile-menu{width:auto;margin-left:auto;position:relative}
.mobile-menu summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 14px;background:#EEF2FF;border:1px solid var(--border);border-radius:12px;color:var(--navy);font-weight:700;cursor:pointer;list-style:none}
.mobile-menu summary::-webkit-details-marker{display:none}
.mobile-menu summary svg{flex:0 0 18px}
.mobile-menu[open ] summary{background:var(--indigo);color:#fff;border-color:var(--indigo)}
.mobile-menu nav{position:absolute;right:0;top:calc(100% + 8px);min-width:220px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:8px;z-index:60}
.mobile-menu nav a{padding:12px 10px;border-radius:10px}
.mobile-menu nav a:hover{background:#EEF2FF;text-decoration:none}
}
@media (max-width:480px){.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card{padding:12px}.header-inner{padding:10px 14px}.wrap{padding:0 14px}main{padding:20px 0 32px}.hero{padding:20px}}
/* 1.1.11 mobile ad containment, gated by container width since 1.1.13
(phone evidence 2026-10-29). Third-party ad content is never scaled,
clipped, or allowed to widen the page or stretch cards. The ad slots
below are their own full-width container children (never grid items);
min-width:0 keeps them inside the content column. A fixed-size placement
loads only when its container actually fits it: the loader in app.js
measures the ad section's width and injects the provider script only
when the container is at least the fixed width; otherwise the slot is
omitted without loading anything. The old viewport-only rule (panel
hidden below a 328px viewport) was removed: viewport width is only a
proxy for container width, and the container is what the ad must fit.
The variable-width Native slot is handled by the fit guard in app.js,
which omits a slot whose rendered content overflows its container and
never un-hides it during the page lifetime. No page-wide overflow-x
rule is used anywhere: hiding the page overflow would mask the
breakage instead of fixing it. */
.apkchamber-ads{min-width:0}
.apkchamber-ad-native,.apkchamber-ad-panel{min-width:0;max-width:100%}
@media (prefers-reduced-motion:reduce){.hero-art{animation:none}.card,.btn,.cat-chip,.radio-tile{transition:none}}
@media (max-width:600px){.radio-grid{grid-template-columns:1fr}}
