/*
Theme Name: BestCameraPhones
Theme URI: https://www.bestcameraphones.com/
Author: BestCameraPhones
Description: Camera phones, tested and ranked. Custom theme built from the BestCameraPhones design with a data-driven CMS (phones, brands, sensors, lists, deals, comparisons, articles).
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: bcp
*/
:root{--bg:#EDF1FF;--s1:#FFFFFF;--s2:#F0F1F5;--s3:#D9DBE0;--t1:#07184F;--t2:#33363D;--t3:#595C66;--t4:#6C707A;--brand:#07184F;--brandh:#182F78;--brand2:#324CA1;--tint:#F3F6FF;--hero:#0A2476;--pill:#051033;--foot:#14143B;--acc:#7F5FBC;--acct:#F7F4FF;--hovt:#F0EEFF;--info:#0065C5;--scoreblue:#006FDA;--ok:#036E47;--okbg:#ECFFF8;--err:#BB2F47;--errbg:#FFF1F3;--warn:#995824;--warnbg:#FFFADF;--star:#F5B400;--bd:rgba(7,24,79,0.10);--bd2:#C2C4CC;--well:#FDFDFD;--wellbd:#E5E5E5;--btn:#07184F;--btnh:#182F78;--btnt:#FFFFFF;--sh:0 1px 2px rgba(7,24,79,0.10);--shh:0 4px 6px -1px rgba(0,0,0,0.10),0 2px 4px -2px rgba(0,0,0,0.10);--shd:0 4px 12px rgba(0,0,0,0.15);--grad:linear-gradient(270deg,#FF3200 1%,#FF3200 18%,#FFB400 38%,#DA33D0 69%,#006FD9 100%);--ff:'Figtree',system-ui,sans-serif;--fb:'Work Sans',system-ui,sans-serif}
[data-theme="dark"]{--bg:#212121;--s1:#000000;--s2:#1C1C1F;--s3:#464852;--t1:#F3F6FF;--t2:#F0F1F5;--t3:#C2C4CC;--t4:#C2C4CC;--brand:#F3F6FF;--brandh:#D9DBE0;--brand2:#9DB0F0;--tint:#141B33;--hero:#070E23;--pill:#000000;--acc:#B9A2EE;--acct:#1E1830;--hovt:#251E3A;--info:#6CB4FF;--scoreblue:#6CB4FF;--ok:#4BD49B;--okbg:#0B2A1F;--err:#FF8A9C;--errbg:#2E1117;--warn:#F2C27A;--warnbg:#2E2610;--bd:#464852;--bd2:#5A5D68;--well:#0D0D0F;--wellbd:#2E2E33;--btn:#F3F6FF;--btnh:#D9DBE0;--btnt:#07184F;--sh:0 1px 2px rgba(0,0,0,0.6);--shh:0 4px 10px rgba(0,0,0,0.6);color-scheme:dark}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--t2);font-family:var(--fb);-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:var(--t1)}
a:hover{color:var(--brand2)}
button,input,select,textarea{font:inherit}
img{max-width:100%;height:auto}
:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(7,24,79,0.20),0 0 0 1px var(--brand2) !important}
select{-webkit-appearance:none !important;-moz-appearance:none !important;appearance:none !important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2307184F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;background-repeat:no-repeat !important;background-position:right 12px center !important;background-size:16px 16px !important;padding-right:40px !important;cursor:pointer}
select::-ms-expand{display:none}
[data-theme="dark"] select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F3F6FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important}
details>summary{list-style:none}
details>summary::-webkit-details-marker{display:none}
details[open]>summary .bcp-chev{transform:rotate(180deg)}
[hidden]{display:none !important}
.bcp-skip:focus{top:8px !important}
@media (prefers-reduced-motion:reduce){*{transition:none !important;animation:none !important;scroll-behavior:auto !important}}
@keyframes bcpIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* hover states (design's style-hover attributes) */
.hv-lift:hover{transform:translateY(-2px);box-shadow:var(--shh) !important}
.hv-shadow:hover{box-shadow:var(--shh) !important}
.hv-tint:hover{background:var(--tint) !important}
.hv-ul:hover{text-decoration:underline !important}
.hv-link:hover{color:var(--brand2) !important;text-decoration:underline !important}
.hv-white:hover{color:#fff !important;text-decoration:underline !important}
.hv-btn:hover{background:var(--btnh) !important}
.hv-glass:hover{background:rgba(255,255,255,0.22) !important;color:#fff !important}
.hv-glass2:hover{background:rgba(255,255,255,0.06) !important;color:#fff !important}
.bcp-navitem .bcp-menubtn[aria-expanded="true"]{border-bottom-color:var(--brand) !important}

/* Camera Score ring: the arc animates when scrolled into view */
.bcp-ring .bcp-ring-fg{transition:stroke-dashoffset 1100ms cubic-bezier(.2,.7,.2,1)}
.bcp-ring.bcp-on .bcp-ring-fg{stroke-dashoffset:var(--off)}
.no-js .bcp-ring .bcp-ring-fg{stroke-dashoffset:var(--off)}

/* layout helpers */
.bcp-wrap{max-width:1156px;width:100%;margin:0 auto;padding:clamp(32px,5vw,48px) clamp(16px,3vw,24px) 0}
.bcp-cardw{width:190px}
.bcp-desk-only{display:none !important}
.bcp-xl-only{display:none !important}
.bcp-tablet-up{display:none !important}
.bcp-wide-only{display:none !important}
.bcp-small-only{display:flex}
.bcp-ad-desk{display:none !important}
.bcp-ad-mob{display:flex}
.g-hero,.g-rev,.g-rev-inner,.g-rail,.g-list,.g-pick,.g-lcard,.g-head,.g-body,.g-slots,.g-cols3,.g-brand,.g-lead,.g-row,.g-auth,.g-scene,.g-finder,.g-comp{grid-template-columns:minmax(0,1fr)}
.g-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-sensors{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-slots{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-brand{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-scene{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-brandtiles{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.g-cardmin{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.bcp-budget{display:flex;overflow-x:auto}
.bcp-budget-item{flex:0 0 200px}
.bcp-slabtabs{gap:6px}
.bcp-slabtab{border-radius:999px;background:transparent;color:rgba(255,255,255,0.72)}
.bcp-slabtab[aria-selected="true"]{background:#051033;color:#fff}
.bcp-fcard{grid-template-columns:minmax(0,1fr)}
.bcp-fpanel{display:none}
.bcp-fpanel.bcp-open{position:fixed;left:0;right:0;bottom:0;top:12vh;z-index:91;background:var(--bg);border-radius:16px 16px 0 0;padding:12px 16px 16px;overflow:auto;display:flex;flex-direction:column}
.bcp-ad-img-row{width:120px !important}
@media (min-width:560px){.g-cols3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:640px){.g-comp{grid-template-columns:repeat(2,minmax(0,1fr))}.g-rail{grid-template-columns:300px minmax(0,1fr)}.g-row{grid-template-columns:200px 1fr}.g-auth{grid-template-columns:96px 1fr}.g-brand{grid-template-columns:repeat(3,minmax(0,1fr))}.bcp-fcard{grid-template-columns:200px minmax(0,1fr)}.bcp-fcard.bcp-fcard-grid{grid-template-columns:minmax(0,1fr)}}
@media (min-width:768px){.bcp-cardw{width:220px}.g-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.g-rev-inner{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.g-pick{grid-template-columns:200px 220px 1fr}.g-lcard{grid-template-columns:200px minmax(0,1fr)}.g-slots{grid-template-columns:repeat(4,minmax(0,1fr))}.g-cols3{grid-template-columns:repeat(3,minmax(0,1fr))}.bcp-tablet-up{display:flex !important}.bcp-small-only{display:none !important}.bcp-ad-desk{display:flex !important}.bcp-ad-mob{display:none !important}.bcp-ad-img-row{width:200px !important}.g-cardmin{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}}
@media (min-width:900px){.g-sensors{grid-template-columns:repeat(4,minmax(0,1fr))}.g-head{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}.g-lead{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.bcp-wide-only{display:block !important}.bcp-narrow-only{display:none !important}}
@media (min-width:1024px){.g-comp{grid-template-columns:repeat(3,minmax(0,1fr))}.bcp-desk-only{display:flex !important}.bcp-mob-only{display:none !important}.g-hero{grid-template-columns:minmax(0,1fr) 380px}.g-rev{grid-template-columns:minmax(0,1fr) 300px}.g-rail{grid-template-columns:minmax(0,1fr)}.g-body{grid-template-columns:minmax(0,760px) 300px}.g-brand{grid-template-columns:repeat(5,minmax(0,1fr))}.g-scene{grid-template-columns:repeat(4,minmax(0,1fr))}.g-finder{grid-template-columns:280px minmax(0,1fr)}.bcp-budget{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible}.bcp-budget-item{flex:1 1 auto}.bcp-slabtabs{gap:4px;border-bottom:1px solid rgba(255,255,255,0.18)}.bcp-slabtab{border-radius:0;background:transparent;border-bottom:4px solid transparent}.bcp-slabtab[aria-selected="true"]{background:transparent;color:#fff;border-bottom-color:#fff}.bcp-fpanel{display:flex;flex-direction:column;position:sticky;top:128px;max-height:calc(100vh - 140px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}#bcp-anchor{display:none !important}#bcp-toasts{top:124px}}
@media (max-width:1023px){#bcp-toasts{top:68px !important}#bcp-deskhdr{display:none !important}}
@media (min-width:1280px){.bcp-xl-only{display:flex !important}.g-list{grid-template-columns:minmax(0,1fr) 300px}}
#bcp-deskhdr{display:block !important}
@media (max-width:1023px){#bcp-deskhdr{display:none !important}}
.bcp-ad.bcp-desk-only{display:none !important}
@media (min-width:1024px){.bcp-ad.bcp-desk-only{display:flex !important}}
body.bcp-anchor-on #main-content{padding-bottom:140px}

/* autocomplete */
.bcp-ac .bcp-ac-group{font-family:var(--ff);font-weight:700;font-size:12px;color:var(--t4);padding:8px 8px 4px;display:block}
.bcp-ac a{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:8px;text-decoration:none;color:var(--t1)}
.bcp-ac a:hover,.bcp-ac a[aria-selected="true"]{background:var(--tint)}
.bcp-ac-mobile a{min-height:52px;padding:4px 8px}
.bcp-ac .bcp-ac-thumb{width:44px;flex:none;display:flex}
.bcp-ac .bcp-ac-text{flex:1;min-width:0;display:flex;flex-direction:column}
.bcp-ac .bcp-ac-label{font-family:var(--ff);font-weight:600;font-size:14px}
.bcp-ac .bcp-ac-sub{font-size:12px;color:var(--t4)}
.bcp-ac .bcp-ac-empty{padding:12px 8px;font-size:14px;color:var(--t3);display:block}

/* tray */
.bcp-tray-item{position:relative;flex:none;display:flex;align-items:center;gap:6px;background:var(--s2);border-radius:8px;padding:4px 30px 4px 4px}
.bcp-tray-item .bcp-tray-rm{position:absolute;right:0;top:0;width:28px;height:100%;border:none;background:transparent;color:var(--t3);cursor:pointer;display:flex;align-items:center;justify-content:center}
.bcp-tray-go.bcp-ready{background:var(--btn) !important;color:var(--btnt) !important;pointer-events:auto !important}
.bcp-toast{background:#07184F;color:#fff;font-family:var(--ff);font-weight:600;font-size:14px;padding:10px 16px;border-radius:999px;box-shadow:var(--shd);animation:bcpIn 150ms ease;white-space:nowrap}

/* modal forms */
.bcp-modal-body label{display:flex;flex-direction:column;gap:6px;font-family:var(--ff);font-weight:600;font-size:14px;color:var(--t1)}
.bcp-modal-body input,.bcp-modal-body textarea{border-radius:8px;border:1px solid var(--bd2);background:var(--s1);color:var(--t1);padding:10px 12px;font-family:var(--fb);font-weight:400;font-size:15px}
.bcp-modal-body input{height:44px;padding:0 12px}
.bcp-modal-body form{display:flex;flex-direction:column;gap:12px}
.bcp-modal-body .bcp-intro{font-size:14px;line-height:22px;color:var(--t3)}
.bcp-modal-body .bcp-submit{height:48px;border-radius:8px;border:none;background:var(--btn);color:var(--btnt);font-family:var(--ff);font-weight:600;font-size:15px;cursor:pointer}
.bcp-modal-body .bcp-err{font-size:13px;color:var(--err)}
.bcp-modal-body .bcp-done{display:flex;gap:10px;align-items:flex-start;background:var(--okbg);color:var(--ok);border-radius:12px;padding:14px;font-size:15px;line-height:22px}
.bcp-cookie-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--bd)}
.bcp-switch{display:inline-block;width:44px;height:26px;border-radius:999px;border:none;position:relative;cursor:pointer;flex:none}
.bcp-switch .bcp-knob{position:absolute;top:4px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left 150ms}

/* listing drawer open state */
.bcp-fdrawer:not([hidden]){display:block}

/* article body (EditorialPage styles) */
.bcp-article .bcp-h2,.bcp-doc h2{margin:12px 0 0;font-family:var(--ff);font-weight:700;font-size:clamp(24px,2.2vw,28px);line-height:1.25;color:var(--t1);scroll-margin-top:140px}
.bcp-doc h2{margin:14px 0 0}
.bcp-doc h3,.bcp-article .bcp-h3{margin:6px 0 0;font-family:var(--ff);font-weight:700;font-size:20px;color:var(--t1)}
.bcp-article .bcp-body{display:flex;flex-direction:column;gap:18px}
.bcp-article .bcp-body p{margin:0;font-size:clamp(16px,1.6vw,18px);line-height:1.78;color:var(--t2);max-width:70ch}
.bcp-doc p{margin:0;font-size:16px;line-height:26px;color:var(--t2)}
.bcp-doc ul,.bcp-doc ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.bcp-doc li{font-size:16px;line-height:26px;color:var(--t2)}
.bcp-doc .bcp-links{display:flex;flex-wrap:wrap;gap:8px}
.bcp-doc .bcp-links a{font-family:var(--ff);font-weight:600;font-size:15px}
.bcp-article .bcp-fig{margin:0;display:flex;flex-direction:column;gap:6px}
.bcp-article .bcp-fig img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:12px;display:block}
.bcp-article .bcp-fig-sm img{border-radius:10px}
.bcp-article .bcp-fig.bcp-low img{filter:brightness(0.55) saturate(0.85) hue-rotate(12deg)}
.bcp-article .bcp-fig.bcp-low2 img{filter:brightness(0.6) contrast(1.15) saturate(0.7)}
.bcp-article .bcp-fig.bcp-pop img{filter:contrast(1.06) saturate(1.05)}
.bcp-article figcaption{font-size:13px;line-height:19px;color:var(--t3)}
.bcp-article figcaption span{color:var(--t4)}
.bcp-article .bcp-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.bcp-tablewrap{overflow-x:auto;background:var(--s1);border-radius:12px;box-shadow:var(--sh)}
.bcp-tablewrap table{width:100%;border-collapse:collapse;font-size:14px;min-width:480px}
.bcp-tablewrap thead tr{background:var(--s2);text-align:left}
.bcp-tablewrap th{padding:10px 12px;font-family:var(--ff);color:var(--t1)}
.bcp-tablewrap td{padding:10px 12px;color:var(--t2)}
.bcp-tablewrap tbody tr{border-top:1px solid var(--bd)}
.bcp-article .bcp-list{margin:0;padding-left:24px;display:flex;flex-direction:column;gap:8px}
.bcp-article .bcp-list li{font-size:17px;line-height:28px;color:var(--t2)}
.bcp-article .bcp-quote{margin:0;padding:12px 18px;border-left:4px solid var(--brand);background:var(--tint);border-radius:8px;font-size:17px;line-height:28px;color:var(--t1)}
.bcp-faqsec{display:flex;flex-direction:column;gap:8px}
.bcp-faqbox{background:var(--s1);border-radius:12px;box-shadow:var(--sh);padding:4px 18px}
.bcp-faqbox details{border-bottom:1px solid var(--bd)}
.bcp-faqbox summary{cursor:pointer;min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-family:var(--ff);font-weight:700;font-size:16px;color:var(--t1)}
.bcp-faqbox p{margin:0 0 14px;font-size:15px;line-height:24px;color:var(--t2);max-width:none}
.bcp-article .bcp-ad{margin:4px 0}
.wp-block-image img{height:auto}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* variant + colour selector */
.bcp-combo-buy.is-off{pointer-events:none}
.bcp-combo-color:focus-visible,.bcp-combo-variant:focus-visible{outline:2px solid var(--brand) !important;outline-offset:2px;box-shadow:none !important}
.bcp-combo-imgbox img{transition:opacity 120ms ease}
/* images that still have a solid background sit on a light tile in dark mode */
[data-theme="dark"] .bcp-combo-imgbox.is-solid{background:#F8F5F2 !important;border-color:#F8F5F2 !important}
[data-theme="dark"] img.bcp-solid-img{background:#fff;border-radius:8px}

/* Camera Score sources block on small screens: the ratings table fits without sideways scrolling, and each reviewer verdict stacks (area + verdict on one line, the note below). */
@media (max-width: 640px) {
  .bcp-src-table { min-width: 0 !important; font-size: 13px !important; }
  .bcp-src-table th, .bcp-src-table td { padding: 8px 6px !important; white-space: normal !important; }
  .bcp-aspect { grid-template-columns: minmax(0, 1fr) auto !important; gap: 6px 10px !important; }
  .bcp-aspect > span:nth-child(2) { justify-self: end !important; }
  .bcp-aspect > span:nth-child(3) { grid-column: 1 / -1; }
}

/* Review buy box on phones: store name and price on one line, the button full width below. */
@media (max-width: 520px) { .bcp-buyrow { grid-template-columns: minmax(0, 1fr) auto !important; } .bcp-buyrow > a { grid-column: 1 / -1; } }

/* Mobile tap targets: footer link lists get a comfortable row height. */
@media (max-width: 767px) { footer a.hv-white { display: flex; align-items: center; min-height: 36px; } }

/* Mobile tap targets: short text links get a taller touch area without moving anything.
   Vertical padding with an equal negative margin grows the tappable box and leaves the layout as it was.
   Links that already set a height (buttons, pills, cards) are left alone. */
@media (max-width: 767px) {
  main a:not([class]):not(:has(img)):not([style*=";height:"]):not([style^="height:"]):not([style*="min-height:"]):not([style*="padding"]):not([style*="aspect-ratio"]),
  main a.hv-ul:not([style*="padding"]), main a.bcp-jumplink:not([style*=";height:"]):not([style*="padding"]),
  nav[aria-label="Breadcrumb"] a { padding-block: 9px; margin-block: -9px; }
  main button.bcp-readmore { padding-block: 9px !important; margin-block: -9px; }
  .bcp-logo-link { padding-block: 10px; margin-block: -10px; }
  .bcp-ac-input { min-height: 40px; }
}
/* Main menu on small laptops (1024 to 1199px): tighter items so the ten links fit without sideways scroll (Tablets link added 2026-11-25). */
@media (min-width:1024px) and (max-width:1199px){.bcp-navitem>a,.bcp-navitem>.bcp-menubtn{padding-left:6px !important;padding-right:6px !important;font-size:14px !important}}
