/* Compact phone reading, with native optional sections and the shared design tokens. */
.pm-mobile-fold{min-width:0}
.pm-mobile-fold>.pm-mobile-fold-content{min-width:0}
.pm-mobile-fold:not([open])>.pm-mobile-fold-content{display:none}
.pm-mobile-fold>summary{list-style:none;cursor:pointer}
.pm-mobile-fold>summary::-webkit-details-marker{display:none}
.pm-mobile-fold>summary:focus-visible{outline:2px solid #c5e3cf;outline-offset:4px}
.pm-format-body.pm-mobile-fold{display:block}
.pm-format-body>.pm-mobile-fold-content{display:grid;gap:29px}
.pm-format-body>.pm-mobile-fold-content>div+div{padding-top:27px;border-top:1px solid #38533f}

@media(min-width:561px){
  .pm-mobile-fold[data-mobile-enhanced="true"]>summary{display:none}
}

@media(max-width:560px){
  /* Typography stays readable; space and optional content do the compacting. */
  html{scroll-padding-top:82px;-webkit-text-size-adjust:100%}
  .site-mode .pm-public-header-inner,.site-mode .pm-public-footer,.pm-cinema-wrap{width:calc(100% - 32px)}
  .site-mode .pm-public-header-inner{min-height:66px;padding-block:10px;gap:12px}
  .site-mode .pm-public-header nav>.button{min-height:44px;padding:9px 18px;font-size:1rem}
  .site-mode .pm-public-header .brand-word{font-size:1.2rem}
  .pm-editorial .pm-lb{display:none}
  .pm-editorial #aula,.pm-editorial #formacao,.pm-editorial #formatos,.pm-editorial #primos,.pm-editorial #interior,.pm-editorial #proposito{scroll-margin-top:82px}
  .pm-editorial .pm-cinema-hero{min-height:0;padding-block:24px 14px}
  .pm-editorial .pm-cinema-hero>.pm-cinema-wrap{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "art" "lead" "actions" "note";gap:0}
  .pm-editorial .pm-cinema-copy{display:contents;padding:0;min-width:0}
  .pm-editorial .pm-hero-heading{grid-area:heading;min-width:0}
  .site-mode .pm-editorial .pm-hero-heading>h1{font-size:clamp(2.25rem,9.8vw,2.7rem);line-height:1.04;letter-spacing:-.05em;max-width:460px}
  .site-mode .pm-editorial .pm-hero-heading>.eyebrow{font-size:.875rem;line-height:1.6;letter-spacing:.07em;margin-bottom:15px}
  .site-mode .pm-editorial .pm-cinema-copy>.pm-cinema-lead{grid-area:lead;font-size:1rem;line-height:1.7;margin-top:12px;max-width:100%}
  .pm-editorial .pm-cinema-copy .actions{grid-area:actions;flex-direction:row;align-items:stretch;flex-wrap:wrap;max-width:none;gap:8px;margin-top:18px}
  .site-mode .pm-editorial .pm-cinema-copy .actions>.button{flex:1 1 auto;width:auto;min-height:46px;padding:11px 16px;font-size:1rem}
  .site-mode .pm-editorial .pm-cinema-copy>.pm-cinema-note{grid-area:note;font-size:.875rem;line-height:1.6;margin-top:12px}
  .pm-editorial .pm-cinema-art{grid-area:art;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:0;width:100%;padding:0 0 24px;margin:0;gap:0}
  .pm-editorial .pm-cinematic-art{width:min(92%,360px);max-width:100%;margin:-5px auto -9px;flex:none}
  .pm-editorial .pm-book-float img{width:100%;height:auto;max-width:100%}
  .pm-editorial .pm-motion-toggle{position:absolute;right:0;bottom:0;min-height:44px;padding:8px 13px;margin:0;font-size:.875rem;max-width:100%}
  .pm-editorial .pm-chapter-index{grid-template-columns:repeat(2,minmax(0,1fr));padding-block:0;margin-block:12px 0}
  .pm-editorial .pm-chapter-index>button{min-height:54px;padding:11px 12px;font-size:1rem;line-height:1.45}
  .pm-editorial .pm-cinema-section{padding-block:38px}
  .pm-editorial .pm-cinema-heading{gap:16px;margin-bottom:24px}
  .site-mode .pm-editorial .pm-cinema-heading h2,.site-mode .pm-editorial .pm-cinema-statement>h2,.site-mode .pm-editorial .pm-editorial-finale h2{font-size:clamp(1.85rem,7.8vw,2rem);line-height:1.15;letter-spacing:-.035em}
  .site-mode .pm-editorial .pm-cinema-heading>p:not(.eyebrow){font-size:1rem;line-height:1.7}
  .site-mode .pm-editorial .eyebrow{font-size:.875rem;letter-spacing:.07em;line-height:1.6;margin-bottom:16px}
  .pm-editorial .pm-cinema-statement{gap:17px}
  .site-mode .pm-editorial .pm-cinema-prose p{font-size:1rem;line-height:1.7}
  .site-mode .pm-editorial .pm-cinema-prose p+p{margin-top:13px}
  .pm-editorial .pm-territory{margin-top:9px;padding-top:24px;gap:17px}
  .site-mode .pm-editorial .pm-territory h3{font-size:1.5rem;line-height:1.25}
  .site-mode .pm-editorial .pm-territory>p{line-height:1.7}
  .pm-editorial .pm-territory-principles{gap:15px}
  .pm-editorial .pm-territory-principles>li{padding-top:14px}
  .pm-editorial .pm-territory-principles span{font-size:1rem;line-height:1.7;margin-top:4px}

  /* All summaries work with native keyboard and touch behavior. */
  .pm-editorial .pm-mobile-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:13px 18px;color:#d7ecdf;font-size:1rem;font-weight:500;line-height:1.5;letter-spacing:-.015em;overflow-wrap:anywhere}
  .pm-editorial .pm-mobile-fold>summary:after{content:"+";font-size:1.3rem;font-weight:350;line-height:1;flex:none;color:#badac5}
  .pm-editorial .pm-mobile-fold[open]>summary:after{content:"−"}
  .pm-editorial .pm-mobile-fold>summary:hover{background:#213c2a;color:#fff}
  .pm-editorial .pm-learning-fold>summary{background:#dfeadf;color:#1d3b25;border:1px solid #a8bfaa;border-radius:4px 12px 12px 4px;padding:15px 18px;min-height:54px}
  .pm-editorial .pm-learning-fold>summary:after{color:#335d40}
  .pm-editorial .pm-learning-fold>summary:hover{background:#cfe1d2;color:#15341f}
  .pm-editorial .pm-learning-fold>summary:focus-visible{outline-color:#c5e3cf;outline-offset:4px}
  .pm-editorial .pm-learning-fold[open]>.pm-mobile-fold-content{margin-top:16px}
  .pm-editorial .pm-book-page{padding:23px 20px}
  .site-mode .pm-editorial .pm-open-book h3{font-size:1.8rem;line-height:1.18;margin-bottom:20px}
  .site-mode .pm-editorial .pm-open-book .pm-page-label{margin-bottom:17px;font-size:.875rem}
  .site-mode .pm-editorial .pm-open-book .pm-sample-story{font-size:1rem;line-height:1.75}
  .site-mode .pm-editorial .pm-open-book .pm-margin-note{font-size:1rem;line-height:1.75;margin-top:22px;padding-top:18px}
  .site-mode .pm-editorial .pm-open-book .pm-page-footnote{margin-top:18px;font-size:.875rem}
  .pm-editorial .pm-claim{padding-bottom:20px;margin-bottom:20px}
  .pm-editorial .pm-claim>legend{font-size:1rem;line-height:1.6}
  .pm-editorial .pm-claim-choices>label{min-height:46px;font-size:1rem;padding:10px 12px}
  .site-mode .pm-editorial .pm-lesson-progress{font-size:1rem;line-height:1.65;margin-top:22px}
  .pm-editorial .pm-sample-links{gap:14px;margin-top:26px;padding-top:22px}
  .site-mode .pm-editorial .pm-sample-links h3{font-size:1.25rem}
  .site-mode .pm-editorial .pm-sample-links a{min-height:48px;padding:9px 0;font-size:1rem}
  .pm-editorial .pm-learning-fold .actions{align-items:stretch;flex-direction:column;gap:8px}
  .site-mode .pm-editorial .pm-learning-fold .actions>.button{width:100%;min-height:46px;font-size:1rem;white-space:normal}

  .pm-editorial .pm-stage-index{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:26px}
  .pm-editorial .pm-stage-index>a,.pm-editorial .pm-stage-index>a:last-child{min-height:72px;padding:12px 13px;gap:4px}
  .pm-editorial .pm-stage-index>a>span{font-size:.875rem;line-height:1.5}
  .pm-editorial .pm-stage-index>a>strong{font-size:1rem;line-height:1.4}
  .pm-editorial .pm-track-explorer-heading{margin-bottom:18px}
  .site-mode .pm-editorial .pm-track-explorer-heading h3{font-size:1.25rem}
  .site-mode .pm-editorial .pm-track-explorer-heading p{font-size:1rem;line-height:1.7}
  .pm-editorial .pm-track-tabs,.pm-editorial .pm-format-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-bottom:18px}
  .pm-editorial .pm-track-tabs>[data-track-tab],.pm-editorial .pm-format-tabs>[data-format-tab],.pm-editorial .pm-track-tabs>[data-track-tab]:first-child,.pm-editorial .pm-track-tabs>[data-track-tab]:last-child{min-height:56px;padding:12px 11px;font-size:1rem;line-height:1.45}
  .pm-editorial .pm-track-tabs>[data-track-tab][aria-selected="true"]{padding-bottom:10px}
  .pm-editorial .pm-track-panel-intro,.pm-editorial .pm-format-intro{padding:23px 20px}
  .site-mode .pm-editorial .pm-track-panel-intro h3,.site-mode .pm-editorial .pm-format-intro h3{font-size:1.75rem;line-height:1.2;letter-spacing:-.03em}
  .site-mode .pm-editorial .pm-track-panel-intro>.eyebrow,.site-mode .pm-editorial .pm-format-intro>.eyebrow{margin-bottom:13px}
  .site-mode .pm-editorial .pm-track-panel-intro>p:not(.eyebrow),.site-mode .pm-editorial .pm-format-intro>p:not(.eyebrow){font-size:1rem;line-height:1.7;margin-top:15px}
  .pm-editorial .pm-track-panel-intro>.text-link,.pm-editorial .pm-format-intro>.actions{margin-top:13px}
  .pm-editorial .pm-track-panel-body.pm-mobile-fold,.pm-editorial .pm-format-body.pm-mobile-fold{display:block;padding:0}
  .pm-editorial .pm-track-panel-body.pm-mobile-fold[open]>.pm-mobile-fold-content,.pm-editorial .pm-format-body.pm-mobile-fold[open]>.pm-mobile-fold-content{padding:20px;border-top:1px solid #38533f}
  .pm-editorial .pm-track-panel-body.pm-mobile-fold>summary,.pm-editorial .pm-format-body.pm-mobile-fold>summary{padding:14px 20px}
  .pm-editorial .pm-track-stages{grid-template-columns:1fr;gap:19px;padding-left:19px}
  .pm-editorial .pm-track-stages>li,.pm-editorial .pm-track-stages>li:last-child{padding-bottom:18px}
  .pm-editorial .pm-track-stage-summary>strong{font-size:1rem;line-height:1.55}
  .pm-editorial .pm-toc-delivery{font-size:1rem;line-height:1.7;margin-top:8px}
  .pm-editorial .pm-track-related,.pm-editorial .pm-track-requirements{margin-top:22px;padding-top:20px}
  .pm-editorial .pm-format-body>.pm-mobile-fold-content{gap:23px}
  .pm-editorial .pm-format-body>.pm-mobile-fold-content>div+div{padding-top:22px}
  .site-mode .pm-editorial .pm-format-body h4{font-size:1rem;line-height:1.55;margin-bottom:14px}
  .pm-editorial .pm-format-body li{font-size:1rem;line-height:1.7;margin-bottom:10px}
  .site-mode .pm-editorial .pm-format-footnote{font-size:.875rem;line-height:1.75;margin-top:20px}
  .pm-editorial .pm-cinema-founders{gap:23px}
  .pm-editorial .pm-cinema-founders article{padding-top:21px}
  .site-mode .pm-editorial .pm-cinema-founders h3{font-size:1.5rem;line-height:1.25;margin-bottom:13px}
  .site-mode .pm-editorial .pm-cinema-founders p{font-size:1rem;line-height:1.7;margin-top:9px}
  .pm-editorial .pm-editorial-finale{padding-block:38px 30px}
  .pm-editorial .pm-editorial-finale>.pm-cinema-wrap{gap:18px}
  .site-mode .pm-editorial .pm-editorial-finale p{font-size:1rem;line-height:1.7;margin-top:18px}
  .pm-editorial .pm-editorial-finale .actions{margin-top:22px;max-width:none;align-items:stretch}
  .pm-editorial .pm-editorial-finale .actions>.button{width:100%;min-height:46px;font-size:1rem}
  .pm-editorial .pm-finale-book{width:min(65%,180px);margin:0 auto;transform:rotate(-5deg)}
  .site-mode .pm-public-footer{padding-block:22px max(24px,env(safe-area-inset-bottom));gap:14px;font-size:.875rem}
  .site-mode .pm-public-footer>a{display:inline-flex;align-items:center;min-height:44px}

  /* Entry stays explicit, with readable fields and less framing. */
  .site-mode .pm-entry{grid-template-columns:minmax(0,1fr);gap:24px;padding-block:28px 36px}
  .site-mode .pm-entry-panel{padding:0}
  .site-mode .pm-entry-panel h1,.site-mode .pm-onboarding-card h1{font-size:1.9rem;line-height:1.2;letter-spacing:-.035em}
  .site-mode .pm-entry-panel>.eyebrow{font-size:.875rem;margin-bottom:14px}
  .site-mode .pm-entry-panel .lead{font-size:1rem;line-height:1.7;margin-top:16px}
  .site-mode .pm-entry-disclosure{padding:17px 16px;margin-top:20px}
  .site-mode .pm-entry-disclosure h2{font-size:1rem;line-height:1.5}
  .site-mode .pm-entry-disclosure p{font-size:1rem;line-height:1.7;margin-top:8px}
  .site-mode .pm-entry-panel .actions{gap:8px;margin-top:20px}
  .site-mode .pm-entry-panel .actions>.button{font-size:1rem;min-height:46px;width:100%;white-space:normal}
  .site-mode .pm-entry-aside{padding-top:22px}
  .site-mode .pm-entry-aside>svg{width:28px;height:28px;margin-bottom:14px}
  .site-mode .pm-entry-aside h2{font-size:1.3rem;line-height:1.3}
  .site-mode .pm-entry-aside p{font-size:1rem;line-height:1.7}
  .site-mode .pm-entry-benefits{margin-top:18px}
  .site-mode .pm-entry-benefits>span{padding-block:11px;font-size:1rem}
  .site-mode .pm-onboarding{padding-block:26px 36px}
  .site-mode .pm-onboarding-card{padding:22px 18px;border-radius:12px}
  .site-mode .pm-onboarding-card>p{font-size:1rem;line-height:1.7;margin-top:14px}
  .site-mode .pm-onboarding-card>.field{margin-top:20px;font-size:1rem}
  .site-mode .pm-onboarding-card>.actions{margin-top:22px;gap:8px;flex-direction:column;align-items:stretch}
  .site-mode .pm-onboarding-card>.actions>.button{width:100%;min-height:46px;font-size:1rem;white-space:normal}
  .site-mode .pm-onboarding-card select,.app-mode input:not([type="checkbox"]):not([type="radio"]),.app-mode select,.app-mode textarea{font-size:1rem}
  .site-mode .pm-onboarding-card select{min-height:48px;width:100%;max-width:100%}

  /* The learning feed keeps full cards and all actions available. */
  .app-mode .app-topbar{padding:10px 16px;min-height:114px}
  .app-mode .app-topbar .app-search input{font-size:1rem;min-width:0}
  .app-mode .app-topbar .app-search button{min-height:44px}
  .app-mode .menu-toggle{min-height:44px;height:44px}
  .app-mode .pm-feed{padding-top:20px}
  .app-mode .pm-feed-heading{margin-bottom:16px}
  .app-mode .pm-feed-heading h1{font-size:1.7rem;line-height:1.2}
  .app-mode .pm-feed-heading p{font-size:1rem;line-height:1.65}
  .app-mode .pm-feed-topics{margin-bottom:18px}
  .app-mode .pm-feed-grid,.app-mode .pm-course-grid{grid-template-columns:minmax(0,1fr);gap:24px;margin-bottom:28px}
  .app-mode .pm-feed-grid .course-art,.app-mode .pm-course-grid .course-art{min-height:108px;height:108px;padding:12px 16px;gap:6px;aspect-ratio:auto}
  .app-mode .pm-feed-grid .app-cover-icon,.app-mode .pm-course-grid .app-cover-icon{width:38px;height:38px;right:17px;bottom:15px}
  .app-mode .pm-feed-grid .course-card .card-body,.app-mode .pm-course-grid .course-card .card-body{padding-top:12px}
  .app-mode .pm-feed-grid .course-card .card-footer,.app-mode .pm-course-grid .course-card .card-footer{margin-top:10px;gap:8px}
  .app-mode .pm-feed-grid .course-card .card-footer>.button,.app-mode .pm-course-grid .course-card .card-footer>.button{min-height:44px}
  .app-mode .pm-reader-outline{padding:0;overflow:hidden}
  .app-mode .pm-reader-outline>summary{margin:0;padding:15px 18px;min-height:52px}
  .app-mode .pm-reader-outline[open]>.pm-mobile-fold-content{border-top:1px solid var(--pm-line);padding:20px 18px}
  .app-mode .app-reader .content-block{font-size:1rem;line-height:1.85}
}

@media(max-width:760px){
  .app-mode .app-topbar{grid-template-columns:44px minmax(0,1fr);grid-template-rows:44px 46px;gap:8px 12px;min-height:0;height:auto;padding:10px 20px}
  .app-mode .app-topbar .menu-toggle{grid-column:1;grid-row:1}
  .app-mode .app-topbar .app-mobile-brand{grid-column:2;grid-row:1;font-size:1.25rem;min-width:0}
  .app-mode .app-topbar .pm-topbar-actions{display:none}
  .app-mode .app-topbar .app-search{grid-column:1/-1;grid-row:2;width:100%;min-width:0;min-height:46px}
  .app-mode .app-topbar .app-search input{width:100%;min-width:0;font-size:1rem}
  .app-mode .app-topbar .app-search button{flex:none;font-size:1rem;min-height:44px}
  .app-mode .pm-sidebar-actions{display:grid;gap:5px;border-top:1px solid var(--pm-line);margin-top:20px;padding-top:16px}
  .app-mode .pm-sidebar-actions button{min-height:44px;padding:10px 12px;text-align:left;color:var(--pm-body);font-size:1rem;background:transparent;border:1px solid transparent;border-radius:8px}
  .app-mode .pm-sidebar-actions button:hover{background:var(--pm-raised);color:var(--pm-ink);border-color:var(--pm-line)}
}
@media(max-width:400px){
  .app-mode .app-topbar{padding-inline:16px;gap:8px 10px}
  .app-mode .app-topbar .app-mobile-brand{font-size:1.2rem}
  .app-mode .app-topbar .app-search{gap:7px}
  .app-mode .app-topbar .app-search>svg{display:none}
}
@media(max-width:340px){
  .pm-editorial .pm-cinema-copy .actions{flex-direction:column}
  .site-mode .pm-editorial .pm-cinema-copy .actions>.button{width:100%}
  .app-mode .course-card .card-footer{flex-direction:column;align-items:stretch}
}

@media(max-width:560px) and (prefers-reduced-motion:reduce){
  .pm-editorial .pm-finale-book{transform:none}
}
