/* ============================================================================
   SHARED BLOG STYLES

   Every page under this directory used to carry its own inline <style> block:
   18 copies of the same CSS, drifting independently. This file holds the rules
   that were byte-identical on all of them.

   It is linked BEFORE each page's remaining inline block, so a page can still
   override anything here — but if two pages need the same rule, it belongs in
   this file, not pasted into both.
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Inter', -apple-system, sans-serif; color: #111827; background: #fff; line-height: 1.7; }

a { text-decoration: none; color: inherit; }

.nav { background: #2B579A; padding: 16px 0; }

.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; }

.logo img { border-radius: 7px; }

.nav-links { display: flex; gap: 28px; }

.nav-links a { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; transition: color 0.2s; }

.nav-links a:hover { color: #fff; }

.article-header { background: linear-gradient(135deg, #1e3a6e 0%, #2B579A 100%); padding: 60px 0 48px; color: #fff; }

.container { max-width: 780px; margin: 0 auto; padding: 0 24px; }

.breadcrumb { font-size: 13px; opacity: 0.7; margin-bottom: 16px; }

.breadcrumb a { text-decoration: underline; }

.breadcrumb a:hover { opacity: 1; }

.tag { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 20px; background: rgba(255,255,255,0.2); margin-bottom: 16px; }

.article-header h1 { font-size: 38px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }

.article-meta { font-size: 14px; opacity: 0.8; }

.article-body { padding: 48px 0 80px; }

.article-body h2 { font-size: 26px; font-weight: 700; margin: 40px 0 16px; color: #111827; }

.article-body h3 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; color: #1e3a6e; }

.article-body p { font-size: 16px; color: #374151; margin-bottom: 20px; }

.article-body ul, .article-body ol { margin: 0 0 20px 24px; color: #374151; }

.article-body li { margin-bottom: 8px; font-size: 16px; }

.article-body strong { color: #111827; }

.highlight-box { background: #eff6ff; border-left: 4px solid #2B579A; padding: 20px 24px; border-radius: 0 12px 12px 0; margin: 28px 0; }

.highlight-box p { margin-bottom: 0; color: #1e3a6e; }

.highlight-box strong { color: #1e3a6e; }

.cta-box { background: linear-gradient(135deg, #2B579A, #34C759); border-radius: 16px; padding: 36px; text-align: center; color: #fff; margin: 48px 0; }

.cta-box h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: #fff; }

.cta-box p { opacity: 0.9; margin-bottom: 20px; font-size: 15px; color: #fff; }

.cta-btn:hover { transform: translateY(-2px); }

.footer { background: #111827; color: #9ca3af; padding: 48px 0 24px; margin-top: 40px; }

.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }

.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }

.footer-col a { display: block; font-size: 13px; color: #9ca3af; margin-bottom: 8px; }

.footer-col a:hover { color: #fff; }

/* ============================================================================
   ARTICLE HERO IMAGE  (revised 2026-08-27)

   It used to sit ABOVE the headline at 820px wide in a forced 3/2 box, which
   measured 547px tall — 61% of a 900px laptop screen — and pushed the opening
   paragraph to 1059px down, below the fold. People arrive on these pages from
   a search with a tax question; the first thing they saw was a stock photo.

   The forced 3/2 box also cropped every photo: the five source images run
   1.33:1 to 1.90:1 and not one of them is 3:2. No aspect-ratio is set now, so
   each shows whole; at the 560px cap that lands between 295px and 420px tall.

   The image also earns its keep now — it is referenced as the Article schema
   `image` and as each post's og:image, neither of which it was before. It was
   decorative in every sense.
   ========================================================================== */
.article-hero-img {
    display: block;
    /* width:auto + both maxima lets each photo scale down whole: no forced
       aspect-ratio to crop it, and no letterboxing either, because the element
       shrinks to the scaled image. max-height matters because the sources are
       not one shape — the 4:3 one rendered 420px tall at 560 wide, which put
       the opening paragraph back within 14px of the fold on a 900px screen. */
    width: auto;
    max-width: 100%;                  /* fallback if min() is unsupported */
    max-width: min(560px, 100%);
    max-height: 360px;
    height: auto;
    margin: 4px auto 30px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.14);
}

@media (max-width: 860px) {
    .article-hero-img { margin: 0 auto 24px; }
}
