/* Phones and tablets (v_mobile, 12 Nov 2026, mobile_plan_11_nov_2026; founder approved the mock-ups 12 Nov, home intro kept).
   Loaded last on every page. Every rule is inside a phone or tablet media query, so computers (1100 wide and 600 tall
   or more) do not change. */

/* 1. Content shows at once on phones and tablets: no hold, no build-in, no section snapping, no section dots.
      (The build-in waited for 35% of a section to be on screen; tall phone sections never got there, so their content
      stayed invisible. Snapping meant for computers jumped the page on arrival.) The home page keeps its intro. */
@media (max-width:1099px),(max-height:599px){
 html.ccs-on,html.gc-snap,html.ccs-js{scroll-snap-type:none!important}
 .ccs-sec{scroll-snap-align:none!important}
 .ccs-hold .ccs-sec>*,.ccs-hold .ccs-sec>.wrap,.ccs-hold .ccs-sec>.cc-w{visibility:visible!important}
 .ccs-b,.ccs-b2,.ccs-js .ccs-b,.ccs-js .ccs-b2,.ccs-b.ccs-r{opacity:1!important;transform:none!important;transition:none!important}
 .ccs-dots{display:none!important}
}

/* 2. Nothing wider than the screen */
@media (max-width:767px){
 .src-d,.gd2-src .src-d{white-space:normal!important}
 .ctb,.ctb.ctb-w,aside.ctb{max-width:100%;box-sizing:border-box}
 .xb-esc{grid-template-columns:minmax(0,1fr)!important}
 .xb-esc .e{min-width:0;overflow-wrap:anywhere}
 .xb-esc .e *{white-space:normal!important;min-width:0}
 .xb-list li>*,.xb-tips p>*{min-width:0;overflow-wrap:anywhere}
 .s1-grid{grid-template-columns:minmax(0,1fr)!important}   /* home opening section: 20px too wide at 320 */
 main a{overflow-wrap:break-word}
 .hk table,.tbl-wrap{display:block;max-width:100%;overflow-x:auto}
 /* every-page check 12 Nov: 118 pages were wider than the screen. Causes: phone links that never wrap (a long number with a
    note), web addresses written as plain text, and one-column grids sized to their widest word */
 .ctb-list a,.ccs-2c a,main a[href^="tel:"]{white-space:normal!important}
 .ctb-list li>*,.ccs-2c li>*{min-width:0}
 .ctb-list a,.ccs-2c a{overflow-wrap:anywhere}   /* long emails and web addresses in contact boxes may break */
 main p,main li,main dd{overflow-wrap:break-word}   /* only a web address or email too long for a whole line breaks; numbers and words never split */
 .cc-hg,.cc5-g,.gd2-card2,.cc3-p,.gs-contacts,.pg-row,.cc6-g{grid-template-columns:minmax(0,1fr)!important}
 .cc-hg>*,.cc5-g>*,.gd2-card2>*,.cc3-p>*,.gs-contacts>*,.pg-row>*,ol.ccs-b2>li>*,.gs-dls>li,.cc6-g>*,.cc3-r>*,.cc4-a>*{min-width:0!important}
 .cc6-c a{overflow-wrap:anywhere}
 .gs-chips{flex-wrap:wrap}
 .gs-chip{white-space:normal!important;max-width:100%;box-sizing:border-box}
 .pg-br em{white-space:normal!important;min-width:0}
 main h1{overflow-wrap:break-word}   /* a one-word name too long for a 320 screen breaks rather than pushing the page sideways */
}

/* 3. Text at least 14px (the site's own rule: nothing under 14) */
@media (max-width:767px){
 footer.f2 h3{font-size:max(14px,.875rem)!important}
 .f2-legal p,.f2-copy,.f2-contact p{font-size:max(14px,.875rem)!important}
 .src-d,.gc-of,.gc-up,.gs-ey,.gs-when-b,.gs-how,.gs-tier-l,.gs-tier-x,.gs-tier-x b,.gs-grp,.gs-date,.gs-tier-half span,
 .cc2-src,.cc2-src a,.pg-br em,.pg-key span,.cc2-f span,.ctb-chk,.ctb-chk a,.chip,.lg-sub,.lg-sh small,
 p.note,p.note a,.mk-ey,.r2-bt span,.r2-c,.r2-d,.hx-n i,.mk-pop a,#view-banner p small,#view-banner button small,
 main dl dt,main small,.ctb-list b,.ccs-2c b,.cc3-t span,.cc6-tag,.mk-badge b,.mk-tb b,.mk-tb a,.tk-sit small,.tk-facts span,.cpx-l small,.cb .cat,.cb .pill,.topstrip,.topstrip span{font-size:max(14px,.875rem)!important}
}

