/* ============================================================
   CreatorTax — Article / post template styles
   Ported from _handoff_hub_pages/ui_kits/hub/article.html <style>
   (source of truth). Building blocks: reading-progress bar, category
   pill, byline, deduction cards, can't-claim box, checklist, callout,
   CTA block, author bio, related cards. Plus a restyle of the legacy
   article classes so every existing article adopts the light reader look.
   Nav + footer are the site's existing ones (kept).
   ============================================================ */
:root {
  --font-sans:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-extrabold: 800;
  --radius-md: 14px; --radius-lg: 18px; --radius-xl: 24px; --radius-pill: 100px;
  --shadow-card: 0 2px 6px rgba(27,20,16,0.05); --shadow-raised: 0 8px 24px rgba(27,20,16,0.08);
}

body { background: var(--ct-off-white); color: var(--ct-black); line-height: 1.7; -webkit-font-smoothing: antialiased; }

/* reading progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--ct-orange); z-index: 2000; transition: width .1s linear; }

/* article shell (new template) */
.article { max-width: 740px; margin: 0 auto; padding: 0 2rem; }
.article-top { padding: 3.5rem 2rem 0; max-width: 740px; margin: 0 auto; }
.crumb { display: inline-flex; align-items: center; gap: .5rem; color: var(--ct-muted); font-size: .85rem; font-weight: 600; text-decoration: none; margin-bottom: 1.8rem; }
.crumb:hover { color: var(--ct-orange-deep); }

.cat-pill { display: inline-block; white-space: nowrap; padding: .4rem .9rem; border-radius: 100px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; }
.cat-tips { background: var(--ct-orange); }
.cat-talk { background: var(--ct-violet); }
.cat-start { background: var(--ct-mint); }
.cat-story { background: var(--ct-pink); }

.article-top h1.title, .article h1.title { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1.08; letter-spacing: -2px; margin: 1.1rem 0 1.2rem; color: var(--ct-black); }

.byline { display: flex; align-items: center; gap: .9rem; padding-bottom: 2rem; border-bottom: 1px solid var(--ct-line); }
.byline .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--ct-black); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.byline img.avatar, .bio img.avatar { background: none; object-fit: contain; }

/* secondary "book a call" button next to the primary CTA */
.book-call.book-call { display: inline-block; background: #fff !important; color: var(--ct-black) !important; padding: 1rem 2rem; border-radius: 100px; font-weight: 700; text-decoration: none; margin: .6rem 0 0 .6rem; transition: transform .2s; }
.book-call.book-call:hover { transform: translateY(-2px); }
@media (max-width: 600px) { .book-call { margin-left: 0; } }
.byline .who { font-weight: 700; font-size: .95rem; }
.byline .meta { color: var(--ct-muted); font-size: .85rem; font-weight: 500; }

.hero-img { max-width: 980px; margin: 2.5rem auto; padding: 0 2rem; }
.hero-img img { width: 100%; height: 440px; object-fit: cover; display: block; border-radius: var(--radius-xl); }

/* body type */
.body p { font-size: 1.18rem; line-height: 1.78; color: #3A332E; margin-bottom: 1.5rem; }
.body p a { color: var(--ct-orange-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.body h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.85rem; letter-spacing: -0.8px; line-height: 1.2; margin: 3rem 0 1.2rem; padding-top: .4rem; color: var(--ct-black); }
.body h2 .tick { color: var(--ct-orange); margin-right: .5rem; }
.lead { font-size: 1.35rem !important; line-height: 1.6 !important; color: var(--ct-black) !important; font-weight: 500; }

/* deduction cards */
.deductions { display: grid; gap: 1rem; margin: 2rem 0; }
.ded { display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--ct-line); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; transition: border-color .25s, transform .25s; }
.ded:hover { border-color: var(--ct-orange); transform: translateY(-2px); }
.ded .num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ct-orange-soft); color: var(--ct-orange-deep); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; }
.ded h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.3px; margin-bottom: .35rem; }
.ded p { font-size: 1.02rem !important; line-height: 1.6 !important; color: var(--ct-dark-gray) !important; margin: 0 !important; }

