/* Phone layout for the 18 "slide" pages: Finance + the 17 agent pages (SEO phone fix, 15 Nov 2026).
   They are 1920x1080 slides zoomed to fit (slide-init), so on a phone everything was a fifth of its size.
   Below 760px only: no zoom, one column, 44px tap targets. Laptops and desktops are untouched. */
.oc-ph-count { display: none; }   /* team agent counts (added by oc-phone js): phones only */
@media (max-width: 759px) {
  html { --slide-scale: 1 !important; }   /* beats slide-init's inline value; also keeps calc(x / var(--slide-scale)) sane */
  html, body { height: auto !important; }
  body { display: block !important; }
  .slide { width: auto !important; height: auto !important; zoom: 1 !important; padding: 20px 16px 32px !important; display: block !important; }
  .slide .overflow-y-auto, .slide .overflow-hidden { overflow: visible !important; }
  .slide .min-h-0 { min-height: 0 !important; }
  .slide .h-full { height: auto !important; }
  .slide img, .slide table { max-width: 100%; }
  .slide table { width: 100%; }
  .slide td, .slide th { word-break: normal !important; overflow-wrap: break-word; }

  /* ---------- Finance page ---------- */
  .oc-fin-hero { display: block !important; padding: 24px 16px !important; margin: -20px -16px 16px !important; }
  .oc-fin-hero > div:first-child { width: auto !important; }
  .oc-fin-hero h1 { font-size: 30px !important; line-height: 1.15 !important; }
  .oc-fin-hero .oc-lede { font-size: 16px !important; }
  .oc-guide-btn { width: 100%; min-height: 44px; justify-content: center; }
  #org-banner { width: auto !important; margin: 20px 0 0 !important; position: static !important; }
  #org-banner-text { -webkit-line-clamp: unset !important; display: block !important; overflow: visible !important; }
  #org-banner-text .font-semibold { display: block; font-size: 17px; margin-bottom: 6px; }
  .oc-ph-spot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
  .oc-ph-spot button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
  .oc-ph-spot span { font-size: 13px; opacity: .8; }
  .oc-fin-body { display: block !important; }
  .oc-fin-body > .oc-panel { width: auto !important; margin: 0 0 16px !important; }
  .oc-impact { grid-template-columns: 1fr 1fr !important; }
  .oc-org-head { display: block !important; margin-bottom: 10px; }
  .oc-org-head .oc-legend { margin-top: 4px; }
  #view-department svg { display: none !important; }   /* reporting lines and data-flow dots: desktop only */
  #org-nodes > .grid { display: block !important; }
  #org-nodes > .grid > div:not(.org-node) { display: none !important; }
  #org-nodes .org-node, #org-nodes .org-node:hover, #org-nodes .org-node.org-node-active { background: transparent !important; color: inherit !important; }   /* phones keep :hover after a tap; the desktop hover style is black */
  #org-nodes .org-node * { color: inherit !important; }
  #org-nodes .org-node { display: block !important; opacity: 1 !important; width: auto !important; height: auto !important; margin: 0 !important; border-radius: 0 !important; border-width: 0 0 1px !important; padding: 0 !important; transform: none !important; box-shadow: none !important; }
  #org-nodes .org-node > div:first-child { display: flex !important; justify-content: space-between; align-items: center; flex-wrap: wrap; min-height: 52px; padding: 6px 4px; cursor: pointer; position: relative; padding-right: 28px; }
  #org-nodes .org-node > div:first-child::after { content: ""; position: absolute; right: 8px; top: 50%; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
  #org-nodes .org-node.oc-ph-open > div:first-child::after { transform: translateY(-30%) rotate(-135deg); }
  #org-nodes .oc-ph-count { display: block; flex-basis: 100%; font-size: 12px; opacity: .7; }
  #org-nodes .org-node > div:nth-child(2) { display: none !important; padding: 0 0 8px !important; }
  #org-nodes .org-node.oc-ph-open > div:nth-child(2) { display: flex !important; }
  #org-nodes .org-node a { display: flex !important; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px !important; text-decoration: none !important; background: rgba(0,0,0,.04); }
  #org-nodes .org-node a::after { content: "\2192"; }
  .oc-fin-foot { display: block !important; padding: 0 !important; }
  .oc-fin-foot p { width: auto !important; line-height: 1.7 !important; }
  .oc-fin-foot > span { display: none !important; }   /* "Use ← → to move between pages" */

  /* ---------- Agent pages ---------- */
  .oc-agent-head { display: block !important; }
  .oc-agent-head > div:first-child { width: auto !important; }
  .oc-agent-icon { display: none !important; }
  .oc-agent-head__title > div { margin: 0 !important; }
  .oc-agent-head h1 { font-size: 30px !important; line-height: 1.15 !important; }
  .oc-agent-tagline { font-size: 16px !important; }
  .oc-agent-head__actions { position: static !important; margin: 14px 0 20px !important; display: flex !important; flex-wrap: wrap; gap: 10px; }   /* agents./platform add a second button */
  .oc-agent-head__actions .oc-btn { min-height: 44px; }
  .slide > .flex-1.flex { display: block !important; }
  .slide > .flex-1.flex > .grid.grid-cols-2 { display: block !important; margin-bottom: 16px; }
  .oc-tabs { display: flex !important; width: 100% !important; }
  .oc-tabs button { flex: 1; min-height: 44px; }
  .oc-tabsrow__right { display: none !important; }   /* the label moves above the chat */
  .slide > .flex-1.flex > .flex-1 > .grid.grid-cols-2 { display: block !important; }
  .slide > .flex-1.flex > .flex-1 > .grid.grid-cols-2 > div { width: auto !important; margin-bottom: 24px; }
  .slide .flex.gap-2.flex-wrap > button { min-height: 44px; }   /* Data tab chips */
  .oc-kpis { gap: 8px !important; }
  .oc-kpi { padding: 12px 10px !important; min-width: 0; }
  .slide .oc-kpi .oc-kpi__n { font-size: 24px !important; line-height: 1.1 !important; }
  .oc-kpi__l { font-size: 12px !important; }
  .oc-caps, #content-tools .grid { grid-template-columns: 1fr !important; }
  .oc-step__text { font-size: 15px !important; }
  #chatbot-container { min-height: 460px; }
  .oc-chat__head { flex-wrap: wrap; row-gap: 6px; }   /* the platform's "Live" badge ran 4px off a 390px screen on long agent names */
  .slide > .flex-1.flex > .flex-1 > .grid.grid-cols-2 > div:last-child::before { content: "Chat with the agent"; display: block; font-size: 18px; font-weight: 600; margin: 8px 0 12px; }
  #chatbot-container input, #chatbot-container textarea { font-size: 16px !important; }   /* stops iOS zooming in on focus */
}
