/*
Theme Name: Flight Ready Blog
Theme URI: https://flightready.co/blog/
Author: Flight Ready
Description: Runs flightready.co/blog/ with the same header, footer, fonts, colors and chart background as the rest of the site. The main look comes from the site's own /css/styles.css, so design changes there apply to the blog too.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: flightready
*/

/* Only WordPress-specific additions live here. Everything else is /css/styles.css. */

/* Featured image */
.post__hero-img { margin: 0 0 2rem; }
.post__hero-img img { display: block; width: 100%; height: auto; border-radius: var(--radius, 6px); }

/* Images, captions and blocks inside a post */
.post__body img { max-width: 100%; height: auto; border-radius: var(--radius, 6px); }
.post__body figure { margin: 2rem 0; }
.post__body figcaption, .post__body .wp-caption-text { margin-top: .5rem; font-size: .9rem; color: var(--gray); text-align: center; }
.post__body .wp-caption { max-width: 100%; }
.post__body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.post__body .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 50%; }
.post__body .alignright { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 50%; }
@media (max-width: 620px) { .post__body .alignleft, .post__body .alignright { float: none; margin: 1.5rem 0; max-width: 100%; } }
.post__body h3 { font-size: 1.45rem; margin: 1.8rem 0 .6rem; color: var(--white); }
.post__body ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.post__body ol li::marker { color: var(--sky); font-weight: 600; }
.post__body blockquote { margin: 2rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 3px solid var(--sky); color: var(--white); font-size: 1.2rem; font-style: italic; }
.post__body blockquote p:last-child { margin-bottom: 0; }
.post__body pre, .post__body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.post__body pre { overflow-x: auto; padding: 1rem 1.2rem; background: rgba(0, 0, 0, .25); border-radius: var(--radius, 6px); }
.post__body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 1rem; display: block; overflow-x: auto; }
.post__body th, .post__body td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: left; }
.post__body th { font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; color: var(--gray); }
.post__body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.post__body .wp-block-button__link { display: inline-block; padding: .8rem 1.4rem; border-radius: var(--radius, 6px); background: var(--sky); color: var(--navy); font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.post__body::after { content: ""; display: block; clear: both; }

/* Tags under a post */
.post__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.post__tags a { font-size: .85rem; color: var(--gray); text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: .2rem .8rem; }
.post__tags a:hover { color: var(--sky); border-color: var(--sky); }

/* Category filter and pagination on the blog list */
.blog-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; }
.blog-cats a { font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--gray); border: 1px solid var(--line); border-radius: 99px; padding: .35rem .95rem; }
.blog-cats a:hover, .blog-cats a[aria-current="page"] { color: var(--white); border-color: var(--sky); background: rgba(64, 181, 228, .15); }
.blog-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 2.5rem; }
.blog-pages .page-numbers { min-width: 2.6rem; padding: .5rem .8rem; text-align: center; text-decoration: none; color: var(--gray); border: 1px solid var(--line); border-radius: var(--radius, 6px); font-family: var(--font-display); font-weight: 600; }
.blog-pages .page-numbers.current, .blog-pages a.page-numbers:hover { color: var(--navy); background: var(--sky); border-color: var(--sky); }
.blog-empty { color: var(--text-muted); }

/* Search form on the 404 and search pages */
.blog-search { display: flex; gap: .6rem; max-width: 520px; margin-top: 1.5rem; }
.blog-search input { flex: 1; min-width: 0; padding: .75rem .9rem; border-radius: var(--radius, 6px); border: 1px solid var(--line); background: rgba(0, 0, 0, .2); color: var(--white); font: inherit; }

/* Keep the WordPress admin bar from covering the fixed site header */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }

/* Light reading page: posts sit on white with dark text, framed by the navy header and footer */
.post--light { color: var(--navy); padding-bottom: clamp(3rem, 6vw, 5rem); }
.post--light h1, .post--light h2, .post--light h3, .post--light h4 { color: var(--navy); }
.post--light .post__back, .post--light .post__meta { color: #5B6670; }
.post--light .post__back:hover { color: var(--blue); }
.post--light .post__meta { border-bottom-color: #DCE3E8; }
.post--light .post__body { color: #2B3A45; }
.post--light .post__body h2, .post--light .post__body h3, .post--light .post__body strong, .post--light .post__body blockquote { color: var(--navy); }
.post--light .post__body a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post--light .post__body a:hover { color: var(--cobalt); }
.post--light .post__body li::marker, .post--light .post__body ol li::marker { color: var(--blue); }
.post--light .post__body blockquote { border-left-color: var(--blue); }
.post--light .post__body figcaption, .post--light .post__body .wp-caption-text, .post--light .post__body th { color: #5B6670; }
.post--light .post__body th, .post--light .post__body td, .post--light .post__body hr { border-color: #DCE3E8; }
.post--light .post__body pre { background: #F1F4F6; }
.post--light .post__body code { background: #F1F4F6; border-radius: 4px; padding: .1em .3em; }
.post--light .post__body pre code { background: none; padding: 0; }
.post--light .post__body .wp-block-button__link { background: var(--navy); color: var(--white); }
.post--light .post__tags a { color: #5B6670; border-color: #DCE3E8; }
.post--light .post__tags a:hover { color: var(--blue); border-color: var(--blue); }
.post--light .post-cta h2, .post--light .post-cta .btn--ghost { color: var(--white); }
.post--light .post-share > span { color: #5B6670; }
.post--light .post-share .social a { color: var(--navy); border-color: #DCE3E8; }
/* Solid menu bar on posts so it never fades over the white page */
body.single .nav { background: var(--navy); box-shadow: 0 1px 0 var(--line); }
