/* ichra.digital blog — Alan palette */
:root{
  --cream:#FDF6F0;
  --paper:#FFFBF5;
  --cream-warm:#F9EDDF;
  --coral:#F4A69A;
  --coral-deep:#E27560;
  --coral-soft:#FBD8CE;
  --plum:#1A1523;
  --plum-soft:#3D2D3B;
  --mint:#B8E6D0;
  --mint-deep:#7FC6A8;
  --butter:#F6DCA0;
  --muted:#76616D;
  --muted-light:#A89CA4;
  --line:#ECDFD2;
  --line-strong:#DCCCBB;
  --max:1280px;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-font-smoothing:antialiased}
html{scroll-behavior:smooth;background:var(--cream)}
body{font-family:"Inter",system-ui,sans-serif;font-size:18px;line-height:1.65;color:var(--plum);background:var(--cream)}
h1,h2,h3,h4{font-family:"Fraunces",Georgia,serif;font-weight:500;letter-spacing:-0.025em;line-height:1.1;color:var(--plum)}
.serif{font-family:"Fraunces",serif;font-style:italic;font-weight:500;color:var(--coral-deep)}
.mono{font-family:"Inter",sans-serif;font-size:0.78rem;letter-spacing:0.1em;text-transform:uppercase;font-weight:600;color:var(--coral-deep)}
p{margin:0}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:0 auto;padding:0 32px}
@media(max-width:700px){.container{padding:0 20px}}

/* HEADER */
.site-header{position:sticky;top:0;z-index:100;padding:18px 0;backdrop-filter:blur(14px);background:rgba(253,246,240,0.88);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand-mark{font-family:"Fraunces",serif;font-size:1.35rem;font-weight:600;letter-spacing:-0.025em;color:var(--plum);display:flex;align-items:center;gap:1px}
.brand-mark .dot{display:inline-block;width:0.5em;height:0.5em;border-radius:50%;background:var(--coral-deep);margin:0 4px;transform:translateY(-0.15em)}
.nav{display:flex;gap:2px;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:100px;padding:5px}
.nav a{font-size:0.9rem;color:var(--plum);font-weight:500;padding:8px 16px;border-radius:100px;transition:all .2s}
.nav a:hover{color:var(--coral-deep);background:var(--coral-soft)}
.nav a.active{background:var(--plum);color:var(--cream)}
.header-right{display:flex;gap:12px;align-items:center}
.lang-toggle{font-size:0.78rem;font-weight:600;letter-spacing:0.1em;background:transparent;border:1px solid var(--plum);padding:8px 12px;cursor:pointer;color:var(--plum);border-radius:100px;transition:all .15s}
.lang-toggle:hover{background:var(--plum);color:var(--cream)}
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;font-weight:600;font-size:0.94rem;cursor:pointer;border:none;transition:all .2s ease;border-radius:100px;white-space:nowrap;font-family:"Inter",sans-serif}
.btn-primary{background:var(--plum);color:var(--cream)}
.btn-primary:hover{background:var(--coral-deep)}
.btn-coral{background:var(--coral-deep);color:var(--cream)}
.btn-coral:hover{background:var(--plum)}
.btn-ghost{background:var(--paper);color:var(--plum);border:1px solid var(--line-strong)}
.btn-ghost:hover{background:var(--plum);color:var(--cream);border-color:var(--plum)}
.btn-lg{padding:14px 22px;font-size:1rem}
.arrow::after{content:"→";display:inline-block;transition:transform .2s;margin-left:2px}
.btn:hover .arrow::after,a:hover .arrow::after{transform:translateX(3px)}
@media(max-width:1050px){.nav{display:none}}

