/* What Pro's scripts and Cornerstone's base styles did for the header and footer markup in partials/,
   written for cirrus7. Pro's breakpoints: xs below 481px, sm to 767px, md to 979px, lg to 1199px, xl above. */

@media (max-width: 480px) { .x-hide-xs { display: none !important; } }
@media (min-width: 481px) and (max-width: 767px) { .x-hide-sm { display: none !important; } }
@media (min-width: 768px) and (max-width: 979px) { .x-hide-md { display: none !important; } }
@media (min-width: 980px) and (max-width: 1199px) { .x-hide-lg { display: none !important; } }
@media (min-width: 1200px) { .x-hide-xl { display: none !important; } }

/* The mobile menu panel, opened by assets/js/header.js. */
.x-off-canvas { position: fixed; inset: 0; z-index: 99999; visibility: hidden; pointer-events: none; }
.x-off-canvas.x-active { visibility: visible; pointer-events: auto; }
.x-off-canvas .x-off-canvas-bg { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; }
.x-off-canvas.x-active .x-off-canvas-bg { opacity: 1; }
.x-off-canvas .x-off-canvas-content { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; overflow-y: auto; transform: translateX(100%); transition: transform 0.3s; }
.x-off-canvas.x-active .x-off-canvas-content { transform: none; }
.x-off-canvas .x-off-canvas-close { position: absolute; top: 0; right: 0; z-index: 2; border: 0; background: none; cursor: pointer; }
.x-off-canvas .x-off-canvas-content { z-index: 1; }
.x-off-canvas .x-menu { list-style: none; margin: 0; padding: 0; }

/* The sticky header bar, fixed by assets/js/header.js. */
.x-bar-fixed { position: fixed !important; top: 0; left: 0; right: 0; width: 100%; }

/* Converted content: text that was loose in a <div> sits in a paragraph block with the class c7-text
   (theme-upgrade/convert-content.php). It keeps the <div>'s own text layout, not the site's paragraph
   rules. */
.entry-content p.wp-block-paragraph.c7-text,
.entry-content p.c7-text { font: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; margin: 0; }

/* Converted content: Cornerstone's section height is the group block's minimum height, the only height a
   group block has. main.css shortens the first section of the company page (988, 1631) on small screens
   by its height, so the same rule applies to the minimum height. */
@media screen and (max-width: 979px) {
    .page-id-988 #x-section-1, .page-id-1631 #x-section-1 { min-height: 210px !important; }
}

/* A product's Sketchfab models: the block template's rendering lets Borlabs block them until consent,
   which Pro's output bypassed. The models after the first carry the class hide, which Borlabs's
   placeholders lose, so only the first placeholder shows. */
.sketchfab-api > .brlbs-cmpnt-content-blocker ~ .brlbs-cmpnt-content-blocker { display: none; }

/* The copy-link button below a post (blog-post.php): a short sign that the link was copied. */
button.c7-copy-link { cursor: pointer; transition: opacity .2s; }
button.c7-copy-link.c7-copied { opacity: .4; }
.c7-copy-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Phones: cirrus7.js hides the header bar and its spacer once the page scrolls and shows them at the top
   again, so the content jumped by the bar's 55px both ways (a layout shift of about 0.1 on every page,
   inherited from production). The bar stays fixed and its spacer keeps the room; hiding the fixed bar
   then moves nothing. 500px is cirrus7.js's breakpoint for this. The selectors outrank main.css, which
   sets the spacer to height 0 on phones. Not on the incus page, whose header lies over its hero image
   without a spacer, nor under the admin toolbar of signed-in users. */
@media (max-width: 500px) {
    html body:not(.admin-bar):not(.page-template-cirrus7-incus) .x-masthead .x-bar-space.x-bar-space-top.c7-main-menu-bar.x-bar-space-h { display: block !important; height: 55px !important; }
    html body:not(.admin-bar):not(.page-template-cirrus7-incus) .x-masthead .x-bar.x-bar-top.x-bar-is-sticky.c7-main-menu-bar { position: fixed !important; top: 0 !important; left: 0; right: 0; width: 100%; }
}

/* Accessibility basics (audit of 2026-11-10): the skip link appears on keyboard focus only; c7-sr-only
   gives screen readers a page heading where the page shows none. */
.c7-skip-link { position: absolute; left: -9999px; top: 0; z-index: 100000; }
.c7-skip-link:focus { left: 8px; top: 8px; padding: 8px 16px; background: #fff; color: #2453a2; font-weight: 500; box-shadow: 0 2px 6px rgba(0,0,0,.24); outline: 2px solid #2453a2; }
#c7-content:focus { outline: none; }
.c7-sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Blog categories in two columns (blog-archive.php, main.css's #x-iso-container), one on phones and small
   tablets as Pro's stack did below 768px; this theme's stack.css has that rule only for "> *", which
   main.css's ".cols-2 > .hentry" outranks. */
@media (max-width: 767px) {
    .category .x-iso-container[class*="cols-"] > .hentry { width: 100%; }
}
/* The posts' typography in that container, Pro's rules: titles at twice the text size (main.css's
   h2.entry-title sets 25, 20 and 16px), the card padding relative to its width. */
.x-iso-container-posts.cols-2 .entry-title { font-size: 200%; }
.x-iso-container-posts.cols-2 .entry-wrap { padding: 6.75% 7.25%; }
