/* =====================================================================
   PHARMA BRIDGE — PHONE POLISH (25 Nov 2026)
   Loaded last on every public page, after the page's own styles and
   mobile.css. Phones only: nothing here changes the computer view.
   One calm type scale, tighter spacing, compact cards, pictures that fit
   the first screen, a one-line announcement bar and quieter animations.
   ===================================================================== */

/* The close button on the announcement bar and the "Read more" buttons only exist on phones */
.announce-x,.m-more-btn,.m-dots{display:none}

/* ---------- Phone and tablet menu: main links, then more pages as small tiles ---------- */
@media (max-width:860px){
  .m-links{margin-bottom:14px}
  .m-links a{min-height:50px;font-size:18.5px}
  .m-more{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 16px;padding:0;list-style:none}
  .m-more a{display:flex;align-items:center;min-height:46px;padding:0 12px;border-radius:14px;background:var(--ice,#F7FAFD);border:1px solid var(--line,#D6E2EF);color:var(--navy,#05204B);font-weight:600;font-size:14.5px;line-height:1.2;text-decoration:none}
  .m-more a[aria-current="page"]{border-color:var(--green,#048622);color:var(--green-dark,#036324)}
  .m-actions .btn{min-height:50px}
}

@media (max-width:760px){

  /* ---------- Type scale and spacing ---------- */
  body{font-size:16px;line-height:1.6}
  .lead{font-size:16px;line-height:1.55}
  .section{padding-block:44px}
  .section-head{margin-bottom:20px}
  .section-head .lead{margin-top:8px}
  .section h2,.section-head h2,.final h2{font-size:25px;line-height:1.14}
  .page h1,.doc-page h1,.pq-page-head h1,.bp-head h1,.page-head h1{font-size:27px;line-height:1.15}
  .doc-page h2,.bp-sec h2,.pq-panel h2{font-size:20px}

  /* Buttons: comfortable to tap, not oversized */
  .btn{min-height:48px;padding:0 22px;font-size:16px}
  .btn-sm{min-height:42px;padding:0 16px;font-size:15px}
  .chip{min-height:38px;padding:0 14px;font-size:14.5px}

  /* ---------- Announcement bar: one short line with a close button ---------- */
  .announce{height:40px}
  .announce .tick-item{justify-content:flex-start;gap:8px;padding:0 44px 0 16px;font-size:13.5px;line-height:1.2;white-space:nowrap;text-align:left}
  .announce .tk-txt{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
  .announce .tick-item a{flex:none;margin-left:0;padding:6px 0}
  .announce-x{display:grid;place-items:center;position:absolute;right:2px;top:0;z-index:2;width:40px;height:40px;padding:0;border:0;background:transparent;color:#fff;opacity:.75;cursor:pointer}
  .announce-x svg{width:16px;height:16px}

  /* ---------- WhatsApp button: smaller, never on top of the bottom bar or the menu ---------- */
  .wa,.wa-float{width:48px!important;height:48px!important;right:12px!important;bottom:calc(14px + env(safe-area-inset-bottom))}
  .wa svg,.wa-float svg{width:26px;height:26px}
  body.m-cta-on .wa,body.m-cta-on .wa-float{bottom:calc(88px + env(safe-area-inset-bottom))}
  .wa-float{transition:bottom .4s var(--ease,ease),transform .3s}
  html.m-locked .wa,html.m-locked .wa-float{opacity:0;visibility:hidden}
  .m-cta{padding:7px 7px 7px 16px}
  .m-cta .btn{min-height:46px;padding:0 20px;font-size:15.5px}

  /* ---------- Homepage ---------- */
  /* Numbers: four compact tiles */
  .nums-head{margin-bottom:16px}
  .nums-card{padding:14px 8px 12px}
  .nums-ico{width:40px;height:40px;margin-bottom:8px}
  .nums-ico svg{width:22px;height:22px}
  .nums-val{font-size:24px}
  .nums-lbl{font-size:13px}

  /* Featured live program */
  .featured h2{font-size:25px}
  .featured .dept-chips{gap:6px;margin-top:14px}
  .featured .dept-chips span{padding:3px 10px;font-size:13px;min-height:0}
  .featured-links{margin-top:16px}
  .batch-card{padding:20px 18px}
  .batch-card h3{font-size:20px}
  .batch-rows div{padding:8px 0;font-size:15px}
  .price b{font-size:30px}
  .price s{font-size:16px}

  /* Course cards: compact, and the picture is a fixed short height (fitted by the page's script) */
  #courseGrid .course{border-radius:20px}
  #courseGrid .c-art.is-design{min-height:0;padding:10px 12px}
  #courseGrid .c-body{padding:14px 16px 16px}
  #courseGrid .course h3{font-size:18px;line-height:1.25;margin:8px 0 2px}
  #courseGrid .badge{font-size:12.5px;padding:2px 9px}
  #courseGrid .course-foot{padding-top:12px;gap:10px}
  #courseGrid .course-foot .meta{font-size:18px}
  #courseGrid .course-foot .meta small{font-size:13px}
  #courseGrid .course-foot .btn{min-height:42px;padding:0 16px;font-size:15px}
  #courseGrid .c-tag{font-size:14.5px;line-height:1.4;margin:4px 0 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  body:not(.is-catalogue) #courseGrid .c-body > p:not(.c-tag){display:none}
  .is-catalogue #courseGrid .c-body > p:not(.c-tag){-webkit-line-clamp:2}
  /* Format filter only matters when there is more than one format */
  #typeFilters:not(:has(.chip:nth-of-type(3))){display:none}
  .filters{gap:8px;margin-bottom:16px}

  /* Homepage: the courses sit in one row you swipe sideways */
  body:not(.is-catalogue) #courseGrid.cl-cards{display:grid!important;grid-auto-flow:column;grid-template-columns:none!important;grid-auto-columns:86%;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:16px;margin-inline:-16px;padding:4px 16px 8px;scrollbar-width:none;align-items:stretch}
  body:not(.is-catalogue) #courseGrid.cl-cards::-webkit-scrollbar{display:none}
  body:not(.is-catalogue) #courseGrid.cl-cards > *{scroll-snap-align:start;min-width:0}
  .m-dots{display:flex;justify-content:center;gap:6px;margin:6px 0 0}
  .m-dots i{width:7px;height:7px;border-radius:999px;background:var(--line,#D6E2EF);transition:width .3s,background-color .3s}
  .m-dots i.on{width:20px;background:var(--green,#048622)}
  .see-all{margin-top:18px}

  /* All courses page: the page title already says "All courses" */
  .is-catalogue .cat-hero{padding:18px 0 8px}
  .is-catalogue .cat-hero h1{font-size:28px}
  .is-catalogue .cat-hero .lead{font-size:15.5px;margin-top:6px}
  .is-catalogue .cat-tools{margin-top:14px}
  .is-catalogue #courses .section-head{display:none}
  .is-catalogue #courses{padding-top:16px}
  .is-catalogue #courseGrid{gap:14px}

  /* CV review block */
  .cvh-grid{gap:22px}
  .cvh-copy h2{font-size:24px}
  .cvh-ticks li{font-size:15.5px}
  .cvh-buy{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
  .cvh-buy .cvh-price{flex-basis:100%}
  .cvh-price b{font-size:30px}
  .cvh-buy .btn{flex:1 1 0;min-width:0;padding:0 12px}
  .cvh-art{zoom:.74}

  /* Completed batches */
  .done-card{padding:20px 18px}
  .done-card h3{font-size:18px}
  .done-stats dd{font-size:18px}

  /* Why, who, mentors, quiz, FAQ */
  .why{gap:14px}
  .why li{font-size:15.5px;line-height:1.5}
  .why svg{width:24px;height:24px}
  .who{padding:24px 20px}
  .who h2{font-size:25px}
  .kinetic .k-track .t{font-size:22px}
  .experience{padding:16px 0}
  .experience .marquee span{font-size:20px}
  .faq summary{font-size:16.5px;padding:16px 36px 16px 0;line-height:1.35}
  .faq details p{font-size:15.5px}
  .final h2{font-size:25px}

  /* Footer: links in two columns */
  .f-wave{height:30px}
  .site-footer{padding:30px 0 calc(22px + env(safe-area-inset-bottom))}
  .footer-grid{grid-template-columns:1fr 1fr;gap:20px 16px}
  .footer-grid > div:first-child{grid-column:1 / -1}
  .footer-grid h4{font-size:15px;margin-bottom:4px}
  .site-footer ul a{font-size:15px;padding:5px 0;overflow-wrap:anywhere}
  .site-footer p{font-size:15px}
  .site-footer .copyright{margin-top:18px;font-size:13px}
  .site-footer .legal-links a{display:inline-block;padding:5px 1px}

  /* ---------- Course pages ---------- */
  .cpx h2{font-size:24px;line-height:1.15}
  .cpx h3{font-size:18px}
  .cpx .cpx-lead{font-size:15.5px}
  .cpx-batch h3{font-size:21px}
  .cpx .cpx-fee{font-size:32px}

  /* Top section: picture first, then the title and one row of buttons, all in the first screen */
  .cpx-hero{padding:4px 0 22px}
  .cpx-hero-grid{display:flex!important;flex-direction:column;align-items:stretch!important;gap:0}
  .cpx-hero-copy{display:contents}
  .cpx-hero-grid > *,.cpx-hero-copy > *{order:5;align-self:stretch}
  .cpx-crumbs{order:1;font-size:13.5px;margin:0 0 8px}
  .cpx-badges{order:2;align-self:flex-start}
  .cpx-hero-visual{order:3;display:flex;justify-content:center;align-items:center;margin:12px 0 2px;min-height:0}
  .cpx-hero-visual > *{flex:none}
  .cpx-hero h1{order:4;font-size:28px;line-height:1.1;margin-top:14px}
  .cpx-tagline{font-size:16.5px;line-height:1.35;margin-top:8px}
  .cpx-hero .cpx-lead{order:5;margin-top:10px;line-height:1.55}
  .cpx-actions{order:6;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:10px;margin-top:16px}
  .cpx-actions .btn{width:100%;min-width:0;padding:0 12px;white-space:nowrap}
  .cpx-actions .btn:only-child{grid-column:1 / -1}
  .cpx-facts{order:7;display:flex!important;flex-wrap:wrap;gap:8px;margin:18px 0 0}
  .cpx-facts > div{display:flex;align-items:baseline;gap:6px;padding:7px 12px;border-radius:999px;background:#fff;border:1px solid var(--line,#D6E2EF);line-height:1.3}
  .cpx-facts dt{font-size:12.5px;margin:0;white-space:nowrap}
  .cpx-facts dd{font-size:14px;font-weight:600;margin:0}

  /* ---------- Long text: three lines, then "Read more" ---------- */
  .cpx-hero .cpx-lead.m-clamp,.bio-short.m-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  .m-more-btn{display:inline-block;margin-top:4px;padding:6px 0;border:0;background:none;color:var(--blue,#0160B0);font-family:inherit;font-weight:600;font-size:15px;line-height:1.3;cursor:pointer}
  .cpx-hero .m-more-btn{order:5;align-self:flex-start}
  .bio-short + .m-more-btn{margin-top:2px}

  /* ---------- Mentors page: compact cards, two lines of bio, then "Read more" ---------- */
  .grid-3:has(> article[id^="mentor-"]){gap:12px}
  article[id^="mentor-"]{padding:16px}
  article[id^="mentor-"] > div:first-child{gap:12px!important}
  article[id^="mentor-"] .avatar{width:56px!important;height:56px!important;font-size:20px!important;flex:none}
  article[id^="mentor-"] h3{font-size:17px;line-height:1.25}
  article[id^="mentor-"] > div:first-child p{font-size:14px!important;line-height:1.35!important}
  article[id^="mentor-"] .badge{margin-top:10px!important;font-size:12.5px}
  article[id^="mentor-"] > p:not(.badge):not(.bio-short){margin-top:8px!important;font-size:14.5px;line-height:1.45}
  article[id^="mentor-"] .bio-short{margin-top:6px!important;font-size:15px!important;line-height:1.5}
  article[id^="mentor-"] .bio-short.m-clamp{-webkit-line-clamp:2}
  .bio-more summary{padding:4px 0;font-size:15px}
  .bio-short{font-size:15.5px!important}

  /* ---------- CV review page: headings no bigger than the page title ---------- */
  body .cvx-sec h2,body .cvx-alt h2,body .cvx-faq-sec h2,body h2.cvx-center,body .cvx-center > h2{font-size:24px!important;line-height:1.18}
  body .cvx-big strong{font-size:40px!important}
  body .cvx-sec,body .cvx-alt,body .cvx-faq-sec{padding-top:40px!important;padding-bottom:40px!important}

  /* ---------- Quieter animations: the big blurred colour blobs stay still on phones ---------- */
  .blob{animation:none!important}
  .m-off,.m-off *{animation-play-state:paused!important}
}

/* Very small phones */
@media (max-width:360px){
  .section h2,.section-head h2,.final h2,.cpx h2{font-size:23px}
  .cpx-hero h1{font-size:26px}
  .btn{padding:0 16px}
}

/* Anyone who asked their phone or computer for less motion */
@media (prefers-reduced-motion:reduce){
  .marquee,.k-track,.blob,.capsule,.molecule{animation:none!important}
}