/* BLOG INDEX */
.blog-hero{padding:64px 0 0;border-bottom:1px solid var(--line)}
.blog-hero-inner{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;padding-bottom:64px}
@media(max-width:900px){.blog-hero-inner{grid-template-columns:1fr;gap:36px}}
.blog-hero .mono{margin-bottom:16px;display:inline-block}
.blog-hero h1{font-size:clamp(2.4rem,4.4vw,4rem);letter-spacing:-0.03em;line-height:1.05;max-width:16ch;margin-bottom:20px}
.blog-hero h1 em{font-family:"Fraunces",serif;font-style:italic;color:var(--coral-deep);font-weight:500}
.blog-hero p{color:var(--muted);font-size:1.12rem;max-width:52ch;line-height:1.55}
.blog-hero-image{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:20px;box-shadow:0 20px 60px rgba(26,21,35,0.1)}

.blog-filters{padding:24px 0;background:var(--paper);border-bottom:1px solid var(--line);position:sticky;top:64px;z-index:50;backdrop-filter:blur(12px);background:rgba(255,251,245,0.92)}
.blog-filters-inner{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.blog-filters .mono{color:var(--muted);margin-right:12px}
.filter-chip{padding:7px 14px;border:1px solid var(--line-strong);background:var(--cream);color:var(--plum);border-radius:100px;font-size:0.86rem;cursor:pointer;font-family:"Inter",sans-serif;font-weight:500;transition:all .15s}
.filter-chip:hover{border-color:var(--coral-deep);color:var(--coral-deep)}
.filter-chip.active{background:var(--plum);color:var(--cream);border-color:var(--plum)}

.blog-list{padding:64px 0 90px}
.blog-list-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
@media(max-width:900px){.blog-list-grid{grid-template-columns:1fr}}
.post-card{background:var(--paper);border:1px solid var(--line);border-radius:20px;display:flex;flex-direction:column;transition:all .25s ease;overflow:hidden}
.post-card:hover{border-color:var(--coral);transform:translateY(-3px);box-shadow:0 20px 40px rgba(26,21,35,0.08)}
.post-card-img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block;border-bottom:1px solid var(--line)}
.post-card-body{padding:28px 30px 30px;display:flex;flex-direction:column;gap:14px;flex:1}
.post-card.featured{grid-column:1/-1;background:var(--coral-soft);border-color:var(--coral);flex-direction:row;align-items:stretch}
.post-card.featured .post-card-img{aspect-ratio:auto;height:auto;width:50%;border-bottom:none;border-right:1px solid rgba(226,117,96,0.25);min-height:340px}
.post-card.featured .post-card-body{padding:46px 42px;width:50%;justify-content:space-between}
.post-card.featured h2 em{font-family:"Fraunces",serif;font-style:italic;color:var(--coral-deep);font-weight:500}
@media(max-width:900px){.post-card.featured{flex-direction:column}.post-card.featured .post-card-img{width:100%;aspect-ratio:16/10;border-right:none;min-height:unset}.post-card.featured .post-card-body{width:100%;padding:32px 28px}}

.post-card .meta{display:flex;justify-content:space-between;align-items:center;gap:12px}
.post-card .meta .mono{color:var(--muted)}
.post-card.featured .meta .mono{color:var(--coral-deep)}
.post-card h2{font-size:clamp(1.6rem,2.5vw,2.3rem);line-height:1.08;letter-spacing:-0.025em}
.post-card h3{font-size:1.35rem;line-height:1.2;letter-spacing:-0.02em;margin-top:auto;font-family:"Fraunces",serif;font-weight:500}
.post-card h3 em{font-family:"Fraunces",serif;font-style:italic;color:var(--coral-deep);font-weight:500}
.post-card p{color:var(--muted);font-size:0.98rem;line-height:1.55}
.post-card .read-link{margin-top:auto;color:var(--plum);font-weight:600;font-size:0.94rem;border-bottom:1px solid var(--plum);padding-bottom:2px;align-self:flex-start;transition:all .15s}
.post-card.featured .read-link{color:var(--plum);border-bottom-color:var(--plum)}
.post-card .read-link:hover{color:var(--coral-deep);border-bottom-color:var(--coral-deep)}

