/* Layout additions to the original JV style.css; original site theme remains authoritative. */
.jv-main{box-sizing:border-box}
.jv-main>h1{text-align:left}
.jv-main .link-row{display:flex;align-items:center;gap:12px;background:#eee;padding:12px;margin:10px 0;border-radius:5px}
.link-row label{font-weight:bold;min-width:145px;font-size:14px}
.link-row input,.link-row select{font:inherit;padding:8px;margin:0;border:1px solid #ccc;background:#fff;min-width:0}
.link-row input{flex:1;width:100px}
.link-row select{width:auto}
.link-row button,.resource button{cursor:pointer;border:0;padding:10px 15px;background:#ffe400;color:#6e380d;font:inherit}
.link-row button:hover,.resource button:hover{background:#fff000}
.identity{flex-wrap:wrap}
.identity label[for=affname]{min-width:auto}
.identity #affname{max-width:220px}
.detail{display:grid;grid-template-columns:300px minmax(0,1fr);gap:30px;padding:20px 0;margin:25px 0}
.detail-image img{width:300px;max-width:100%;height:auto}
.detail-image .button{width:100%;text-align:center}
.detail-copy p:first-child{margin-top:0}
.earnings{border-top:1px solid #ccc;padding-top:20px}
.resource{margin:0 0 36px}
.resource textarea{display:block;user-select:text}
/* 10px above, not 30. The gap between a resource page's title and its
   introduction was 30px -- h1's own 20px bottom margin collapsing with this
   one's 30px top -- which is 20px more than every other page in the hub.
   Collapsing margins take the LARGER of the two, so bringing this one down
   on its own would have left the h1's 20px standing; the rule below trims
   that h1 to match, and only the h1 that actually sits above an intro. */
/* 12px under the introduction, not 30. The first tab belongs to the copy
   above it -- it is the first of the things the page has just described --
   and 30px of nothing between them read as a break in the page. overflow
   here makes this a block formatting context, so this margin is the whole
   gap: nothing collapses through it. */
.resource-intro{overflow:auto;margin:10px 0 12px}
h1:has(+ .resource-intro){margin-bottom:10px}
.resource-intro img,.banner-preview{max-width:100%;height:auto}
/* .notice is styled with .jv-notice further down this file. */
.jv-catalog.large .thumbnail img{width:300px;height:300px;object-fit:contain}
.jv-catalog.large .card .actions{flex-direction:row;justify-content:flex-end;flex-wrap:wrap}
.icon-input input{width:100%}
/* Keep the original menu artwork and behaviour while allowing its items to wrap on phones. */
#mbmcpebul_table li{max-width:100%}
@media(max-width:850px){.detail{grid-template-columns:240px minmax(0,1fr)}.identity label[for=affname]{min-width:145px}.identity #affname{max-width:none}}
@media(max-width:600px){.detail{display:flex;flex-direction:column}.detail-image{margin:auto}.jv-main .link-row{flex-wrap:wrap}.link-row label{width:100%;min-width:0}.link-row input{flex-basis:65%}.identity input{flex-basis:100%}.link-row select{width:100%}.resource{padding:15px}}

/* Restore original signup overlay styling, with layout fixes for the new hub. */
.overlay{position:fixed;overflow-y:auto;z-index:1000}
.overlay .popup{box-sizing:border-box;max-width:850px}
.resource-guide{overflow-x:auto;margin:25px 0}
.resource-guide table{min-width:600px}
#social-bookmarks input,#social-bookmarks textarea,.forum-replies textarea{max-width:100%;box-sizing:border-box}
#social-bookmarks table{width:100%}
.jv-main .normal-privacy{font-size:14px}

.jv-main .button{font-size:16px}

/* Store-style catalogue controls and layouts, retaining both affiliate actions. */
#catalog.jv-catalog .tile-links{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
#catalog.jv-catalog.small .tile-links{align-items:center}
#catalog.jv-catalog.extra .tile-links{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}
#catalog.jv-catalog .tile-links .button{max-width:none}
#catalog.jv-catalog .actions{gap:12px}
#catalog.jv-catalog .price{overflow-wrap:anywhere}

/* Affiliate catalogue refinements. */
.earnings-range{color:#008000}
.welcome-content.page{max-width:1200px;box-sizing:border-box}
.earnings-proof{text-align:center;clear:both}
.earnings-proof img{display:block;float:none;max-width:100%;height:auto;margin:20px auto}
.training-navigation .tabs{justify-content:center}
.controls #type:disabled{color:#777;background:#eee;cursor:not-allowed;opacity:1}
#catalog.jv-catalog .description-small,#catalog.jv-catalog .description-medium{display:none;margin:0}
#catalog.jv-catalog.small .description-full,#catalog.jv-catalog.medium .description-full{display:none}
#catalog.jv-catalog.small .description-small,#catalog.jv-catalog.medium .description-medium{display:block}
#catalog.jv-catalog .tile-links .button{box-sizing:border-box;width:160px;max-width:100%;margin:5px 6px;text-align:center}
#catalog.jv-catalog .tile-links{max-width:100%}
#catalog.jv-catalog.medium .actions{flex-wrap:wrap}
#catalog.jv-catalog.large .card{display:flex;flex-direction:column}
#catalog.jv-catalog.large .card h2{text-align:center}
#catalog.jv-catalog.large .thumbnail{margin-left:auto;margin-right:auto}
#catalog.jv-catalog.large .description{width:100%;text-align:justify;text-align-last:left}
#catalog.jv-catalog.large .actions{width:100%;flex-direction:row;justify-content:space-between;align-items:center;text-align:left;flex-wrap:wrap}
#catalog.jv-catalog.large .price-stack{align-items:flex-start;text-align:left}
.affiliate-profile{box-sizing:border-box;max-width:600px;margin:20px auto 30px;padding:24px;border:1px solid #ccc;border-radius:6px;background:#f1f1f1}
.profile-fields{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:14px 12px}
.profile-fields label{font-weight:bold;text-align:left}
.profile-fields input{box-sizing:border-box;width:100%;min-width:0;margin:0;padding:10px;border:1px solid #ccc;border-radius:4px;font:inherit;background:#fff}
.profile-submit{text-align:center}
.profile-submit button{cursor:pointer;padding:10px 16px;border:0;background:#ffe400;color:#6e380d;font:inherit}
.profile-notes{font-size:14px;line-height:1.5}
.profile-notes p{margin-bottom:0}
@media(max-width:540px){.affiliate-profile{padding:18px}.profile-fields{grid-template-columns:1fr;gap:6px}.profile-fields input{margin-bottom:8px}}

/* Original resource presentation with modern clipboard controls. */
.resource{padding:0;border:0;border-radius:0;background:transparent}
.resource-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:4px;margin:14px 0 0}
.resource-actions input[type=button],.resource-actions .resource-post{box-sizing:border-box;display:inline-block;font:16px Verdana,sans-serif;color:#333;background:ButtonFace;border:1px solid #ccc;border-radius:0;padding:5px;margin:1px;line-height:normal;text-decoration:none;cursor:pointer}
.resource-actions :disabled{cursor:wait;opacity:.7}
.detail-image .earnings{border:0;padding:0;margin:12px 0 18px;font-size:16px;text-align:center}
.detail-image .preview-heading{margin:0 0 8px}
.detail-image .preview-links{display:flex;flex-direction:column;gap:6px}
.detail-image .preview-links .button{box-sizing:border-box;display:block;width:100%;padding:12px 10px;margin:0;line-height:1.35}
.product-link-controls{margin-top:24px}
.product-link-controls .link-row{flex-wrap:wrap}
.product-link-controls .identity label{min-width:110px}
/* ---- notifications -------------------------------------------------------
   One class for every message the hub shows, floating or inline, so a copy
   confirmation and an error on the links page are recognisably the same
   object. .jv-notice is the look; .jv-notice-float adds the corner position
   and the fade for the ones that appear and go again.
   .copy-toast and .notice are kept alongside as the names the markup used
   to carry, so anything not yet renamed still gets the right styling. */
.jv-notice,.copy-toast,.notice{box-sizing:border-box;display:flex;align-items:flex-start;gap:8px;padding:10px 14px;border-radius:4px;font-size:14px;line-height:1.4;color:#1d6b3a;background:#eaf7ee;border:1px solid #a9d9bb;overflow-wrap:anywhere}
/* A tick in front of anything that went right. content on a ::before
   rather than a character in the message, so every notification gets one
   without each place that raises one having to remember. flex-shrink:0
   keeps it a tick rather than letting it squash when the wording wraps,
   and it stays out of the accessibility tree -- the message already says
   what happened, and a screen reader announcing "tick" first adds
   nothing. */
.jv-notice:not(.is-error)::before,.copy-toast:not(.is-error)::before,.notice:not(.is-error)::before{
  content:"\2713";flex:0 0 auto;font-weight:700;line-height:1.4}
.jv-notice-float,.copy-toast{position:fixed;right:20px;bottom:20px;left:auto;z-index:2000;width:max-content;max-width:min(420px,calc(100vw - 40px));pointer-events:none;box-shadow:0 3px 12px rgba(23,85,127,.14);opacity:0;transform:translateY(6px);transition:opacity 180ms ease,transform 180ms ease}
.jv-notice-float.is-visible,.copy-toast.is-visible{opacity:1;transform:translateY(0)}
/* Errors stay warm and keep no tick. They are the one message that must
   not look like the others, or a failed copy reads as a successful one. */
.jv-notice.is-error,.copy-toast.is-error,.notice.is-error{color:#8a3b12;background:#fff2e8;border-color:#efc29b}
@media(prefers-reduced-motion:reduce){.jv-notice-float,.copy-toast{transition:none;transform:none}}

/* Original-style paired graphics, with full-width large banners and no empty slots. */
.graphics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 32px;align-items:stretch;margin:25px 0}
.graphics-grid .graphic-resource{min-width:0;margin:0;display:flex;flex-direction:column;text-align:center}
.graphics-grid .graphic-wide{grid-column:1/-1}
.graphics-grid .graphic-resource h2{font-size:18px;font-weight:400;margin:0 0 12px;overflow-wrap:anywhere}
.graphic-preview{display:flex;align-items:center;justify-content:center;flex:1;margin:0 0 18px}
/* The banner on the page brightens exactly as the swipe code does, so the
   preview shows the affiliate what they are about to paste rather than
   just the picture. Same white veil at the same 18% over the same 0.3s --
   here it is a ::after rather than a <span>, because this page has a
   stylesheet of its own and does not need to carry the layer inline. */
.graphic-preview a{display:block;max-width:100%;position:relative;line-height:0}
.graphic-preview a::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:#ffffff;opacity:0;transition:opacity .3s ease;pointer-events:none}
.graphic-preview a:hover::after{opacity:.18}
.graphic-preview .banner-preview{display:block;max-width:100%;height:auto;margin:0 auto}
.graphic-resource textarea{width:100%;max-width:720px;margin-left:auto;margin-right:auto;min-height:110px;text-align:left}
.graphic-resource .resource-actions{margin-top:12px}
@media(max-width:700px){.graphics-grid{grid-template-columns:1fr;gap:28px}.graphics-grid .graphic-wide{grid-column:auto}}

/* Montserrat typography and final JV layout refinements. */
body,h1,h2,h3,h4,.jv-main a,.jv-main input,.jv-main select,.jv-main textarea,.jv-main button,.button,.letter,.bgfootercontent{font-family:'Montserrat',sans-serif!important}
#mbmcpebul_table a{font-family:'Montserrat',sans-serif!important}
.jv-main .tabs{justify-content:center}
.affiliate-profile{max-width:700px}
#catalog.jv-catalog .tile-links{gap:4px}
#catalog.jv-catalog .tile-links .button{margin:2px 3px}
#catalog.jv-catalog.small .earnings-label,#catalog.jv-catalog.medium .earnings-label{display:block}
#catalog.jv-catalog.small .earnings-range,#catalog.jv-catalog.medium .earnings-range{display:block}
#catalog.jv-catalog.medium .actions,#catalog.jv-catalog.large .actions{flex-direction:column;align-items:center;justify-content:flex-end;text-align:center;gap:8px}
#catalog.jv-catalog.medium .price-stack,#catalog.jv-catalog.large .price-stack{align-items:center;text-align:center}
#catalog.jv-catalog.medium .tile-links,#catalog.jv-catalog.large .tile-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;width:100%;max-width:360px;align-items:stretch;justify-content:center}
#catalog.jv-catalog.medium .tile-links .button,#catalog.jv-catalog.large .tile-links .button{display:flex;align-items:center;justify-content:center;width:calc(100% - 6px);max-width:none}
#catalog.jv-catalog.extra .card h2{grid-column:1/-1;grid-row:1}
#catalog.jv-catalog.extra .thumbnail{grid-column:1;grid-row:2/4}
.detail-image .earnings{text-align:left;font-weight:400}
.detail-image .earnings-label{display:block}
.detail-image .earnings-range{display:block;font-size:22px;font-weight:400;line-height:1.4}
.product-link-controls .link-row{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:8px;align-items:center}
.product-link-controls .custom-link-row{grid-template-columns:110px 100px minmax(0,1fr) auto}
.product-link-controls .link-row label{width:auto;min-width:0}
.product-link-controls .link-row input,.product-link-controls .link-row select{width:100%;min-width:0;max-width:none}
.product-link-controls .link-row .button{font:inherit;color:#fff;background:linear-gradient(to bottom,#3498db,#2980b9);padding:8px 12px;border:0;line-height:1.4;margin:0}
.product-link-controls .link-row .button:hover{background:linear-gradient(to bottom,#3cb0fd,#3498db)}
/* The green toast that used to be redefined here is now the soft blue
   .jv-notice above, which is the one place every message is styled. */
@media(max-width:600px){.product-link-controls .link-row{grid-template-columns:90px minmax(0,1fr) auto;padding:10px;gap:6px}.product-link-controls .custom-link-row{grid-template-columns:90px 80px minmax(0,1fr) auto}}
@media(max-width:480px){.product-link-controls .custom-link-row{grid-template-columns:80px minmax(0,1fr) auto}.product-link-controls .custom-link-row label{grid-column:1/-1}}
#catalog.jv-catalog.small .price{font-size:16px}
#catalog.jv-catalog.small .earnings-label,#catalog.jv-catalog.small .earnings-range,#catalog.jv-catalog.medium .earnings-label,#catalog.jv-catalog.medium .earnings-range{white-space:nowrap}
@media(min-width:851px) and (max-width:1000px){#catalog.jv-catalog.small .price{font-size:14px}}

/* Each training route presents one video, with section and lesson navigation. */
.training-video-navigation .tabs{justify-content:center;gap:6px;margin-bottom:30px}
.training-video-navigation .tabs a{font-size:14px;line-height:1.4;padding:8px 12px;max-width:100%;text-align:center}
.training-description{font-size:inherit;font-weight:400;line-height:1.7;margin:24px 0}
.training-lesson{margin-bottom:30px}

/* Equal menu padding follows the text width, including the longer labels. */
#mbmcpebul_table{display:flex;flex-wrap:wrap;justify-content:center;margin:0;width:auto}
#mbmcpebul_table li{float:none;margin:0}
#mbmcpebul_table li div.buttonbg{width:auto!important;height:auto}
#mbmcpebul_table li a{box-sizing:border-box;padding:20px;line-height:19px;text-align:center}
.training-navigation .tabs{overflow:visible;gap:6px;margin-bottom:30px}
.training-dropdown{position:relative;max-width:100%;text-align:left}
.training-dropdown summary{box-sizing:border-box;padding:10px 14px;border:1px solid #ccc;background:#eee;border-radius:4px;cursor:pointer;font-size:14px;line-height:1.4;list-style:none;text-align:center}
.training-dropdown summary::-webkit-details-marker{display:none}
.training-dropdown summary::after{content:' ▾'}
.training-dropdown.is-current summary{background:#333;color:#fff;border-color:#333}
.training-dropdown summary:focus-visible{outline:2px solid #2980b9;outline-offset:2px}
.training-dropdown-links{position:absolute;top:100%;left:0;z-index:50;width:360px;max-width:calc(100vw - 40px);padding:6px;box-sizing:border-box;border:1px solid #ccc;border-radius:4px;background:#fff;box-shadow:0 5px 15px rgba(0,0,0,.15)}
.training-navigation .tabs .training-dropdown-links a{display:block;margin:0;border:0;border-radius:0;padding:10px 12px;white-space:normal;text-align:left;font-size:14px;line-height:1.4}
.training-navigation .tabs .training-dropdown-links a:hover,.training-navigation .tabs .training-dropdown-links a[aria-current=page]{background:#eee;color:#333}
.training-description p{font-weight:400;margin:0 0 18px}
.training-description p:last-child{margin-bottom:0}
@media(min-width:701px){.training-dropdown:last-child .training-dropdown-links{left:auto;right:0}}
@media(max-width:700px){.training-dropdown-links{position:static;width:100%;max-width:100%;box-shadow:none}.training-dropdown[open]{flex-basis:100%}}

/* Latest affiliate tile and submenu refinements. */
#catalog.jv-catalog.medium .card h2{text-align:center}
#catalog.jv-catalog.medium .tile-links{grid-template-columns:minmax(0,1fr);max-width:180px}
#catalog.jv-catalog.large .card h2{font-size:28px;line-height:1.25}
.detail-image .earnings-label{font-weight:900}
.jv-main .tabs a,.training-dropdown summary,.training-navigation .tabs .training-dropdown-links a{border-radius:5px}

/* Submenus share the catalogue action-button blues. */
.jv-main .tabs a,.training-dropdown summary,.training-dropdown.is-current summary,.training-navigation .tabs .training-dropdown-links a{color:#fff;background:linear-gradient(to bottom,#3498db,#2980b9);border-color:#2980b9}
.jv-main .tabs a:hover,.jv-main .tabs a:focus-visible,.training-dropdown summary:hover,.training-dropdown[open] summary,.training-navigation .tabs .training-dropdown-links a:hover,.training-navigation .tabs .training-dropdown-links a:focus-visible{color:#fff;background:linear-gradient(to bottom,#3cb0fd,#3498db)}
.jv-main .tabs a[aria-current],.training-dropdown.is-current summary,.training-navigation .tabs .training-dropdown-links a[aria-current=page]{color:#fff;background:linear-gradient(to bottom,#3498db,#2980b9);box-shadow:inset 0 0 0 2px rgba(255,255,255,.55)}

/* White lesson dropdowns beneath the blue section buttons. */
.training-dropdown-links{margin:0;padding:0}
.training-navigation .tabs .training-dropdown-links a{margin:0;padding:14px 12px;color:#333;background:#fff;box-shadow:none}
.training-navigation .tabs .training-dropdown-links a:hover,.training-navigation .tabs .training-dropdown-links a:focus-visible,.training-navigation .tabs .training-dropdown-links a[aria-current=page]{color:#333;background:#eee;box-shadow:none}

/* Compact six-section training menu and square lesson dropdowns. */
.training-description strong{font-weight:600}
.training-dropdown-links,.training-navigation .tabs .training-dropdown-links a{border-radius:0}
@media(min-width:1000px){
 .training-navigation .tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
 .training-dropdown summary{font-size:16px;padding:12px 8px;white-space:nowrap}
}

/* Separate commission details from the earnings range. */
.detail-image .commission{margin:12px 0 18px;text-align:left}
.detail-image .commission-label{display:block;font-weight:900}
.detail-image .commission-rate{display:block;color:#008000;font-size:22px;font-weight:400;line-height:1.4}

/* Explicit dismissal takes precedence over the original :target overlay. */
#continue.overlay[hidden]{display:none!important}

/* Consistent setup subtitles; retain the original indented process paragraphs. */
.affiliate-setup h3,.affiliate-setup h3 strong,.affiliate-setup>p>strong{font-weight:700}

/* Slightly smaller JV catalogue controls. */
.jv-main .controls,.jv-main .controls label,.jv-main .controls input,.jv-main .controls select{font-size:16px}

/* Larger section-button labels; video dropdown items retain their 14px type. */
.training-dropdown summary{font-size:16px}

/* Keep the JV product status together beside the pager. */
.jv-main .pagination-row{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:12px}
.jv-main .pagination-row .pagination{grid-column:1;min-width:0;margin:0;flex-wrap:nowrap;overflow-x:auto;justify-content:safe center}
.jv-main .pagination-row #results{grid-column:2;white-space:nowrap!important;width:auto;max-width:none;min-width:max-content;margin:0;justify-self:end;text-align:right;line-height:1.4}
.jv-main .pagination-row.no-pagination{grid-template-columns:1fr}
.jv-main .pagination-row.no-pagination #results{grid-column:1}
@media(max-width:600px){.jv-main .pagination-row{gap:8px}.jv-main .pagination-row #results{font-size:12px}}

/* Balance both sides so the pager is centered on the full catalogue. */
.jv-main .pagination-row{grid-template-columns:200px minmax(0,1fr) 200px}
.jv-main .pagination-row .pagination{grid-column:2}
.jv-main .pagination-row #results{grid-column:3}
.jv-main .pagination-row.no-pagination{grid-template-columns:1fr}
.jv-main .pagination-row.no-pagination #results{grid-column:1}
@media(max-width:600px){
 .jv-main .pagination-row{grid-template-columns:minmax(0,1fr) max-content}
 .jv-main .pagination-row .pagination{grid-column:1}
 .jv-main .pagination-row #results{grid-column:2}
 .jv-main .pagination-row.no-pagination{grid-template-columns:1fr}
 .jv-main .pagination-row.no-pagination #results{grid-column:1}
}

/* ---- Testimonials -------------------------------------------------------
   The hub shows one testimonial at a time, scrolling upwards, from the same
   source it always used -- fetched by the server now rather than framed, so
   the page can show them one by one. See jv/testimonials_remote.php.

   catalog.css styles #testimonials for the STORE, where each one is a short
   italic quote with a 55px portrait floated beside it. The hub's are full
   testimonials with a heading and a 200px star rating, so those rules are
   undone here. hub.css loads after catalog.css, so these win. */
#testimonials{
  width:auto;max-width:none;margin:0;
  font-style:normal;color:#333;text-align:left;
}
#testimonials>div{display:flow-root;width:100%;padding:4px 0 10px;box-sizing:border-box}
/* The quote itself reads 2px smaller than the hub's standard copy. calc on 1em
   rather than a fixed size, so it stays 2px below whatever the standard is if
   that ever changes. The title is an h2/h3 with its own size and is untouched. */
#testimonials p{margin:0 0 1em;font-size:calc(1em - 2px)}
/* Undo the store's 55px float, then put the float back for the small portrait
   that some testimonials carry. */
#testimonials img{float:none;width:auto;max-width:100%;height:auto;padding:0}
#testimonials img.profile{float:left;width:100px;height:auto;padding:4px 14px 8px 0;box-sizing:content-box}
#testimonials h2,#testimonials h3,#testimonials h4{
  font-size:36px;font-weight:400;line-height:1;letter-spacing:-0.03em;
  margin:0 0 .5em;text-align:center;
}
/* The emphasised phrases inside a testimonial title are the bold ones. */
#testimonials h2 strong,#testimonials h3 strong,#testimonials h4 strong,
#testimonials h2 b,#testimonials h3 b,#testimonials h4 b{font-weight:700}
/* The star rating sits above the quote rather than beside it. */
#testimonials h2 img,#testimonials h3 img,#testimonials h4 img{display:block;margin:0 auto 6px;width:250px;max-width:100%;height:auto}
/* The source markup is <img><br>the quote. With the stars set to block the
   <br> then adds a whole empty line -- a 43px hole between the stars and the
   title at this size -- so it goes. */
#testimonials h2 img + br,#testimonials h3 img + br,#testimonials h4 img + br{display:none}
/* Drag to move between them; the pointer says so. */
#testimonials{cursor:grab}
#testimonials.is-dragging{cursor:grabbing;user-select:none}
#testimonials.is-dragging *{user-select:none}

/* Bold inside body copy. style.css sets `p strong` to 900, which in Montserrat
   is Black and reads as a shout against the 400 around it. 600 keeps the
   emphasis without the weight. Headings are untouched, and the two places that
   deliberately ask for 700 -- the affiliate setup steps and the testimonial
   titles -- set it themselves at a higher specificity. */
p strong, p b { font-weight: 600 }

/* "Show all": every testimonial one under another, nothing moving. */
.testimonials-all{max-width:none;margin:0;color:#333;text-align:left}
.testimonials-all>div{display:flow-root;width:100%;padding:4px 0 26px;box-sizing:border-box}
.testimonials-all p{margin:0 0 1em;font-size:calc(1em - 2px)}
.testimonials-all img{float:none;width:auto;max-width:100%;height:auto;padding:0}
.testimonials-all img.profile{float:left;width:100px;height:auto;padding:4px 14px 8px 0;box-sizing:content-box}
.testimonials-all h2,.testimonials-all h3,.testimonials-all h4{
  font-size:36px;font-weight:400;line-height:1;letter-spacing:-0.03em;margin:0 0 .5em;text-align:center;
}
.testimonials-all h2 strong,.testimonials-all h3 strong,.testimonials-all h4 strong,
.testimonials-all h2 b,.testimonials-all h3 b,.testimonials-all h4 b{font-weight:700}
.testimonials-all h2 img,.testimonials-all h3 img,.testimonials-all h4 img{display:block;margin:0 auto 6px;width:250px;max-width:100%;height:auto}
.testimonials-all h2 img + br,.testimonials-all h3 img + br,.testimonials-all h4 img + br{display:none}

/* ---- resource decks -------------------------------------------------------
   One box with a strip of tabs over it, instead of one box per resource. A
   product with thirty swipe emails used to be thirty textareas down a page
   five screens long.

   Built to look like the swipe tabs on the admin's product details page, which
   is the control this is the affiliate's version of: the same grid of equal
   tabs sitting on the panel, the same palette, the same two rows with arrows
   either side when there is more than that. The numbers here are
   product_swipes.css's, copied; if that control is ever restyled, this is the
   file that has to follow.

   Scoped to .resource-deck throughout, not left as a bare .deck-tab: the hub
   styles `.resource button` as a yellow action button, and at one class plus
   one element that selector outranks a single class -- so every tab came out
   yellow. */
.resource-deck{margin:25px 0}
.deck-nav{display:grid;grid-template-columns:30px minmax(0,1fr) 30px;align-items:start;gap:3px}
.resource-deck:not(.is-paged) .deck-nav{grid-template-columns:minmax(0,1fr)}
.deck-tabs{display:grid;gap:3px;min-width:0;align-content:start}
/* With two rows, the panel colour is painted behind everything below the
   first row, so the second row of tabs sits ON the box rather than floating
   above it with a strip of page showing through. --deck-row is the measured
   height of one row plus the gap, written by hub.js: the same trick the
   admin's swipe tabs use, and for the same reason -- only the browser knows
   how tall a row came out. */
.resource-deck.is-two-rows .deck-tabs{
  background:linear-gradient(to bottom,transparent var(--deck-row,33px),#edf2f7 var(--deck-row,33px));
  border-left:1px solid #c8c8c8;border-right:1px solid #c8c8c8;
  box-sizing:border-box;padding:0 3px;margin:0 -3px}
/* The gradient's edge is the top of the box, so the panel must not draw a
   second one under it. */
.resource-deck.is-two-rows .deck-panel{border-top:0}
.resource-deck .deck-tab{box-sizing:border-box;min-width:0;margin:0;padding:6px 10px;
  border:1px solid #c8c8c8;border-radius:3px 3px 0 0;background:#e3eaf2;color:#333;
  cursor:pointer;font:inherit;font-size:16px;line-height:1.3;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;text-align:center}
.resource-deck .deck-tab:hover{background:#d7e2ee}
.resource-deck .deck-tab.is-on{background:#edf2f7;border-color:#187fae;border-bottom-color:#edf2f7;color:#222;font-weight:700}
/* Only while the strip is measuring. Bold text is wider, so measuring with one
   tab bold and the rest not gives a different column count depending on which
   tab happens to be open. */
.deck-tabs.is-measuring .deck-tab{font-weight:700}
.resource-deck .deck-tab[hidden]{display:none!important}
.resource-deck .deck-arrow{box-sizing:border-box;width:30px;height:34px;margin:0;padding:0;
  border:1px solid #c8c8c8;border-radius:3px;background:#edf2f7;color:#333;
  font:inherit;font-size:16px;line-height:1;cursor:pointer}
/* Both halves, and the plain :hover first. A disabled arrow matched no
   hover rule of ours, so `.resource button:hover` further up this file --
   the hub's yellow action button -- painted it, and the arrow at the end
   of the tabs flashed yellow under the pointer while doing nothing at
   all. The first rule holds a disabled arrow at its resting colour; the
   second lights a live one. */
.resource-deck .deck-arrow:hover{background:#edf2f7}
.resource-deck .deck-arrow:hover:not(:disabled){background:#dde7f0}
.resource-deck .deck-arrow:disabled{opacity:.4;cursor:default}
.resource-deck:not(.is-paged) .deck-arrow{display:none}
/* The panel the tabs sit on, so the open tab joins the box it opens rather
   than floating over white. */
.resource-deck .deck-panel{background:#edf2f7;border:1px solid #c8c8c8;border-top:0;
  border-radius:0 0 3px 3px;padding:10px;margin:0}
/* Left aligned and smaller than a heading: it labels the box below it rather
   than heading a section of the page, and it changes with every tab. */
.deck-title{margin:0 0 10px;text-align:left;font-size:20px;font-weight:600;line-height:1.35;color:#333;overflow-wrap:break-word}
.deck-title a{color:inherit}
.resource-deck textarea{width:100%;box-sizing:border-box;margin:0}
.resource-deck .resource-actions{margin-top:8px}
/* The rendered link on a text-link box: what a visitor actually sees, shown
   above the markup that produces it. Centred, because that is how these are
   dropped into a page. */
/* The same box as .deck-title above, so a sample and a title sit the same
   way inside a panel: no padding of its own, the panel's own 10px around
   it, and 10px to whatever is below. The extra 2px/8px this used to carry
   was left over from when it was a white card that needed breathing room
   inside its border. */
.deck-sample{margin:0 0 10px;padding:0;text-align:center;font-size:20px;font-weight:600;
  line-height:1.35;color:#333;overflow-wrap:anywhere}
/* A signature is plain text rather than a styled link, so its sample reads
   at body size and from the left -- the way it will sit at the foot of a
   post, not the way a headline link sits in the middle of a page. */
/* A signature reads from the left; a text link is centred. */
.deck-sample-plain{text-align:left}
.deck-sample a{font-weight:600}
/* A box of its own per resource: the tab above it is a label, not a control. */
.resource-deck.is-single{margin:0 0 18px}
/* One label, at its own width on the left, rather than a single grid column
   stretched across the whole box -- that read as a header bar, not a tab. */
.resource-deck.is-single .deck-tabs{grid-template-columns:max-content}
.resource-deck.is-single .deck-tab{cursor:default;padding:6px 16px}
/* The first box sits straight under the page's introduction. */
.resource-intro + .resource-deck{margin-top:0}
@media(max-width:600px){.resource-deck .deck-tab{font-size:14px;padding:5px 7px}}

/* ---- product titles ------------------------------------------------------
   The name of a product reads as heavily as the name on its tile. jv/style.css
   sets every h1-h4 to weight 300, which suits the hub's headline copy but left
   a product's own title noticeably lighter than the 900 its tile already uses
   in ../store/catalog.css.

   A class rather than `h1:has(+ .detail)`: this is the one h1 on the hub that
   names a product, and saying so in the markup is plainer than inferring it
   from what follows. The hub's headline h1s on the home page are deliberately
   light and are not touched. */
.jv-main h1.product-title{font-weight:900}

/* ---- the product drop-downs ----------------------------------------------
   Main Products and Giveaway Products open a panel listing everything on the
   page behind them, grouped the way the admin groups them -- Primary Products
   and Add-ons, Firesale Empire, Platinum Empire and the rest, in that file's
   own order. Built in inc_menu.php from the catalogue, so adding a product to
   the registry adds it here, and a product that is not installed is not in the
   catalogue and so is not in the menu either.

   SIZED TO MATCH THE TRAINING DROP-DOWNS, asked for 18 Nov: same 14px/1.4
   type, same 14px 12px on a link, same 1px #ccc border, 4px radius and soft
   shadow, same #eee hover. Those rules are up at .training-dropdown-links; if
   they are ever retuned, retune these with them.

   HALF THE SCREEN AND THEN IT SCROLLS. A panel tall enough for three hundred
   names is a panel that covers the page, so it is capped at 50vh and the rest
   is a scroll away. Change that one number to grow or shrink it.

   The menu's own stylesheet, affmenu_files/mbcsmbmcp.css, is linked from the
   BODY and therefore lands after this file, so every rule here is written to
   out-specify it rather than to come later: `#mbmcpebul_table .jv-submenu a`
   beats its `#mbmcpebul_table li a`, which would otherwise put 20px of padding
   and 16px of white type on three hundred links. hub.css's own
   `#mbmcpebul_table li a{text-align:center}` has to be answered as well --
   centred text in a column of names has no edge for the eye to run down. */

/* THE PANEL HANGS FROM THE BAR, NOT FROM THE ITEM. The menu's own stylesheet
   makes every li position:relative, which would make the panel's containing
   block the 180px item it belongs to -- and a wide panel centred on an item
   that sits right of centre runs off the edge of the window. Measured: at
   1024px the Giveaway Products panel ended 49px past the right edge.

   So the item is put back to static and the bar is made the containing block
   instead. The panel is then centred in the bar, which is itself centred and
   capped at 1200px, so it cannot leave the window at any width. */
#mbmcpebul_wrapper { position: relative; }
#mbmcpebul_table.css_menu .jv-has-sub { position: static; }
#mbmcpebul_table .jv-submenu {
  /* HALF THE SCREEN AND NO MORE, asked for 18 Nov. A cap rather than a height:
     the panel is as tall as what is in it -- the twenty-odd giveaways need a
     third of that -- and only the long lists reach the ceiling. In vh so it
     follows the window: half of a laptop screen and half of a tall monitor are
     different numbers of rows, and both are half the screen.

     A flex column with the list as its one growing child, which is what lets
     the list scroll inside the cap rather than pushing past it. */
  max-height: 50vh; display: flex; flex-direction: column;
  position: absolute; z-index: 1200; top: 100%; left: 50%;
  transform: translateX(-50%);
  width: 1060px; max-width: calc(100vw - 24px);
  box-sizing: border-box; padding: 0;
  background: #fff; border: 1px solid #ccc; border-top: 0;
  border-radius: 0 0 4px 4px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
  text-align: left;
  /* Hidden rather than display:none, so it can fade and so the panel has a
     size to measure before it is ever shown. */
  opacity: 0; visibility: hidden; transition: opacity .12s ease;
}
/* Opened by the pointer, and by the keyboard: tabbing onto the item's link
   puts focus inside, which is the only way a keyboard reaches the panel. */
#mbmcpebul_table .jv-has-sub:hover > .jv-submenu,
#mbmcpebul_table .jv-has-sub:focus-within > .jv-submenu { opacity: 1; visibility: visible; }

#mbmcpebul_table .jv-submenu-scroll {
  /* min-height:0 so this can actually shrink inside the flex column: a flex
     item will not go below its content height without it, and the panel would
     grow past 50vh rather than scrolling. */
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain; padding: 6px;
}
/* Show All, at the top of the panel and spanning it. The bar's own item goes
   to the same page, but a panel that opens the instant the pointer touches
   that item leaves nowhere safe to click it, so the way through is here. */
#mbmcpebul_table .jv-submenu-all {
  display: block; margin: 0 -6px; padding: 14px 12px;
  border-bottom: 1px solid #e0e6ec;
  font-size: 14px; font-weight: 700; line-height: 1.4; color: #1b6ca8;
  text-align: left; text-decoration: none;
}
#mbmcpebul_table .jv-submenu-all:hover,
#mbmcpebul_table .jv-submenu-all:focus-visible { background: #eee; color: #0f4a75; }
html[data-theme="dark"] #mbmcpebul_table .jv-submenu-all { color: #6fb6e8; border-bottom-color: #2c3440; }
html[data-theme="dark"] #mbmcpebul_table .jv-submenu-all:hover,
html[data-theme="dark"] #mbmcpebul_table .jv-submenu-all:focus-visible { background: #22303d; color: #bfe0f7; }

/* STICKY, so you always know which empire you are looking at. Scrolling three
   hundred names past a heading that left the screen twenty rows ago is how a
   grouped list stops being grouped. */
#mbmcpebul_table .jv-submenu-group {
  position: sticky; top: -6px; z-index: 1;
  margin: 0 -6px; padding: 7px 12px 6px;
  background: #eef2f6; border-top: 1px solid #e0e6ec; border-bottom: 1px solid #e0e6ec;
  font-size: 12px; font-weight: 700; line-height: 1.3; color: #3c4858;
  text-transform: uppercase; letter-spacing: .04em;
}
#mbmcpebul_table .jv-submenu-group:first-child { border-top: 0; }

#mbmcpebul_table .jv-submenu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 0; padding: 2px 0 6px;
}
#mbmcpebul_table .jv-submenu-grid a {
  display: block; margin: 0; border: 0; border-radius: 0; padding: 14px 12px;
  font-size: 14px; font-weight: 400; line-height: 1.4; color: #333;
  /* One line each, so a row is a row and the three above mean three. The full
     name is on the title attribute for anything that gets cut. */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: left; text-decoration: none;
}
/* The training lessons need wider columns than the product names do: "Traffic
   Method 25 - Document Sharing Sites" is half as long again as a product name,
   and a lesson cut short is a lesson nobody can pick out of a list. Three
   columns instead of four, and they wrap to a second line rather than being
   clipped -- a panel of forty lessons can afford the room, where three hundred
   products could not. */
#mbmcpebul_table .jv-submenu-grid.is-wide { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
#mbmcpebul_table .jv-submenu-grid.is-wide a { white-space: normal; }
#mbmcpebul_table .jv-submenu-grid a:hover,
#mbmcpebul_table .jv-submenu-grid a:focus-visible { background: #eee; color: #333; }

html[data-theme="dark"] #mbmcpebul_table .jv-submenu {
  background: #161c24; border-color: #2c3440; box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
}
html[data-theme="dark"] #mbmcpebul_table .jv-submenu-group {
  background: #202a35; border-color: #2c3440; color: #c2cedb;
}
html[data-theme="dark"] #mbmcpebul_table .jv-submenu-grid a { color: #d6dee8; }
html[data-theme="dark"] #mbmcpebul_table .jv-submenu-grid a:hover,
html[data-theme="dark"] #mbmcpebul_table .jv-submenu-grid a:focus-visible {
  background: #22303d; color: #bfe0f7;
}

/* NO HOVER, NO PANEL. On a touch screen there is nothing to hover with, and a
   panel that opens on the tap that was meant to follow the link is a menu that
   fights the person using it. Tapping Main Products opens Main Products, which
   lists the same products with a search box above them. The bar wraps to two
   lines below 900px anyway, where a panel hanging off one item has nothing
   sensible to hang from. */
@media (hover: none), (max-width: 900px) {
  #mbmcpebul_table .jv-submenu { display: none; }
}
