/*
Theme Name: BricksFly Blog
Theme URI: https://bricksfly.com/blog
Author: BricksFly
Author URI: https://bricksfly.com
Description: The BricksFly blog theme: Bricks Builder tutorials and GSAP guides with the bricksfly.com header, footer, colours and fonts. Posts are written in WordPress; settings live in Appearance → BricksFly Blog.
Version: 2.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: bricksfly-blog
*/

/*
 * Layout styles: assets/css/app.css. Site header and footer: assets/css/shell.css.
 * BricksFly typography and colour details: assets/css/brand.css.
 * This file holds small WordPress-specific additions.
 */

/* WordPress admin bar should not cover the sticky header. */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* Blocks written in the WordPress editor (new posts) */
.prose .wp-block-image img { border-radius: 1rem; }
.prose .alignwide, .prose .alignfull { max-width: 100%; }
.prose .wp-block-embed iframe { width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Copy-link feedback */
.mkb-copied { border-color: var(--color-primary) !important; color: var(--color-primary) !important; }

/* Compact Black Friday offer in the article sidebar, so the table of contents has room. */
.mk-offer.mk-offer--bf { margin-top: 18px; padding: 16px 16px 14px; border-radius: 14px; }
.mk-offer--bf .mk-offer__toggle { top: 8px; right: 8px; width: 24px; height: 24px; }
.mk-offer--bf .mk-bf__brand { font-size: 15px; gap: 6px; }
.mk-offer--bf .mk-bf__brand svg { width: 18px; height: 18px; }
.mk-offer--bf .mk-bf__kicker { margin-top: 8px; font-size: 9.5px; letter-spacing: 0.12em; }
.mk-offer--bf .mk-bf__big { margin-top: 4px; gap: 6px; }
.mk-offer--bf .mk-bf__big b { font-size: 40px; text-shadow: 2px 2px #ffd53e; }
.mk-offer--bf .mk-bf__upto { font-size: 11px; }
.mk-offer--bf .mk-bf__off { font-size: 12px; padding-bottom: 6px; }
.mk-offer--bf .mk-bf__title { margin-top: 8px; font-size: 14px; line-height: 1.3; }
.mk-offer--bf .mk-bf__chips { margin-top: 10px; gap: 6px; }
.mk-offer--bf .mk-bf__chips span { padding: 5px 8px; font-size: 11px; }
.mk-offer--bf .mk-offer__cta { margin-top: 10px; padding: 9px 12px; font-size: 13.5px; border-radius: 10px; }
.mk-offer--bf .mk-offer__note { margin-top: 6px; font-size: 11px; }
.mk-offer--bf .mk-bf__rows { display: none; }
/* Give the table of contents the space the smaller offer frees up. */
body:has(.mk-offer--bf) .mk-toc-scroll { max-height: max(180px, calc(100vh - 470px)); }