/* cant-claim warning box */
.cantclaim { background: #FFF1F1; border: 1px solid #F7D4D4; border-radius: var(--radius-xl); padding: 2rem 2.2rem; margin: 2rem 0; }
.cantclaim h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; font-weight: 800; color: #C0322B; margin-bottom: 1rem; letter-spacing: -0.3px; }
.cantclaim ul { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.cantclaim li { display: flex; gap: .8rem; font-size: 1.05rem; line-height: 1.55; color: #5A4A48; }
.cantclaim li .x { color: #D8453B; font-weight: 800; flex-shrink: 0; }

/* checklist */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0 1.5rem; }
.checklist li { display: flex; gap: .9rem; font-size: 1.1rem; line-height: 1.6; color: #3A332E; }
.checklist li .ck { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--ct-mint-soft); color: var(--ct-mint-deep); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; margin-top: 2px; }

/* callout */
.callout { background: var(--ct-black); color: #fff; border-radius: var(--radius-xl); padding: 2rem 2.2rem; margin: 2.5rem 0; }
.callout .k { font-size: .72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--ct-orange); margin-bottom: .6rem; }
.callout p { font-size: 1.15rem !important; line-height: 1.6 !important; color: var(--ct-light-gray) !important; margin: 0 !important; }

/* inline CTA */
.cta-block { background: var(--ct-gradient-sunset, linear-gradient(120deg,#FFC93C,#FF6B35 45%,#FF3D8B)); border-radius: var(--radius-xl); padding: 3rem 2.5rem; text-align: center; margin: 3.5rem 0 1rem; }
.cta-block h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: #fff; letter-spacing: -0.8px; margin-bottom: .7rem; }
.cta-block p { font-size: 1.1rem !important; color: #fff !important; opacity: .95; margin-bottom: 1.6rem !important; }
.cta-block .btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--ct-black); color: #fff; padding: 1rem 2rem; border-radius: 100px; font-weight: 700; text-decoration: none; transition: transform .2s; }
.cta-block .btn:hover { transform: translateY(-2px); }

/* author bio */
.bio { display: flex; gap: 1.2rem; align-items: flex-start; background: #fff; border: 1px solid var(--ct-line); border-radius: var(--radius-xl); padding: 1.8rem; margin: 3rem 0; }
.bio .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--ct-orange); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; flex-shrink: 0; }
.bio .n { font-weight: 800; font-size: 1.05rem; }
.bio .r { color: var(--ct-orange-deep); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: .2rem 0 .6rem; }
.bio p { font-size: 1rem !important; line-height: 1.6 !important; color: var(--ct-dark-gray) !important; margin: 0 !important; }

/* related */
.related { max-width: 1080px; margin: 0 auto; padding: 4rem 2rem 6rem; }
.related h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.8px; margin-bottom: 2rem; text-align: center; }
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 820px; margin: 0 auto; }
.rcard { background: #fff; border: 1px solid var(--ct-line); border-radius: var(--radius-xl); padding: 1.8rem; text-decoration: none; color: inherit; transition: transform .25s, border-color .25s, box-shadow .25s; display: flex; flex-direction: column; gap: .8rem; }
.rcard:hover { transform: translateY(-4px); border-color: var(--ct-orange); box-shadow: var(--shadow-raised); }
.rcard h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.4px; line-height: 1.25; }
.rcard .more { color: var(--ct-orange-deep); font-weight: 700; font-size: .9rem; margin-top: auto; }

/* ============================================================
   Legacy-class restyle — upgrades every existing article that
   hasn't been hand-converted, to the same light reader look.
   ============================================================ */
.article-header { background: var(--ct-off-white) !important; text-align: left !important; padding: 3.5rem 2rem 0 !important; max-width: 784px; margin: 0 auto; border: none !important; }
.article-header-inner { max-width: 740px; margin: 0 !important; }
.article-header .tag-pill { background: var(--ct-orange) !important; color: #fff !important; border-radius: 100px; }
.article-header h1 { color: var(--ct-black) !important; font-family: var(--font-display); font-weight: 800 !important; font-size: 3rem !important; line-height: 1.08 !important; letter-spacing: -2px !important; text-align: left; }
.article-meta { color: var(--ct-muted) !important; }
.article-wrapper { max-width: 740px !important; margin: 1.5rem auto 0 !important; padding: 0 2rem !important; }
.article-card { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; }
.article-card > img, .article-card img { border-radius: var(--radius-xl); }
.article-card h2 { font-family: var(--font-display); font-weight: 800 !important; font-size: 1.85rem !important; letter-spacing: -0.8px !important; line-height: 1.2 !important; margin: 3rem 0 1.2rem !important; color: var(--ct-black) !important; }
.article-card h3 { font-weight: 800 !important; letter-spacing: -0.3px; }
.article-card p { font-size: 1.18rem !important; line-height: 1.78 !important; color: #3A332E !important; }
.article-card ul, .article-card ol { font-size: 1.12rem; line-height: 1.7; color: #3A332E; margin: 1rem 0 1.5rem 1.2rem; }
.article-card li { margin-bottom: .6rem; }
/* legacy deduction list -> numbered orange deduction cards (.ded look) */
.deduction-list { display: grid; gap: 1rem; margin: 2rem 0; counter-reset: ded; }
.deduction-item { background: #fff !important; border: 1px solid var(--ct-line) !important; border-radius: var(--radius-lg) !important; padding: 1.5rem 1.6rem !important; transition: border-color .25s, transform .25s !important; display: grid !important; grid-template-columns: 40px 1fr; column-gap: 1.1rem; row-gap: .35rem; align-items: start; counter-increment: ded; }
.deduction-item:hover { border-color: var(--ct-orange) !important; transform: translateY(-2px) !important; }
.deduction-item::before { content: counter(ded); grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 40px; height: 40px; border-radius: 50%; background: var(--ct-orange-soft); color: var(--ct-orange-deep); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; }
.deduction-item .deduction-title { grid-column: 2; font-weight: 800 !important; font-size: 1.12rem !important; letter-spacing: -0.3px; margin: 0 !important; }
.deduction-item .deduction-desc { grid-column: 2; color: var(--ct-dark-gray) !important; font-size: 1.02rem !important; line-height: 1.6 !important; margin: 0 !important; }

/* legacy "can't claim" list -> red warning box */
.no-claim-list { list-style: none !important; background: #FFF1F1 !important; border: 1px solid #F7D4D4 !important; border-radius: var(--radius-xl) !important; padding: 1.6rem 2rem !important; margin: 2rem 0 !important; display: flex; flex-direction: column; gap: .8rem; }
.no-claim-list li { padding: 0 0 0 1.8rem !important; position: relative; border: none !important; color: #5A4A48 !important; font-size: 1.05rem !important; line-height: 1.55 !important; }
.no-claim-list li::before { content: '✕'; position: absolute; left: 0; top: 0; color: #D8453B; font-weight: 800; }

/* legacy tips list -> green checklist */
.tips-list { list-style: none !important; display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0 !important; padding: 0 !important; }
.tips-list li { padding: 0 0 0 2.4rem !important; position: relative; border: none !important; color: #3A332E !important; font-size: 1.1rem !important; line-height: 1.6 !important; }
.tips-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--ct-mint-soft); color: var(--ct-mint-deep); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; }

/* legacy callout-box -> dark CreatorTax-tip callout */
.callout-box { background: var(--ct-black) !important; border: none !important; border-radius: var(--radius-xl) !important; padding: 2rem 2.2rem !important; margin: 2.5rem 0 !important; }
.callout-box::before { content: 'CreatorTax tip'; display: block; font-size: .72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--ct-orange); margin-bottom: .6rem; }
.callout-box p { color: var(--ct-light-gray) !important; font-size: 1.15rem !important; line-height: 1.6 !important; font-weight: 500 !important; margin: 0 !important; }
/* legacy CTA -> sunset block */
.article-cta { background: linear-gradient(120deg,#FFC93C,#FF6B35 45%,#FF3D8B) !important; border-radius: var(--radius-xl) !important; padding: 3rem 2.5rem !important; text-align: center !important; border: none !important; margin: 3.5rem 0 1rem !important; }
.article-cta h2, .article-cta h3, .article-cta p { color: #fff !important; }
.article-cta-btn { background: var(--ct-black) !important; color: #fff !important; border-radius: 100px !important; }

@media (max-width: 820px) {
  .article-top h1.title, .article h1.title, .article-header h1 { font-size: 2.1rem !important; }
  .hero-img img { height: 240px; }
  .rgrid { grid-template-columns: 1fr; }
  .body h2, .article-card h2 { font-size: 1.5rem !important; }
}
