
.public-flash{max-width:80rem;margin:1rem auto 0;padding:0 1rem;}
.public-flash .alert{border-radius:0.75rem;padding:1rem 1.25rem;font-size:.95rem;margin-bottom:1rem;}
.public-flash .success{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0;}
.public-flash .error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca;}
.hidden-important{display:none !important;}
.mobile-menu{display:none;}
.mobile-menu.is-open{display:block;}
main.flex-grow{display:block;}
.hero-overlay{background:linear-gradient(90deg, rgba(15,23,42,.90), rgba(15,23,42,.60));}
.contact-form-note{font-size:.85rem;color:#64748b;margin-top:.75rem;}

.blog-toolbar{display:flex;flex-direction:column;gap:1rem}.blog-search-wrap{width:100%}.blog-search{width:100%;border:1px solid #cbd5e1;border-radius:.9rem;padding:.9rem 1rem;font-size:1rem}.blog-category-pills{display:flex;gap:.75rem;flex-wrap:wrap}.blog-pill{display:inline-flex;align-items:center;padding:.6rem .95rem;border-radius:999px;background:#f8fafc;color:#334155;border:1px solid #e2e8f0;font-size:.92rem;text-decoration:none}.blog-pill.is-active,.blog-pill:hover{background:#dbeafe;color:#1d4ed8;border-color:#bfdbfe}.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}.blog-card{display:flex;flex-direction:column;overflow:hidden;border-radius:1.25rem;background:#fff;border:1px solid #e2e8f0;box-shadow:0 12px 30px rgba(15,23,42,.05)}.blog-card-image-link{display:block}.blog-card-image{display:block;width:100%;height:220px;object-fit:cover}.blog-card-body{padding:1.25rem 1.25rem 1.4rem}.blog-card-meta-row{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:1rem;font-size:.875rem;color:#64748b}.blog-tag{display:inline-flex;align-items:center;padding:.35rem .7rem;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-weight:600;text-decoration:none}.blog-date{white-space:nowrap}.blog-card-title{font-size:1.35rem;line-height:1.25;margin:0 0 .8rem;color:#0f172a}.blog-card-title a{text-decoration:none;color:inherit}.blog-card-title a:hover{color:#1d4ed8}.blog-card-excerpt{font-size:1rem;line-height:1.6;color:#475569;margin:0 0 1.2rem}.blog-card-footer{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.blog-author{font-size:.92rem;color:#64748b}.blog-readmore{font-weight:700;color:#2563eb;text-decoration:none}.blog-readmore:hover{text-decoration:underline}.article-page{background:#f8fafc}.article-hero{background:#0f172a;color:#fff}.article-back{display:inline-flex;margin-bottom:1rem;color:#93c5fd;text-decoration:none;font-weight:600}.article-meta-row{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;color:#cbd5e1;font-size:.95rem;margin-bottom:1rem}.article-title{font-size:clamp(2.2rem,5vw,3.8rem);line-height:1.05;margin:0 0 1rem}.article-excerpt{font-size:1.1rem;line-height:1.75;color:#cbd5e1;max-width:60rem;margin-bottom:1rem}.article-author{font-size:1rem;color:#e2e8f0}.article-feature-image{width:100%;border-radius:1.5rem;max-height:480px;object-fit:cover;box-shadow:0 20px 50px rgba(15,23,42,.10)}.article-content{max-width:48rem;margin:2.2rem auto 0}.article-section{margin-bottom:2rem}.article-section h2{font-size:1.7rem;color:#0f172a;margin:0 0 .9rem}.article-section p{margin:0 0 1rem;color:#334155;line-height:1.85}.article-section ul{margin:0;padding-left:1.2rem;color:#334155;line-height:1.85}.article-section li{margin-bottom:.5rem}.article-cta{display:flex;justify-content:space-between;gap:1rem;align-items:center;background:#0f172a;color:#fff;border-radius:1.5rem;padding:1.4rem 1.5rem;margin-bottom:2rem}.article-cta h3{margin:0 0 .3rem;font-size:1.4rem}.article-cta p{margin:0;color:#cbd5e1}.article-cta-button{display:inline-flex;align-items:center;justify-content:center;padding:.9rem 1.25rem;border-radius:.9rem;background:#2563eb;color:#fff;font-weight:700;text-decoration:none;white-space:nowrap}.related-heading{font-size:1.8rem;color:#0f172a;margin:0 0 1rem}.related-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media (max-width: 1024px){.blog-grid,.related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 767px){.blog-grid,.related-grid{grid-template-columns:1fr}.article-cta{flex-direction:column;align-items:flex-start}.blog-card-image{height:200px}}


/* Blog image consistency fix */
.blog-image{display:block;width:100%;object-fit:cover;object-position:center center;background:#e2e8f0;overflow:hidden;flex-shrink:0;}
.blog-image-featured{height:320px;min-height:320px;max-height:320px;}
.blog-image-secondary{width:112px;height:112px;min-width:112px;min-height:112px;max-width:112px;max-height:112px;border-radius:.75rem;}
.blog-image-card{height:224px;min-height:224px;max-height:224px;}
.blog-image-article-main{border-radius:1.5rem;box-shadow:0 20px 50px rgba(15,23,42,.10);height:clamp(260px,42vw,520px);max-height:520px;}
@media (max-width: 767px){
  .blog-image-featured{height:220px;min-height:220px;max-height:220px;}
  .blog-image-card{height:200px;min-height:200px;max-height:200px;}
  .blog-image-secondary{width:92px;height:92px;min-width:92px;min-height:92px;max-width:92px;max-height:92px;}
  .blog-image-article-main{height:240px;max-height:240px;}
}


.blog-feature-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,.9fr);gap:1.5rem;align-items:stretch}
.blog-feature-card,.blog-side-card{background:#fff;border:1px solid #e2e8f0;box-shadow:0 12px 30px rgba(15,23,42,.05);overflow:hidden}
.blog-feature-card{border-radius:1.5rem;display:flex;flex-direction:column;height:100%}
.blog-feature-media,.blog-side-media,.blog-thumb-wrap{display:block;overflow:hidden;background:#e2e8f0}
.blog-thumb{display:block;width:100%;height:100%;object-fit:cover;object-position:center center;transition:transform .35s ease}
.blog-feature-media:hover .blog-thumb,.blog-side-media:hover .blog-thumb,.blog-thumb-wrap:hover .blog-thumb{transform:scale(1.03)}
.blog-thumb-wrap-card{aspect-ratio:16/10}
.blog-thumb-wrap-article{aspect-ratio:16/8;max-height:520px;border-radius:1.5rem;box-shadow:0 20px 50px rgba(15,23,42,.10);margin-bottom:2.2rem}
.blog-thumb-featured{aspect-ratio:16/9}
.blog-feature-body{padding:1.6rem 1.6rem 1.4rem;display:flex;flex-direction:column;gap:1rem;min-height:0;flex:1}
.blog-feature-title{font-size:2rem;line-height:1.15;margin:0;color:#0f172a}
.blog-feature-title a{color:inherit;text-decoration:none}
.blog-feature-title a:hover{color:#1d4ed8}
.blog-feature-excerpt{font-size:1.03rem;line-height:1.7;color:#475569;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.blog-side-list{display:grid;gap:1rem}
.blog-side-card{border-radius:1.25rem;display:grid;grid-template-columns:132px minmax(0,1fr);min-height:132px}
.blog-thumb-side{aspect-ratio:1/1}
.blog-side-body{padding:1rem 1rem .95rem;display:flex;flex-direction:column;min-width:0}
.blog-side-date{font-size:.85rem;color:#64748b;margin-bottom:.45rem}
.blog-side-title{font-size:1.06rem;line-height:1.35;margin:0 0 .5rem;color:#0f172a}
.blog-side-title a{color:inherit;text-decoration:none}
.blog-side-title a:hover{color:#1d4ed8}
.blog-side-excerpt{font-size:.94rem;line-height:1.55;color:#475569;margin:0 0 .8rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.blog-grid{align-items:stretch}
.blog-card{height:100%}
.blog-card-body{display:flex;flex-direction:column;gap:0;flex:1}
.blog-card-title{min-height:3.4rem}
.blog-card-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:4.8rem}
.blog-card-footer{margin-top:auto}
.article-content-shell{overflow:hidden}
@media (max-width: 1024px){.blog-feature-layout{grid-template-columns:1fr}.blog-side-card{grid-template-columns:112px minmax(0,1fr);min-height:112px}}
@media (max-width: 767px){.blog-feature-title{font-size:1.55rem}.blog-side-card{grid-template-columns:96px minmax(0,1fr);min-height:96px}.blog-thumb-wrap-article{aspect-ratio:16/10;margin-bottom:1.5rem}.blog-card-title{min-height:0}.blog-card-excerpt{min-height:0}}


/* --- Rebuilt blog system --- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.blog-page-shell,.article-modern-page{background:linear-gradient(180deg,#f8fbff 0%,#f5f7fb 100%)}
.blog-hero-modern{padding:3.5rem 0 2rem;background:radial-gradient(circle at top left,rgba(37,99,235,.18),transparent 34%),linear-gradient(180deg,#0f172a 0%,#111827 100%)}
.blog-hero-panel{display:grid;grid-template-columns:1.35fr .95fr;gap:2rem;align-items:stretch}
.blog-hero-copy{color:#fff;padding:1rem 0}
.blog-eyebrow,.blog-section-kicker{display:inline-flex;align-items:center;gap:.45rem;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;font-weight:700;color:#60a5fa;margin-bottom:1rem}
.blog-hero-copy h1,.article-modern-hero h1{font-size:clamp(2.3rem,4vw,4.2rem);line-height:1.05;font-weight:800;letter-spacing:-.03em;margin:0 0 1rem}
.blog-hero-copy p{font-size:1.08rem;line-height:1.8;color:#cbd5e1;max-width:44rem;margin:0}
.blog-hero-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:2rem}
.blog-hero-stats div{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:1.2rem;padding:1rem 1.1rem;backdrop-filter:blur(8px)}
.blog-hero-stats strong{display:block;color:#fff;font-size:1.3rem;font-weight:800}
.blog-hero-stats span{display:block;color:#cbd5e1;font-size:.92rem;margin-top:.2rem}
.blog-hero-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:1.6rem;padding:1rem;backdrop-filter:blur(10px);box-shadow:0 20px 60px rgba(2,6,23,.25)}
.blog-hero-card-label{display:inline-block;padding:.45rem .75rem;border-radius:999px;background:rgba(96,165,250,.16);color:#bfdbfe;font-size:.78rem;font-weight:700;margin-bottom:.85rem}
.blog-hero-card-link{display:block;color:inherit;text-decoration:none}
.blog-hero-card-body{padding:.95rem .35rem .2rem}
.blog-hero-card-body h2{font-size:1.5rem;line-height:1.25;color:#fff;font-weight:800;margin:.8rem 0 .65rem}
.blog-hero-card-body p{color:#dbe4f0;line-height:1.7;margin:0}
.blog-filters-wrap{padding:0 0 1rem;background:transparent;margin-top:-1rem}
.blog-filter-bar{display:flex;gap:1rem;align-items:center;background:#fff;padding:1rem;border:1px solid #dbe5f0;border-radius:1.2rem;box-shadow:0 10px 30px rgba(15,23,42,.06)}
.blog-search-panel{flex:1}
.blog-search-input{width:100%;height:3.4rem;border-radius:1rem;border:1px solid #d7e0ea;background:#f8fafc;padding:0 1rem;font-size:1rem;color:#0f172a;outline:none}
.blog-search-input:focus{border-color:#60a5fa;box-shadow:0 0 0 4px rgba(96,165,250,.18)}
.blog-search-button,.blog-primary-button{display:inline-flex;align-items:center;justify-content:center;min-height:3.3rem;padding:0 1.35rem;border-radius:1rem;background:#2563eb;color:#fff;font-weight:700;text-decoration:none;border:none;cursor:pointer;transition:.2s ease}
.blog-search-button:hover,.blog-primary-button:hover,.article-side-card .blog-primary-button:hover{background:#1d4ed8;transform:translateY(-1px)}
.blog-primary-button.full{width:100%}
.blog-chip-row{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1rem}
.blog-chip{display:inline-flex;align-items:center;gap:.45rem;padding:.72rem .98rem;border-radius:999px;background:#fff;color:#334155;text-decoration:none;border:1px solid #dbe5f0;font-size:.94rem;font-weight:600;transition:.2s ease;box-shadow:0 6px 18px rgba(15,23,42,.04)}
.blog-chip span{display:inline-flex;align-items:center;justify-content:center;min-width:1.4rem;height:1.4rem;padding:0 .35rem;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:.75rem;font-weight:700}
.blog-chip:hover{transform:translateY(-1px);border-color:#93c5fd}
.blog-chip.is-active{background:#0f172a;color:#fff;border-color:#0f172a}
.blog-chip.is-active span{background:rgba(255,255,255,.13);color:#fff}
.blog-content-wrap{padding:2rem 0 4.5rem}
.blog-section-head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin:0 0 1.2rem}
.blog-section-head.lower{margin-top:2.3rem}
.blog-section-head h2{font-size:2rem;line-height:1.15;color:#0f172a;font-weight:800;letter-spacing:-.03em;margin:0}
.blog-lead-layout{display:grid;grid-template-columns:1.35fr .95fr;gap:1.4rem;align-items:start}
.blog-lead-card,.blog-mini-card,.blog-article-card,.article-side-card,.blog-empty-state,.blog-cta-band{background:#fff;border:1px solid #e2e8f0;border-radius:1.5rem;box-shadow:0 14px 38px rgba(15,23,42,.06)}
.blog-lead-card,.blog-mini-card{overflow:hidden}
.blog-lead-body,.blog-mini-card-body,.blog-article-card-body{padding:1.2rem 1.25rem 1.25rem}
.blog-lead-body h3,.blog-mini-card-body h3,.blog-article-card-body h3{font-size:1.4rem;line-height:1.3;font-weight:800;letter-spacing:-.02em;color:#0f172a;margin:.9rem 0 .7rem}
.blog-mini-card-body h3{font-size:1.18rem}
.blog-article-card-body h3{font-size:1.18rem}
.blog-lead-body h3 a,.blog-mini-card-body h3 a,.blog-article-card-body h3 a{color:inherit;text-decoration:none}
.blog-lead-body p,.blog-mini-card-body p,.blog-article-card-body p,.blog-cta-band p,.article-side-card p{color:#475569;line-height:1.75;margin:0}
.blog-lead-stack{display:grid;gap:1.4rem}
.blog-mini-card{display:grid;grid-template-columns:220px 1fr;align-items:stretch}
.blog-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem}
.blog-card-grid.related{grid-template-columns:repeat(3,minmax(0,1fr))}
.blog-meta-line,.article-meta-line-top{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center;color:#64748b;font-size:.9rem}
.blog-meta-line.compact{font-size:.84rem}
.blog-tag{display:inline-flex;align-items:center;justify-content:center;padding:.42rem .72rem;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.78rem;font-weight:700;text-decoration:none;border:1px solid #bfdbfe}
.blog-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-top:1rem;margin-top:1rem;border-top:1px solid #e2e8f0;color:#64748b;font-size:.92rem}
.blog-card-bottom a,.blog-inline-link{color:#2563eb;text-decoration:none;font-weight:700}
.blog-inline-link{display:inline-block;margin-top:1rem}
.blog-thumb-box{position:relative;overflow:hidden;background:#e2e8f0}
.blog-thumb-box-hero{aspect-ratio:16/10;border-radius:1.1rem}
.blog-thumb-box-lead{aspect-ratio:16/9}
.blog-thumb-box-mini{aspect-ratio:1/1;height:100%}
.blog-thumb-box-grid{aspect-ratio:16/10;border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}
.blog-thumb-box-article-modern{aspect-ratio:16/8;border-radius:1.7rem;box-shadow:0 18px 44px rgba(15,23,42,.1);margin-bottom:1.7rem}
.blog-thumb-fill{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.blog-empty-state{padding:4rem 1.4rem;text-align:center}
.blog-empty-state h2{font-size:2rem;font-weight:800;margin:0 0 .8rem;color:#0f172a}
.blog-empty-state p{margin:0 0 1.4rem;color:#475569}
.blog-cta-band{margin-top:2rem;padding:2rem 2.1rem;display:flex;justify-content:space-between;gap:1.5rem;align-items:center}
.article-modern-hero{padding:3rem 0 1rem;background:linear-gradient(180deg,#f8fbff 0%,#eff6ff 100%)}
.article-back-link{display:inline-block;margin-bottom:1rem;color:#2563eb;text-decoration:none;font-weight:700}
.article-modern-excerpt{font-size:1.12rem;line-height:1.85;color:#475569;max-width:50rem;margin:0}
.article-modern-author{margin-top:1rem;color:#0f172a;font-weight:700}
.article-modern-content-wrap{padding:1rem 0 4rem}
.article-modern-layout{display:grid;grid-template-columns:minmax(0,1.6fr) 320px;gap:1.6rem;align-items:start}
.article-modern-content{background:#fff;border:1px solid #e2e8f0;border-radius:1.6rem;padding:2rem 2.1rem;box-shadow:0 14px 38px rgba(15,23,42,.06)}
.article-content-block + .article-content-block{margin-top:1.8rem;padding-top:1.8rem;border-top:1px solid #e2e8f0}
.article-content-block h2{font-size:1.45rem;line-height:1.25;color:#0f172a;font-weight:800;margin:0 0 .8rem}
.article-content-block p{margin:.8rem 0 0;color:#334155;line-height:1.9}
.article-content-block ul{margin:1rem 0 0;padding-left:1.1rem;color:#334155}
.article-content-block li{margin:.55rem 0;line-height:1.75}
.article-side-panel{position:sticky;top:7rem}
.article-side-card{padding:1.4rem}
.article-side-card h3{font-size:1.4rem;font-weight:800;color:#0f172a;margin:.3rem 0 .8rem}
.article-related-wrap{padding:0 0 4.5rem}
@media (max-width: 1100px){
  .blog-hero-panel,.blog-lead-layout,.article-modern-layout{grid-template-columns:1fr}
  .article-side-panel{position:static}
}
@media (max-width: 900px){
  .blog-card-grid,.blog-card-grid.related{grid-template-columns:repeat(2,minmax(0,1fr))}
  .blog-mini-card{grid-template-columns:180px 1fr}
}
@media (max-width: 640px){
  .blog-hero-modern{padding:2.6rem 0 1.4rem}
  .blog-hero-stats{grid-template-columns:1fr}
  .blog-filter-bar{flex-direction:column;align-items:stretch}
  .blog-card-grid,.blog-card-grid.related{grid-template-columns:1fr}
  .blog-mini-card{grid-template-columns:1fr}
  .blog-thumb-box-mini{aspect-ratio:16/10}
  .blog-cta-band{padding:1.6rem;flex-direction:column;align-items:flex-start}
  .blog-lead-body,.blog-mini-card-body,.blog-article-card-body,.article-modern-content{padding:1.1rem}
  .blog-section-head h2{font-size:1.55rem}
}

/* blog tidy patch */
.blog-chip-row-spaced{margin-top:1.6rem}
.blog-filter-bar + .blog-chip-row{margin-top:1.35rem}
.blog-hero-copy p{max-width:42rem}
.tidy-three-up{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.tidy-card{display:flex;flex-direction:column;overflow:hidden;min-height:100%}
.tidy-thumb-link{display:block}
.tidy-card-body{display:flex;flex-direction:column;gap:.2rem;flex:1}
.tidy-card-body h3{min-height:3.2rem;font-size:1.18rem}
.tidy-card-body p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:5.1rem}
.blog-thumb-box-grid{aspect-ratio:16/10;height:auto}
.blog-thumb-box-grid .blog-thumb-fill{width:100%;height:100%;object-fit:cover}
.blog-pagination{display:flex;justify-content:center;align-items:center;gap:.65rem;margin-top:2rem;flex-wrap:wrap}
.blog-page-link{display:inline-flex;align-items:center;justify-content:center;min-width:2.85rem;height:2.85rem;padding:0 1rem;border-radius:.95rem;background:#fff;border:1px solid #dbe5f0;color:#0f172a;text-decoration:none;font-weight:700;box-shadow:0 6px 18px rgba(15,23,42,.04)}
.blog-page-link:hover{border-color:#93c5fd;color:#1d4ed8}
.blog-page-link.is-current{background:#0f172a;border-color:#0f172a;color:#fff}
.article-image-tidy{max-width:960px;margin:0 auto 1.7rem;aspect-ratio:16/7}
.article-image-tidy .blog-thumb-fill{object-fit:cover}
.article-modern-content img{max-width:100%;height:auto}
@media (max-width: 1024px){
  .tidy-three-up{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 767px){
  .tidy-three-up{grid-template-columns:1fr}
  .article-image-tidy{aspect-ratio:16/10}
}

.container-wide{max-width:80rem;margin:0 auto;padding:0 1rem;}
@media (min-width:640px){.container-wide{padding:0 1.5rem;}}
@media (min-width:1024px){.container-wide{padding:0 2rem;}}
