/* Shared type scale. Keep readable text sizes at every breakpoint. */
:root{
  --type-body:1.125rem;
  --type-control:1.0625rem;
  --type-small:1rem;
  --type-caption:.875rem;
}
html{font-size:100%;scroll-padding-top:120px}
body{font-size:var(--type-body);line-height:1.7}
button,a,input,textarea{font-family:inherit}
h2{font-size:clamp(2.25rem,3.8vw,3rem);line-height:1.18}
.eyebrow,.hero-eyebrow,.product-card .eyebrow,.learning-art>.eyebrow,
.guide-section .eyebrow,.closing .eyebrow,.footer-note .eyebrow,
.assistant-welcome>.eyebrow,.learning-page-heading .eyebrow,
.sidebar-heading .eyebrow,.lesson-article>.eyebrow,.worked-example>.eyebrow,
.check-heading .eyebrow,.market-heading .eyebrow,.market-baseline .eyebrow,
.channel-heading .eyebrow{font-size:var(--type-caption);letter-spacing:.08em;line-height:1.65}
.button,.button-small,.hero-buttons .button,.hero-buttons .button-text,
.learning-copy .button,.guide-actions .button,.closing .button,
.modal-actions .button,.knowledge-check>.button,.result-actions .button,
.channel-card .button,.market-action .button,.nav-actions>.button{
  font-size:var(--type-control);line-height:1.5;min-height:48px;padding:14px 20px;white-space:normal
}
.text-link,.how-section .text-link,.role-details .text-link,.faq-heading .text-link,
.sidebar-help .text-link,.guide-email{font-size:var(--type-control);line-height:1.6}
.button svg,.text-link svg,.icon-btn svg,.role-tabs svg,.faq-list summary svg{flex-shrink:0}
.icon-btn,.menu-toggle,.send-button{min-width:44px;min-height:44px}
.review-strip{font-size:var(--type-caption);line-height:1.6;min-height:36px;height:auto;padding:7px 18px;flex-wrap:wrap;gap:6px}
.nav-inner{min-height:96px;height:auto;gap:24px;padding:16px 36px}
.main-nav{gap:24px}
.main-nav>a,.login-link{font-size:var(--type-control);font-weight:550;line-height:1.5}
.main-nav>a{min-height:44px;gap:8px}
.nav-new{font-size:var(--type-caption);line-height:1.25;padding:4px 6px}
.nav-actions{gap:18px;flex-shrink:0}
.mobile-portal-links{display:none}
.hero{grid-template-columns:1fr 1fr;gap:44px;align-items:center;padding-top:64px;padding-bottom:72px}
.hero h1{font-size:clamp(2.5rem,5.1vw,4.5rem);line-height:1.13;white-space:normal;letter-spacing:-.05em}
.hero-description{font-size:1.25rem;line-height:1.75;max-width:520px}
.hero-buttons{flex-wrap:wrap;gap:16px 24px}
.hero-footnote{font-size:var(--type-caption);line-height:1.75}
.hero-visual{height:auto;min-height:0;width:100%;max-width:560px;justify-self:end;margin-left:0;padding:26px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.visual-label{position:relative;inset:auto;grid-column:1/-1;z-index:1;font-size:var(--type-caption);letter-spacing:.07em;line-height:1.6}
.floating-role,.role-supplier,.role-buyer,.role-financier{position:relative;inset:auto;transform:none;font-size:var(--type-caption);line-height:1.5;padding:10px 12px;gap:8px;min-width:0;justify-content:center;box-shadow:none}
.floating-role>svg{flex-shrink:0}
.floating-role>span:last-child{font-size:var(--type-small)}
.role-financier{grid-column:1/-1;justify-self:center}
.invoice-sheet{position:relative;inset:auto;transform:none;grid-column:1/-1;justify-self:center;width:100%;max-width:380px;margin:3px 0;padding:24px}
.invoice-top{gap:8px;flex-wrap:wrap}
.invoice-top>span:nth-child(2){font-size:var(--type-caption);letter-spacing:.045em;flex:1;min-width:0}
.paper-dots{display:none}
.invoice-heading>small{font-size:var(--type-caption);letter-spacing:.08em}
.invoice-heading>strong{font-size:2rem;line-height:1.2}
.invoice-fields{gap:13px}
.invoice-fields>div{font-size:var(--type-caption);line-height:1.6;gap:4px 12px;flex-wrap:wrap}
.invoice-fields strong{font-size:var(--type-small)}
.invoice-state{font-size:var(--type-caption);line-height:1.6;padding:10px;gap:8px;flex-wrap:wrap}
.invoice-state>span{flex-shrink:0;width:6px;height:6px}
.learning-float{position:relative;inset:auto;grid-column:1/-1;transform:none;padding:16px;gap:12px;width:100%;min-width:0}
.learning-float>div{min-width:0}
.learning-float strong{font-size:var(--type-small);line-height:1.5}
.learning-float>div>span{font-size:var(--type-caption);line-height:1.6}
.learning-tick{flex-shrink:0}
.visual-caption{position:relative;inset:auto;grid-column:1/-1;font-size:var(--type-caption);line-height:1.6;letter-spacing:0}
.sectors{gap:22px;flex-wrap:wrap;padding-top:24px;padding-bottom:24px}
.sector-intro{font-size:var(--type-caption);line-height:1.7}
.sectors>span:not(.sector-intro){font-size:var(--type-small);white-space:normal;min-width:0}
.section-heading>p,.role-story p,.product-card p,.step p,.learning-copy>p,
.guide-section p,.faq-heading p,.faq-list details>p,.channel-heading>p,
.channel-card>p,.market-heading>p,.market-metrics p,.market-baseline p,
.market-action p{font-size:var(--type-body);line-height:1.75}
.section-heading>p{max-width:420px}
.role-tabs>button{font-size:var(--type-control);line-height:1.5;min-height:64px;padding:16px 18px;gap:12px}
.role-panel{gap:48px;padding:38px 32px}
.role-story h3{font-size:1.875rem;line-height:1.3}
.role-details ul{font-size:var(--type-body);line-height:1.75}
.role-details li{align-items:flex-start}
.products-heading{gap:24px;flex-wrap:wrap}
.products-heading h3{font-size:1.75rem;line-height:1.3}
.products-heading>span,.section-note,.learning-small{font-size:var(--type-caption);line-height:1.7}
.product-card{padding:28px;min-height:0}
.product-card-top>span{font-size:var(--type-small)}
.product-card h3{font-size:1.625rem;line-height:1.3}
.product-card p{margin-bottom:24px}
.product-card-link{font-size:var(--type-control);line-height:1.6;margin-top:auto}
.step-number{font-size:var(--type-small)}
.step h3{font-size:1.5rem;line-height:1.35}
.learning-section{gap:56px;align-items:center}
.learning-art{height:auto;min-height:0;padding:30px}
.course-art{max-width:none;width:100%;margin:24px 0 0;padding:26px;transform:none}
.course-art-top{font-size:var(--type-caption);line-height:1.6;letter-spacing:.04em;flex-wrap:wrap;gap:12px}
.course-art-top>span:nth-child(2){flex:1;min-width:130px}
.course-label{font-size:var(--type-caption);margin-left:auto}
.course-art h3{font-size:1.875rem;line-height:1.25}
.lesson-line{font-size:var(--type-caption);line-height:1.6;padding:13px 0;gap:10px}
.lesson-bullet{font-size:var(--type-caption);width:28px;height:28px;flex-shrink:0}
.course-art-bottom{font-size:var(--type-caption);line-height:1.65;gap:12px;flex-wrap:wrap}
.learning-copy h2{font-size:clamp(2.25rem,3.8vw,3rem)}
.learning-stats{gap:20px;flex-wrap:wrap}
.learning-stats strong{font-size:2rem;line-height:1.25}
.learning-stats>div:last-child>strong{font-size:1.625rem;line-height:1.3}
.learning-stats span{font-size:var(--type-small);line-height:1.5}
.guide-section h2{font-size:clamp(2rem,3.3vw,2.75rem);line-height:1.25}
.guide-actions{flex-shrink:0}
.faq-heading h2{font-size:clamp(2.25rem,3.8vw,3rem)}
.faq-list summary{font-size:var(--type-body);line-height:1.6;min-height:72px;padding-top:22px;padding-bottom:22px;gap:18px}
.closing{gap:28px;flex-wrap:wrap}
.closing h2{font-size:clamp(2rem,3.3vw,2.75rem);line-height:1.25}
.footer-top{gap:32px}
.footer-top>div>strong{font-size:var(--type-small)}
.footer-top>div>a:not(.brand){font-size:var(--type-small);line-height:1.65;min-height:36px;overflow-wrap:anywhere}
.footer-top>div>p,.footer-top>div:first-child>p,.footer-top>.footer-note>p{font-size:var(--type-small);line-height:1.75}
.footer-bottom,.footer-bottom>button{font-size:var(--type-caption);line-height:1.7}
.floating-ask{font-size:var(--type-control);line-height:1.5;min-height:48px;padding:13px 19px}
.modal-dialog{max-width:700px}
.modal-heading h2,.assistant-modal .modal-heading h2{font-size:1.75rem;line-height:1.3}
.prose>p,.callout p{font-size:var(--type-body);line-height:1.8}
.assistant-modal{inset:16px 16px 16px auto;width:530px;height:calc(100dvh - 32px);max-width:calc(100vw - 32px);max-height:none}
.assistant-modal .modal-body{padding:24px 24px 18px;min-height:0}
.assistant-modal .modal-heading,.assistant-meta,.guide-notice,.assistant-input,.assistant-footer{flex-shrink:0}
.assistant-meta{gap:12px}
.assistant-meta>div{min-width:0}
.assistant-meta strong{font-size:var(--type-small);line-height:1.5}
.assistant-meta small{font-size:var(--type-caption);line-height:1.6}
.assistant-messages{min-height:0;padding-top:22px;padding-bottom:24px}
.assistant-welcome h3{font-size:2.25rem;line-height:1.2}
.assistant-welcome>p{font-size:var(--type-body);line-height:1.75}
.prompt-grid>button{font-size:var(--type-small);line-height:1.6;min-height:64px;padding:16px;text-align:left;gap:12px}
.prompt-grid>button svg{flex-shrink:0}
.chat-message p{font-size:var(--type-body);line-height:1.75;overflow-wrap:anywhere}
.message-label,.message-source,.typing>small{font-size:var(--type-caption);line-height:1.65}
.message-source{align-items:flex-start}
.message-source svg{flex-shrink:0;margin-top:4px}
.guide-notice{font-size:var(--type-caption);line-height:1.6}
.assistant-input textarea{font-size:var(--type-body);line-height:1.6;padding:14px;min-height:84px}
.assistant-footer,.assistant-footer a{font-size:var(--type-caption);line-height:1.6;text-align:center}
.inline-error{font-size:var(--type-small);line-height:1.7}
.back-link{font-size:var(--type-small);line-height:1.6}
.learning-page-heading h1{font-size:clamp(2.5rem,4vw,3.25rem);line-height:1.18}
.learning-page-heading>div>p{font-size:var(--type-body);line-height:1.75}
.course-overview strong{font-size:var(--type-control);line-height:1.6}
.course-overview span{font-size:var(--type-small);line-height:1.6}
.course-overview small{font-size:var(--type-caption);line-height:1.6}
.learning-layout{grid-template-columns:310px minmax(0,1fr);gap:42px}
.lesson-sidebar{top:120px}
.sidebar-heading{flex-wrap:wrap;gap:8px}
.sidebar-heading>span:last-child{font-size:var(--type-caption)}
.lesson-nav{gap:12px;padding:16px 12px;min-height:88px}
.lesson-nav-number{font-size:var(--type-caption);width:30px;height:30px;flex-shrink:0}
.lesson-nav>span:nth-child(2){min-width:0}
.lesson-nav>span:nth-child(2)>strong{font-size:var(--type-small);line-height:1.5}
.lesson-nav small{font-size:var(--type-caption);line-height:1.6;flex-wrap:wrap}
.lesson-nav>svg{flex-shrink:0}
.sidebar-help h3{font-size:1.375rem}
.sidebar-help p{font-size:var(--type-small);line-height:1.7}
.sidebar-fine{font-size:var(--type-caption);line-height:1.7}
.lesson-breadcrumb,.lesson-time{font-size:var(--type-caption);line-height:1.6}
.lesson-breadcrumb{flex-wrap:wrap;gap:8px}
.lesson-article h2{font-size:clamp(2rem,3.2vw,2.5rem);line-height:1.25}
.learning-goal p{font-size:var(--type-body);line-height:1.75}
.learning-goal strong{font-size:var(--type-small);line-height:1.6}
.lesson-article>p,.worked-example p,.activity p,.remember p{font-size:var(--type-body);line-height:1.85}
.worked-example h3,.activity h3{font-size:1.5rem;line-height:1.35}
.check-heading h3{font-size:1.875rem;line-height:1.3}
.question-count{font-size:var(--type-control)}
.check-intro{font-size:var(--type-small);line-height:1.75}
.knowledge-check legend{font-size:var(--type-body);line-height:1.65}
.answer-choice{font-size:var(--type-body);line-height:1.65;min-height:56px;padding:15px;gap:12px;align-items:flex-start}
.answer-letter{font-size:var(--type-caption);flex-shrink:0}
.answer-choice input{flex-shrink:0;margin-top:7px}
.result-heading strong{font-size:1.5rem;line-height:1.4}
.result-heading span,.quiz-result>p,.quiz-result>p strong{font-size:var(--type-body);line-height:1.75}
.quiz-result>p.save-note{font-size:var(--type-caption);line-height:1.7}
.course-complete h3{font-size:1.5rem;line-height:1.3}
.course-complete p{font-size:var(--type-body);line-height:1.75}
.channel-status,.channel-footnote p,.market-period,.market-source-note{font-size:var(--type-caption);line-height:1.7}
.channel-card h3{font-size:1.75rem;line-height:1.3}
.channel-card>ul,.channel-footnote a{font-size:var(--type-small);line-height:1.75}
.channel-heading h2,.market-heading h2{font-size:clamp(2.25rem,3.8vw,3rem)}
.market-period{letter-spacing:.04em;min-height:0}
.market-metrics article>strong{font-size:2.25rem;line-height:1.25}
.market-metrics h3{font-size:1.5rem;line-height:1.3}
.market-baseline h3{font-size:1.875rem;line-height:1.3}
.market-metrics a,.market-baseline a{font-size:var(--type-small);line-height:1.7}
@media(max-width:1180px){
  .main-nav{display:none}
  .menu-toggle{display:grid}
  .main-nav.is-open{display:flex;position:absolute;inset:100% 0 auto;flex-direction:column;align-items:stretch;gap:0;padding:16px 36px 24px;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 10px 20px #17224810;max-height:calc(100dvh - 110px);overflow:auto}
  .main-nav.is-open>a{font-size:var(--type-body);min-height:52px;padding:12px 0;white-space:normal}
  .nav-actions{margin-left:auto}
}
@media(max-width:1040px){
  .hero{grid-template-columns:1fr;gap:40px}
  .hero-copy{max-width:740px}
  .hero-visual{justify-self:center}
  .hero h1{font-size:clamp(2.5rem,7vw,4.5rem)}
  .steps-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px}
  .learning-section{gap:36px}
  .footer-top{grid-template-columns:1fr 1fr;gap:36px}
  .learning-layout{grid-template-columns:270px minmax(0,1fr);gap:26px}
}
@media(max-width:900px){
  .role-panel{grid-template-columns:1fr;gap:26px}
  .product-grid{grid-template-columns:1fr}
  .product-card{padding:28px}
  .learning-section{grid-template-columns:1fr;gap:40px}
  .learning-art{max-width:580px;width:100%;margin:auto}
  .guide-section{flex-direction:column;align-items:flex-start;gap:28px}
  .faq-section{grid-template-columns:1fr;gap:30px}
  .learning-page-heading{flex-direction:column;align-items:flex-start;gap:28px}
  .learning-layout{display:block}
  .lesson-sidebar{position:static;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:36px}
  .sidebar-heading,.sidebar-help,.sidebar-fine{grid-column:1/-1}
  .lesson-nav{margin:0;background:#f4f6fc;border-color:var(--line)}
  .market-heading{display:block}
  .market-heading>p{max-width:none;margin-top:22px}
  .market-metrics,.market-baseline{grid-template-columns:1fr}
  .market-metrics article{padding:28px}
  .market-baseline{gap:24px}
  .channel-grid{grid-template-columns:1fr}
  .channel-card-top{flex-direction:row;align-items:center}
}
@media(max-width:600px){
  .section-wrap{padding-left:22px;padding-right:22px}
  .nav-inner{min-height:82px;padding:14px 22px;gap:16px}
  .nav-actions>.login-link,.nav-actions>.button{display:none}
  .mobile-portal-links{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:14px;padding-top:18px;border-top:1px solid var(--line)}
  .main-nav.is-open{padding-left:22px;padding-right:22px}
  .site-nav .brand-logo{width:165px}
  .hero{padding-top:42px;padding-bottom:46px;gap:32px}
  .hero h1{font-size:clamp(2.5rem,10.5vw,3.25rem)}
  .heading-spark{display:none}
  .hero-description{font-size:var(--type-body)}
  .hero-buttons{gap:14px}
  .hero-footnote{margin-top:28px}
  .hero-visual{padding:18px;gap:10px}
  .floating-role,.role-supplier,.role-buyer,.role-financier{padding:10px 8px;gap:6px}
  .floating-role>span:last-child{display:none}
  .invoice-sheet{padding:18px}
  .invoice-heading>strong{font-size:1.75rem}
  .learning-float{padding:14px;gap:10px}
  .learning-tick{display:none}
  .sectors{display:grid;grid-template-columns:1fr;gap:20px}
  .role-tabs{display:grid;grid-template-columns:1fr}
  .role-tabs>button{justify-content:flex-start;min-height:56px}
  .role-tabs>button>svg:last-child{margin-left:auto}
  .role-panel{padding:26px 22px}
  .role-story h3{font-size:1.625rem}
  .products-heading h3{font-size:1.625rem}
  .product-card{padding:24px}
  .steps-grid{grid-template-columns:1fr;gap:30px}
  .learning-art{padding:22px}
  .course-art{padding:20px}
  .course-art h3{font-size:1.75rem}
  .course-art-top>span:nth-child(2){min-width:100px}
  .course-art-bottom{flex-direction:column;align-items:flex-start}
  .learning-stats{gap:20px 28px}
  .guide-section{margin-left:22px;margin-right:22px;padding:30px 24px}
  .faq-list summary{padding-top:20px;padding-bottom:20px}
  .footer-top{grid-template-columns:1fr;padding:36px 22px;gap:30px}
  .footer-note{max-width:none}
  .footer-bottom{margin:0 22px;padding-bottom:90px;align-items:flex-start;flex-direction:column;gap:16px}
  .floating-ask{right:16px;bottom:16px}
  .modal-body{padding:24px}
  .assistant-modal{inset:8px;width:calc(100vw - 16px);max-width:none;height:calc(100dvh - 16px)}
  .assistant-modal .modal-body{padding:20px 18px 14px}
  .assistant-meta{gap:10px}
  .assistant-meta .icon-btn{margin-left:auto;flex-shrink:0}
  .prompt-grid{grid-template-columns:1fr}
  .assistant-footer{align-items:flex-start;text-align:left}
  .assistant-footer a{text-align:left}
  .lesson-sidebar{grid-template-columns:1fr}
  .lesson-nav{padding:16px}
  .lesson-article h2{font-size:2rem}
  .knowledge-check,.worked-example{padding:24px 20px}
  .check-heading h3{font-size:1.625rem}
  .answer-choice{padding:14px 12px;gap:10px}
  .result-actions{flex-wrap:wrap}
  .market-metrics article{padding:24px}
  .market-metrics article>strong{font-size:2rem}
  .market-baseline{padding:24px}
  .market-action .button{align-self:flex-start}
}

/* PHP Bootstrap components use their own modal and navigation containers. */
.php-header .nav-link{font-size:var(--type-control);line-height:1.6}
.php-header .navbar-nav{gap:18px}
.modal-dialog.support-dialog{max-width:530px}
.modal .modal-title{font-size:1.75rem!important;line-height:1.3}
.support-dialog .chat-entry,.support-dialog textarea,.support-intro{font-size:var(--type-body);line-height:1.75}
.support-dialog .small,.support-dialog .chat-entry small{font-size:var(--type-caption);line-height:1.65}
.php-header .navbar-toggler,.modal .btn-close{min-width:44px;min-height:44px}
#learning-form .button,#learning-retry{font-size:var(--type-control)}
.knowledge-check .answer-choice,.quiz-result p{font-size:var(--type-body);line-height:1.75}
@media(max-width:1180px){.php-header .navbar-expand-lg{flex-wrap:wrap}.php-header .navbar-expand-lg .navbar-toggler{display:block}.php-header .navbar-expand-lg .navbar-collapse{flex-basis:100%;padding-top:20px}.php-header .navbar-expand-lg .navbar-collapse:not(.show){display:none!important}.php-header .navbar-expand-lg .navbar-collapse.show{display:block!important}.php-header .navbar-expand-lg .navbar-nav{flex-direction:column;align-items:flex-start!important;gap:12px}.php-header .navbar-expand-lg .navbar-nav .button{margin-left:0!important;margin-top:10px}}