/* 4. Things people tap: 44 by 44 */
@media (max-width:767px){
 .f2-soc a{width:44px!important;height:44px!important;display:inline-flex!important;align-items:center;justify-content:center}
 .f2-col a{min-height:44px;display:flex!important;align-items:center;padding:0!important}
 footer.f2 a.f2-big,footer.f2 a.f2-mail{min-height:44px;display:flex!important;align-items:center;margin-bottom:6px}
 footer.f2 a.f2-btn{min-height:44px;display:inline-flex!important;align-items:center;box-sizing:border-box}
 .topstrip a{display:inline-flex;align-items:center;min-height:44px}
 .topstrip .wrap{padding-top:0!important;padding-bottom:0!important}
 main input[type=checkbox],main input[type=radio]{width:24px!important;height:24px!important;flex:0 0 24px;margin-top:0}
 main label:has(>input[type=checkbox]),main label:has(>input[type=radio]){min-height:44px;display:flex;align-items:center;gap:10px}
 .ccs-index .ccs-ix a{min-height:44px;box-sizing:border-box}
 .ccs-bar a{min-height:32px;display:inline-flex;align-items:center}
 details>summary{min-height:44px;box-sizing:border-box}
 /* lists of links: 44px rows; the A to Z of 380 councils 36px (still well over the 24px minimum) */
 .cpx-l li>a,.gc-fold li>a{display:inline-flex;align-items:center;min-height:44px}
 .cc-l li>a{display:inline-flex;align-items:center;min-height:36px}
 /* short links in breadcrumbs, bylines and source lists: a taller tap area without moving any text */
 p.bc a,.q87-by a,p.q87-src a,p.tk-src a,p.q87-ed a,.gd2-lead a,p.q87-p a,p.fqm a,
 .ctb-list a,.ccs-2c a,.cc3-r p a,.cc2-x a,.ic-chips a,.cc5-ways a,.cc5-f p a,.cc6-c a,.gd2-src a,.wc86-m a,.q87-next p a,.q87-q p a,.ctb-chk a{padding:3px 0}
 /* home page dots: a 25px tap area round each dot, the dots look the same */
 .mk-dots{gap:16px!important}
 .mk-dots button::before{content:"";position:absolute;inset:-8px;border-radius:50%}
}

/* 5. Contrast: labels and links on the blue gradients a little lighter (4.14:1 and 4.49:1 before) */
@media (max-width:1099px),(max-height:599px){
 .gc-of,.gs-ey{color:#d6e7fa!important}
 .q87-by a{color:#9fd0f5!important}
}

/* 6. The round Accessibility button and Start Your Case never cover the last lines of the page; the space kept for
      them under the footer is navy, not a white strip */
@media (max-width:767px){
 footer.f2 .f2-legal{padding-bottom:40px}
 footer.f2{box-shadow:0 80px 0 #0b1a30}
}

/* 7. Slimmer Easy Read choice on a first visit */
@media (max-width:767px){
 #view-banner{padding:8px 12px!important;gap:6px!important}
 #view-banner p{font-size:15px!important}
 #view-banner p small{display:none!important}
 #view-banner .vb-btns button{min-height:44px;padding:6px!important}
 #view-banner .vb-btns button small{display:none!important}
}

/* 8. Home page on phones: while the Easy Read choice sits at the bottom of the screen, the Accessibility button (and
      its handwritten Accessibility Tools notice, which points at it) sit just above it, so neither is covered
      (founder 12 Nov). index.html sets --vb-h to the height of the choice. */
@media (max-width:767px){
 html.vb-lift #a11y-btn{bottom:calc(var(--vb-h,0px) + 12px)!important}
}

/* 9. Figure boxes and guide Time Limits tiles: two per row where they fit, one per row where a big number or long word would not fit, so nothing is
      ever split. Where even a full row is too narrow (the smallest phones), cpuk-mobile.js makes that value a little smaller
      (to about three quarters at most) so it still fits on one line. */
@media (max-width:767px){
 .xb-gl>*{min-width:0}   /* every-page check 12 Nov: a long value cannot stretch its column past the screen; the script fits it instead */
 .ccs-ix>li{min-width:0}.ccs-ix span{overflow-wrap:break-word}   /* the two-column section list stays inside a 320 screen */
 .mb-h{min-width:0!important;overflow-wrap:normal!important;word-break:normal!important}   /* cpuk-mobile.js: a heading's words never split; a word too long for the line makes the heading a little smaller */
 .cc2-fg,.gs-dls,.gs-pcts,.gd2-glg,.wf-glance{display:flex!important;flex-wrap:wrap}
 .cc2-fg>.cc2-f,.gs-dls>li,.gs-pcts>*,.gd2-glg>*,.wf-glance>*{flex:1 1 140px;min-width:min-content!important;box-sizing:border-box}
 .mb-one{white-space:nowrap!important}   /* cpuk-mobile.js: a big value and its unit on one line wherever that fits */
 /* .gs-dls li b: "21 days", "12 months" are kept on one line by cpuk-mobile.js; a wording such as "Next business day" may wrap */
 .gs-chip{overflow-wrap:anywhere;min-width:0}   /* a long email address in a contact chip breaks inside the screen */
 .cc2-f strong{overflow-wrap:normal!important;word-break:normal!important}   /* a number like 12,136 cannot split; its box goes full width instead */
}

/* 10. Phone build-in (founder approved the mock-up 12 Nov: "Yes, build it"; cpuk-mobile.js adds the classes). A piece fades
       up 18px in 0.4 s as it scrolls into view. Uses filter and translate, so it never clashes with rule 1 above. */
@keyframes mbIn{from{filter:opacity(0);translate:0 18px}to{filter:opacity(1);translate:0 0}}
@media (max-width:1099px),(max-height:599px){
 html .mb-in{filter:opacity(0)}
 html .mb-on{animation:mbIn .4s cubic-bezier(.2,.7,.2,1) var(--mb-d,0ms) backwards}
}
@media (prefers-reduced-motion:reduce){html .mb-in{filter:none}html .mb-on{animation:none}}
@media print{html .mb-in{filter:none}html .mb-on{animation:none}}
