/*
Theme Name: Auction Flip Formula Journal
Theme URI: https://auctionflipformula.com/blog/
Author: David Tatera LLC
Description: A small, native WordPress block theme for the Auction Flip Formula blog. White, black and green, matching the existing public website.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aff-journal
Tags: blog, block-patterns, full-site-editing, wide-blocks, custom-colors, editor-style, featured-images
*/

/* The same system-font stack as the existing AFF site: no font download. */
html{scroll-behavior:smooth;scroll-padding-top:2rem}
body{margin:0;text-rendering:optimizeLegibility}
*{box-sizing:border-box}
img{max-width:100%;height:auto}
a{text-underline-offset:.18em;text-decoration-thickness:.08em}
a:hover{text-decoration-thickness:.13em}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #117a41;outline-offset:4px}
.wp-site-blocks{padding:0}
.wp-site-blocks>header,.wp-site-blocks>footer,.wp-site-blocks>main{margin-block-start:0}
.aff-site-header{background:#fff;border-bottom:1px solid #e1e8e4;padding:0 24px}
.aff-header-inner{min-height:80px;gap:24px!important}
.aff-brand{flex:none}
.aff-brand img{display:block;width:145px;height:auto}
.aff-site-header .wp-block-navigation{font-size:.9375rem;font-weight:700;gap:30px}
.aff-site-header .wp-block-navigation a{text-decoration:none}
.aff-site-header .wp-block-navigation a:hover{color:#117a41}
.aff-site-header .wp-block-navigation__responsive-container.is-menu-open{padding:32px 24px}
.aff-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{align-items:flex-start;gap:24px}
.aff-intro{padding:64px 24px 46px;border-bottom:1px solid #e1e8e4;background:#f7faf8}
.aff-intro h1{max-width:930px;margin:12px 0 20px;font-size:clamp(2.2rem,5.1vw,3.75rem);font-weight:800;letter-spacing:-.045em;line-height:1.08}
.aff-intro .aff-lead{max-width:660px;font-size:1.125rem;line-height:1.65;margin-block:0}
.aff-eyebrow{color:#117a41;font-size:.875rem;font-weight:800;letter-spacing:.095em;text-transform:uppercase}
.aff-intro .aff-eyebrow{margin:0}
.aff-accent{color:#117a41}
.aff-blog-tools{padding:30px 24px 0}
.aff-blog-tools .wp-block-search{max-width:430px;width:100%;margin-left:auto}
.wp-block-search__inside-wrapper{gap:8px;border:none;padding:0}
.wp-block-search__input{min-width:0;border:1px solid #a9b8b0;border-radius:3px;padding:12px;font-size:1rem;line-height:1.4;background:#fff;color:#243345}
.wp-block-search__button{padding:12px 18px;border:none;border-radius:3px;font-size:1rem;font-weight:750;background:#117a41;color:#fff;cursor:pointer}
.aff-posts{padding:34px 24px 64px}
.aff-posts .wp-block-post-template{gap:30px;list-style:none;padding:0;margin:0}
.aff-posts .wp-block-post{min-width:0}
.aff-card{height:100%;border:1px solid #dce7e3;border-bottom:3px solid #37ca37;background:#fff;overflow:hidden}
.aff-card .wp-block-post-featured-image{margin:0;aspect-ratio:16/10;overflow:hidden;background:#f4f8f5}
.aff-card .wp-block-post-featured-image a{display:block;height:100%}
.aff-card .wp-block-post-featured-image img{display:block;width:100%;height:100%;object-fit:cover}
.aff-card-content{padding:24px}
.aff-card .wp-block-post-title{font-size:1.55rem;line-height:1.23;letter-spacing:-.025em;margin:12px 0}
.aff-card .wp-block-post-title a{text-decoration:none}
.aff-card .wp-block-post-title a:hover{text-decoration:underline;color:#117a41}
.aff-card .wp-block-post-date,.aff-card .wp-block-post-terms{font-size:.875rem;line-height:1.5}
.aff-card .wp-block-post-date{color:#53645e}
.aff-card .wp-block-post-terms a{color:#117a41;font-weight:700;text-decoration:none}
.aff-card .wp-block-post-excerpt{font-size:1rem;line-height:1.65}
.aff-card .wp-block-post-excerpt__more-link{display:inline-block;margin-top:4px;color:#117a41;font-weight:800}
.wp-block-query-pagination{gap:20px;margin-top:40px;font-weight:750}
.wp-block-query-pagination-numbers{display:flex;gap:8px;flex-wrap:wrap}
.wp-block-query-pagination .page-numbers{padding:8px 12px;min-width:40px;text-align:center;border:1px solid #dce7e3}
.wp-block-query-pagination .page-numbers.current{background:#082b20;color:#fff;border-color:#082b20}
.aff-article{padding:56px 24px 24px}
.aff-article h1{font-size:clamp(2.15rem,4.4vw,3.4rem);font-weight:800;letter-spacing:-.035em;line-height:1.12;margin:18px 0 24px;text-wrap:balance}
.aff-article .wp-block-post-terms a{color:#117a41;font-size:.875rem;font-weight:750;text-decoration:none}
.aff-byline{font-size:.875rem;color:#53645e;gap:12px!important;margin-bottom:32px!important}
.aff-byline p{margin:0}
.aff-article-image{margin:0 auto 36px;max-width:1120px}
.aff-article-image img{display:block;width:100%;height:auto}
.aff-article .wp-block-post-content{font-size:1.125rem;line-height:1.8;overflow-wrap:break-word}
.aff-article .wp-block-post-content>h2{font-size:clamp(1.6rem,3vw,2.1rem);line-height:1.2;margin-top:2.2em;margin-bottom:.7em}
.aff-article .wp-block-post-content>h3{font-size:1.4rem;line-height:1.3;margin-top:1.8em}
.aff-article .wp-block-post-content li+li{margin-top:.5em}
.aff-article .wp-block-quote{padding:8px 0 8px 24px;border-left:4px solid #37ca37;font-size:1.25rem;font-weight:600;margin-block:32px}
.aff-article figcaption{color:#53645e;font-size:.875rem;line-height:1.5;text-align:left}
.aff-article pre{overflow:auto;max-width:100%;padding:20px;background:#f4f8f5}
.aff-article .wp-block-table{overflow-x:auto}
.aff-article iframe,.aff-article video{max-width:100%}
.aff-article .wp-block-embed__wrapper{max-width:100%}
.aff-article .wp-block-post-terms{line-height:1.7}
.aff-bottom-nav{margin-block:36px 20px!important;gap:24px!important;font-size:1rem;font-weight:700}
.aff-offer{padding:52px 24px;background:#082b20;color:#fff;margin:0}
.aff-offer h2{color:#fff;font-size:clamp(1.8rem,3.4vw,2.5rem);line-height:1.15;letter-spacing:-.025em;margin:0 0 16px}
.aff-offer p{max-width:690px;line-height:1.7}
.aff-offer .aff-eyebrow{color:#8ae58f}
.wp-block-button__link{border-radius:3px;font-weight:800;line-height:1.25;padding:15px 24px;text-decoration:none}
.wp-block-button.is-style-aff-bright .wp-block-button__link{background:#37ca37;color:#082b20;border:1px solid #37ca37}
.wp-block-button.is-style-aff-bright .wp-block-button__link:hover{background:#69dd69}
.wp-block-button.is-style-outline .wp-block-button__link{border:1px solid currentColor;padding:14px 23px}
.aff-site-footer{padding:46px 24px 20px;color:#333;background:#fff;border-top:1px solid #e1e8e4}
.aff-footer-grid{gap:36px!important}
.aff-footer-grid h2{font-size:1.5rem;margin:0 0 14px}
.aff-footer-grid h3{font-size:1rem;margin:0 0 14px}
.aff-footer-grid p{font-size:.9375rem;line-height:1.85}
.aff-site-footer a{color:#333}
.aff-site-footer a:hover{color:#117a41}
.aff-footer-bottom{border-top:1px solid #e1e8e4;margin-top:32px!important;padding-top:20px;gap:20px!important}
.aff-footer-bottom p{font-size:.875rem;margin:0}
.aff-site-footer .wp-block-social-links{gap:14px;margin:0}
.aff-empty{padding:40px 0;max-width:680px}
.aff-empty h2{font-size:2rem;line-height:1.2}
.aff-utility{padding:64px 24px;min-height:45vh}
.aff-utility h1{font-size:clamp(2rem,4vw,3rem);line-height:1.15;letter-spacing:-.03em}
.aff-utility .wp-block-search{max-width:520px;margin-top:30px}
@media(max-width:900px){.aff-posts .wp-block-post-template.is-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.aff-site-header .wp-block-navigation{gap:20px;font-size:.875rem}}
@media(max-width:600px){.aff-header-inner{min-height:70px;flex-wrap:nowrap!important}.aff-brand img{width:130px}.aff-site-header,.aff-intro,.aff-blog-tools,.aff-posts,.aff-article,.aff-offer,.aff-site-footer,.aff-utility{padding-left:20px;padding-right:20px}.aff-intro{padding-top:42px;padding-bottom:34px}.aff-intro h1{font-size:2.4rem}.aff-blog-tools .wp-block-search{max-width:none}.aff-posts{padding-top:26px;padding-bottom:42px}.aff-posts .wp-block-post-template.is-layout-grid{grid-template-columns:minmax(0,1fr)!important}.aff-card-content{padding:22px}.aff-article{padding-top:34px}.aff-article .wp-block-post-content{font-size:1.0625rem;line-height:1.75}.aff-footer-grid{gap:18px!important}.aff-bottom-nav{flex-direction:column;align-items:flex-start!important}.aff-offer{padding-top:36px;padding-bottom:36px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{.aff-site-header,.aff-site-footer,.aff-offer,.aff-bottom-nav{display:none}.aff-article{padding:0}.aff-article .wp-block-post-content{font-size:12pt}a{color:inherit}}

/* Free software offer: a quiet reading companion, with no extra font or image request. */
.aff-article-layout{display:grid;grid-template-columns:minmax(0,740px) minmax(260px,304px);gap:56px;align-items:start;max-width:1120px!important}
.aff-article-layout>.aff-article-copy,.aff-article-layout>.aff-bid-sidebar{min-width:0;margin:0!important}
.aff-article-layout .wp-block-post-content{margin-top:0}
.aff-bid-sidebar{position:sticky;top:28px}
.aff-bid-card{position:relative;padding:28px 24px;background:#f2f7f1;border:1px solid #d0dfd1;border-top:4px solid #117a41;border-radius:16px;color:#123b2e;box-shadow:0 8px 28px #123b2e09;text-align:left}
.aff-bid-card .aff-bid-label{margin:0 0 22px;color:#117a41;font-size:10px;line-height:1.5;font-weight:800;letter-spacing:.12em}
.aff-bid-icon{display:grid;grid-template-columns:repeat(3,8px);gap:5px;width:48px;height:48px;align-content:center;justify-content:center;background:#fff;border:1px solid #c9d8cb;border-radius:11px;margin:0 0 20px!important;box-shadow:0 3px 0 #d6e4d6}
.aff-bid-icon span{width:8px;height:8px;border-radius:2px;background:#117a41}.aff-bid-icon span:last-child{background:#b58b28}
.aff-bid-card h2{font-size:27px;line-height:1.14;letter-spacing:-.035em;margin:0 0 18px;color:#103b2b;font-weight:800}
.aff-bid-card h2 span{color:#117a41}
.aff-bid-card p{font-size:16px;line-height:1.65;margin:0 0 22px}
.aff-bid-card .wp-block-buttons{margin:0}
.aff-bid-card .wp-block-button{width:100%}
.aff-bid-card .wp-block-button__link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:15px 17px;min-height:52px;border-radius:9px;background:#117a41;color:#fff;font-size:16px;font-weight:800;line-height:1.35;text-align:left;border:1px solid #117a41;box-shadow:0 3px 0 #0a532b;transition:background .15s}
.aff-bid-card .wp-block-button__link:hover{background:#0b6132;color:#fff}
.aff-bid-card .aff-bid-note{font-size:12px;line-height:1.5;color:#53665a;margin:16px 0 0}
.aff-bid-inline-form{display:block;width:100%;height:380px;margin:0;border:0;border-radius:10px;background:#fff}
@media(max-width:1000px){.aff-article-layout{display:flex;flex-direction:column;gap:32px}.aff-bid-sidebar{position:static;order:-1;width:100%}.aff-bid-card{padding:24px;display:grid;grid-template-columns:1fr 1fr;column-gap:24px}.aff-bid-card .aff-bid-label{grid-column:1/-1;margin-bottom:14px}.aff-bid-card .aff-bid-icon{display:none}.aff-bid-card h2{grid-column:1;grid-row:2/5;margin:0;align-self:center;font-size:28px}.aff-bid-card p,.aff-bid-card .wp-block-buttons{grid-column:2}.aff-bid-card p{margin-bottom:16px}.aff-bid-card .aff-bid-note{margin-top:12px}}
@media(max-width:540px){.aff-bid-card{display:block;padding:24px}.aff-bid-card h2{font-size:29px;line-height:1.15;margin-bottom:14px}.aff-bid-card h2 br{display:none}.aff-bid-card h2 br:after{content:' '}.aff-bid-card h2 span:before{content:' '}.aff-bid-card p{font-size:16px;margin-bottom:18px}.aff-bid-card .aff-bid-note{font-size:12px;margin:14px 0 0}.aff-bid-card .aff-bid-label{font-size:10px;margin-bottom:14px}}
@media print{.aff-bid-sidebar{display:none}.aff-article-layout{display:block}}
@media(min-width:541px) and (max-width:1000px){.aff-bid-inline-form,.aff-bid-card noscript{grid-column:2;grid-row:2/5}.aff-bid-card .aff-bid-note{grid-column:2;grid-row:5}.aff-bid-card h2{grid-row:2;align-self:end}.aff-bid-card>p:not(.aff-bid-label):not(.aff-bid-note){grid-column:1;grid-row:3;align-self:start;margin-top:14px}}