.cluster-tag{display:inline-block;padding:4px 11px;border-radius:100px;font-family:"Inter",sans-serif;font-size:0.7rem;letter-spacing:0.08em;font-weight:700;text-transform:uppercase}
.tag-regulatory{background:var(--coral-soft);color:var(--coral-deep)}
.tag-employer{background:var(--cream-warm);color:var(--plum)}
.tag-employee{background:var(--mint);color:#1E4A35}
.tag-state,.tag-industry{background:var(--butter);color:#5A4419}
.tag-review{background:var(--coral-soft);color:var(--coral-deep)}

/* UPCOMING SCHEDULE */
.schedule{padding:80px 0;background:var(--cream-warm);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.schedule-head{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:end;margin-bottom:36px}
@media(max-width:900px){.schedule-head{grid-template-columns:1fr;gap:20px}}
.schedule-head .mono{margin-bottom:14px;display:inline-block}
.schedule-head h2{font-size:clamp(1.8rem,3vw,2.6rem);max-width:14ch;line-height:1.1;font-weight:500}
.schedule-head h2 em{font-family:"Fraunces",serif;font-style:italic;color:var(--coral-deep);font-weight:500}
.schedule-head p{color:var(--muted);font-size:1.04rem;max-width:46ch;justify-self:end;line-height:1.55}
@media(max-width:900px){.schedule-head p{justify-self:start}}
.schedule-list{background:var(--paper);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.schedule-row{display:grid;grid-template-columns:100px 110px 1fr 140px;gap:24px;align-items:center;padding:18px 26px;border-bottom:1px solid var(--line);transition:background .15s}
.schedule-row:last-child{border-bottom:none}
.schedule-row:hover{background:var(--cream)}
.schedule-date{font-family:"Inter",sans-serif;font-size:0.82rem;color:var(--muted);letter-spacing:0.06em;font-weight:600;text-transform:uppercase}
.schedule-tag{display:inline-block;padding:3px 10px;border-radius:100px;font-size:0.66rem;letter-spacing:0.08em;font-weight:700;text-transform:uppercase;width:fit-content}
.schedule-title{font-size:1.04rem;color:var(--plum);font-weight:500;line-height:1.3}
.schedule-title em{font-family:"Fraunces",serif;font-style:italic;color:var(--coral-deep);font-weight:500}
.schedule-notify{text-align:right}
.schedule-notify a{font-size:0.86rem;color:var(--coral-deep);font-weight:600;border-bottom:1px solid var(--coral-deep);padding-bottom:1px}
.schedule-notify a:hover{color:var(--plum);border-bottom-color:var(--plum)}
@media(max-width:900px){.schedule-row{grid-template-columns:1fr;gap:8px;padding:16px 18px}.schedule-notify{text-align:left}}

/* POST HEADER */
.post-hero-image{width:100%;aspect-ratio:21/9;object-fit:cover;border-bottom:1px solid var(--line)}
.post-header{padding:64px 0 44px;border-bottom:1px solid var(--line)}
.post-crumbs{display:flex;gap:10px;align-items:center;font-size:0.88rem;color:var(--muted);margin-bottom:24px}
.post-crumbs a{color:var(--plum);transition:all .15s}
.post-crumbs a:hover{color:var(--coral-deep)}
.post-crumbs .sep{color:var(--line-strong)}
.post-meta-top{display:flex;gap:14px;align-items:center;margin-bottom:22px;flex-wrap:wrap}
.post-meta-top .mono{color:var(--muted)}
.post-header h1{font-size:clamp(2.2rem,4.4vw,3.8rem);letter-spacing:-0.03em;line-height:1.05;max-width:22ch;margin-bottom:26px}
.post-header h1 em{font-family:"Fraunces",serif;font-style:italic;color:var(--coral-deep);font-weight:500}
.post-header .dek{font-size:1.2rem;color:var(--muted);line-height:1.5;max-width:56ch;margin-bottom:32px}
.post-byline{display:flex;gap:12px;align-items:center;padding-top:20px;border-top:1px solid var(--line);font-size:0.94rem;color:var(--muted)}
.post-byline .avatar{width:40px;height:40px;border-radius:50%;background:var(--coral-deep);color:var(--cream);display:flex;align-items:center;justify-content:center;font-family:"Fraunces",serif;font-style:italic;font-size:1.1rem;font-weight:500}
.post-byline strong{color:var(--plum);font-weight:600}

/* POST BODY */
.post-layout{padding:56px 0 100px;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:70px;align-items:start}
@media(max-width:1050px){.post-layout{grid-template-columns:1fr;gap:44px}}
.post-body{font-size:1.12rem;line-height:1.7;color:var(--plum);max-width:68ch}
.post-body > * + *{margin-top:24px}
.post-body h2{font-size:clamp(1.7rem,2.4vw,2.2rem);margin-top:56px;line-height:1.15;letter-spacing:-0.02em}
.post-body h2:first-child{margin-top:0}
.post-body h3{font-size:1.4rem;margin-top:40px;line-height:1.2;letter-spacing:-0.015em}
.post-body p{font-size:1.15rem;line-height:1.7}
.post-body ul,.post-body ol{padding-left:24px}
.post-body li{margin-bottom:10px;line-height:1.65;font-size:1.12rem}
.post-body a{color:var(--coral-deep);border-bottom:1px solid var(--coral-deep);padding-bottom:1px}
.post-body a:hover{color:var(--plum);border-bottom-color:var(--plum)}
.post-body strong{color:var(--plum);font-weight:700}
.post-body blockquote{padding:24px 28px;background:var(--coral-soft);border-left:4px solid var(--coral-deep);border-radius:0 16px 16px 0;font-family:"Fraunces",serif;font-size:1.38rem;font-style:italic;line-height:1.45;color:var(--plum)}
.post-body blockquote em{color:var(--coral-deep)}
.post-body table{width:100%;border-collapse:collapse;background:var(--paper);border-radius:16px;overflow:hidden;border:1px solid var(--line);font-size:0.98rem}
.post-body th{background:var(--plum);color:var(--cream);padding:14px 18px;text-align:left;font-weight:600;font-size:0.92rem}
.post-body td{padding:14px 18px;border-bottom:1px solid var(--line)}
.post-body tr:last-child td{border-bottom:none}

.tldr-box{background:var(--coral-soft);border-radius:16px;padding:28px 32px;margin:32px 0}
.tldr-box .mono{color:var(--coral-deep);margin-bottom:14px;display:inline-block}
.tldr-box ul{padding-left:22px;margin:0}
.tldr-box li{font-size:1.08rem;color:var(--plum);line-height:1.55;margin-bottom:8px}
.tldr-box li:last-child{margin-bottom:0}

/* LEAD CAPTURE */
.lead-card{background:var(--plum);color:var(--cream);padding:40px 36px;border-radius:20px;margin:48px 0;position:relative;overflow:hidden}
.lead-card::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--coral-deep)}
.lead-card .mono{color:var(--coral);margin-bottom:16px;display:inline-block}
.lead-card h3{color:var(--cream);font-family:"Fraunces",serif;font-size:1.7rem;line-height:1.2;margin-bottom:14px;max-width:22ch;font-weight:500}
.lead-card h3 em{font-family:"Fraunces",serif;font-style:italic;color:var(--coral);font-weight:500}
.lead-card p{color:var(--muted-light);font-size:1.02rem;line-height:1.5;margin-bottom:22px;max-width:52ch}
.lead-form{display:flex;gap:10px;flex-wrap:wrap;max-width:520px}
.lead-form input[type=email]{flex:1;min-width:220px;background:transparent;border:1px solid rgba(253,246,240,0.25);padding:13px 18px;color:var(--cream);font-family:"Inter",sans-serif;font-size:0.98rem;border-radius:100px;outline:none;transition:border-color .15s}
.lead-form input[type=email]:focus{border-color:var(--coral)}
.lead-form input[type=email]::placeholder{color:var(--muted-light)}
.lead-form button{background:var(--coral-deep);color:var(--cream);border:none;padding:13px 22px;font-weight:600;font-family:"Inter",sans-serif;font-size:0.98rem;border-radius:100px;cursor:pointer;transition:background .15s;white-space:nowrap}
.lead-form button:hover{background:var(--coral)}
.lead-disclaimer{margin-top:14px;font-size:0.84rem;color:var(--muted-light);max-width:52ch}

.cta-agent{background:var(--mint);border-radius:20px;padding:36px 32px;margin:48px 0;display:flex;gap:32px;align-items:center;flex-wrap:wrap}
.cta-agent-text{flex:1;min-width:240px}
.cta-agent h3{font-family:"Fraunces",serif;font-size:1.5rem;line-height:1.15;margin-bottom:10px;color:var(--plum);font-weight:500}
.cta-agent h3 em{font-family:"Fraunces",serif;font-style:italic;color:var(--coral-deep);font-weight:500}
.cta-agent p{color:var(--plum-soft);font-size:0.98rem;line-height:1.5}

/* SIDEBAR */
.post-sidebar{position:sticky;top:90px;display:flex;flex-direction:column;gap:24px}
@media(max-width:1050px){.post-sidebar{position:static}}
.toc-box{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:26px;font-size:0.94rem}
.toc-box .mono{color:var(--coral-deep);margin-bottom:14px;display:block}
.toc-box ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:10px}
.toc-box li a{color:var(--plum);font-weight:500;transition:color .15s;border-bottom:none}
.toc-box li a:hover{color:var(--coral-deep)}
.sticky-cta{background:var(--coral-soft);border-radius:16px;padding:26px;position:relative}
.sticky-cta .mono{color:var(--coral-deep);margin-bottom:12px;display:block}
.sticky-cta h4{font-family:"Fraunces",serif;color:var(--plum);font-size:1.15rem;line-height:1.25;margin-bottom:12px;font-weight:500}
.sticky-cta h4 em{font-style:italic;color:var(--coral-deep)}
.sticky-cta p{color:var(--plum-soft);font-size:0.9rem;line-height:1.5;margin-bottom:16px}
.sticky-cta .btn{width:100%;justify-content:center}

/* RELATED */
.related{padding:72px 0;border-top:1px solid var(--line);background:var(--cream-warm)}
.related-head{margin-bottom:36px}
.related-head .mono{margin-bottom:10px;display:inline-block}
.related-head h2{font-size:clamp(1.8rem,3vw,2.4rem)}
.related-head h2 em{font-family:"Fraunces",serif;font-style:italic;color:var(--coral-deep);font-weight:500}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
@media(max-width:900px){.related-grid{grid-template-columns:1fr}}

/* FOOTER */
.site-footer{padding:60px 0 32px;background:var(--cream-warm);border-top:1px solid var(--line)}
.footer-top{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:36px;margin-bottom:48px}
@media(max-width:900px){.footer-top{grid-template-columns:1fr 1fr}}
.footer-brand .brand-mark{font-size:1.5rem;margin-bottom:20px;display:inline-flex}
.footer-brand p{color:var(--muted);font-size:0.94rem;max-width:34ch;line-height:1.55}
.footer-col h4,.footer-col .mono{font-family:"Inter",sans-serif;font-size:0.78rem;letter-spacing:0.1em;text-transform:uppercase;color:var(--coral-deep);margin-bottom:16px;font-weight:700;display:block}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:11px}
.footer-col li{font-size:0.96rem}
.footer-col a{color:var(--plum);transition:color .15s}
.footer-col a:hover{color:var(--coral-deep)}
.footer-bar{padding-top:28px;border-top:1px solid var(--line-strong);display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:0.82rem;color:var(--muted);letter-spacing:0.02em}

[data-es]:not([data-en]){display:none}
body.lang-es [data-en]:not([data-es]):not(.both){display:none}
body.lang-es [data-es]{display:inline}
body.lang-es .block[data-en]{display:none}
body.lang-es .block[data-es]{display:block}
