/* ui14.css: blog (index + articles) and solutions (index + software pages). Visual only; loaded last.
   Delete this file + its <link> to revert. */

/* ---------- Filter chips (blog, solutions, portfolio-style filters) ---------- */
main .filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: clamp(26px, 3vw, 42px); }
main .filters a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(11, 27, 58, .18); background: #fff; color: #33415c; font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s, color .2s, transform .2s; }
main .filters a:hover { border-color: #b08a3e; transform: translateY(-1px); }
main .filters a[aria-current="true"] { background: #0b1b3a; border-color: #0b1b3a; color: #fff; }
main .filters .count { font-size: .76rem; font-weight: 500; opacity: .7; }
main .filters input[type="search"], main .filters input[name="q"] { min-width: 220px; padding: 11px 18px !important; border: 1px solid rgba(11, 27, 58, .18) !important; border-radius: 999px !important; background: #fff; color: #0b1b3a; transition: border-color .2s, box-shadow .2s; }
main .filters input[name="q"]:focus { outline: 0; border-color: #b08a3e !important; box-shadow: 0 0 0 4px rgba(176, 138, 62, .18); }

/* ---------- Blog index: featured first article ---------- */
@media (min-width: 981px) {
  .blog-grid > .post-card:first-child { grid-column: 1 / -1; display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 clamp(24px, 3vw, 44px); align-items: center; padding: clamp(20px, 2.4vw, 32px) !important; }
  .blog-grid > .post-card:first-child .post-shot { grid-row: 1 / span 4; margin: 0; }
  .blog-grid > .post-card:first-child h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem) !important; line-height: 1.15; margin: 8px 0 14px; }
  .blog-grid > .post-card:first-child p { font-size: 1.04rem; -webkit-line-clamp: 4; }
}
.post-card { display: flex; flex-direction: column; }
.post-card .post-shot { border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.post-card .post-shot img { transition: transform .5s; }
.post-card:hover .post-shot img { transform: scale(1.04); }
.post-card h3 { color: #0b1b3a; letter-spacing: -.02em; line-height: 1.25; }
.post-card .tag.cat { align-self: flex-start; color: #8a6a24; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; background: none; padding: 0; margin: 4px 0 6px; }
.post-card-meta { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(11, 27, 58, .1); font-size: .84rem; color: #5b6880; }

/* ---------- Article page ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.post-main { min-width: 0; }
.post-figure { margin: 0 0 clamp(24px, 3vw, 40px); border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(11, 27, 58, .5); }
.post-figure img { display: block; width: 100%; height: auto; }
.article-body { max-width: 74ch; font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.8; color: #2c3a54; }
.article-body > p:first-of-type { font-size: 1.18em; line-height: 1.7; color: #1b2a47; }
.article-body h2 { margin: 2.2em 0 .6em; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; color: #0b1b3a; scroll-margin-top: 110px; }
.article-body h2::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 14px; background: linear-gradient(90deg, #b08a3e, transparent); }
.article-body h3 { margin: 1.8em 0 .5em; font-size: 1.25rem; color: #0b1b3a; scroll-margin-top: 110px; }
.article-body a { color: #0b1b3a; font-weight: 600; text-decoration-color: rgba(176, 138, 62, .7); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: #b08a3e; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin: .45em 0; }
.article-body li::marker { color: #b08a3e; font-weight: 700; }
.article-body blockquote { margin: 2em 0; padding: 18px 24px; border-left: 4px solid #b08a3e; background: #f6f4ef; border-radius: 0 6px 6px 0; color: #1b2a47; font-size: 1.06em; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: .95rem; display: block; overflow-x: auto; }
.article-body th { background: #0b1b3a; color: #fff; text-align: left; padding: 12px 14px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.article-body td { padding: 12px 14px; border-bottom: 1px solid rgba(11, 27, 58, .1); }
.article-body tr:nth-child(even) td { background: #faf9f5; }
.article-body img { max-width: 100%; height: auto; border-radius: 6px; }
.post-faq { margin-top: 3em; }
.post-faq > h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); color: #0b1b3a; }
.post-faq details { margin-bottom: 10px; border: 1px solid rgba(11, 27, 58, .12); border-radius: 6px; background: #fff; }
.post-faq summary { padding: 16px 20px; font-weight: 600; color: #0b1b3a; }
.post-faq details p { margin: 0; padding: 0 20px 18px; color: #4a5670; }
.byline { margin: 2.4em 0; padding: 22px 24px; border-radius: 6px; background: #f6f4ef; border: 1px solid rgba(11, 27, 58, .1); border-left: 4px solid #0b1b3a; }
.byline-name { margin: 0 0 6px; font-weight: 700; color: #0b1b3a; }
.byline-name span { font-weight: 400; color: #5b6880; }
.post-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.toc, .side-related { padding: 22px; background: #fff; border: 1px solid rgba(11, 27, 58, .12); border-top: 3px solid #b08a3e; border-radius: 6px; box-shadow: 0 24px 44px -32px rgba(11, 27, 58, .3); }
.post-side .side-title { margin: 0 0 12px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a6a24; }
.toc nav a { display: block; padding: 7px 0 7px 12px; border-left: 2px solid rgba(11, 27, 58, .12); color: #4a5670; font-size: .88rem; text-decoration: none; transition: color .2s, border-color .2s; }
.toc nav a:hover, .toc nav a[aria-current] { color: #0b1b3a; border-left-color: #b08a3e; }
.side-cta { padding: 26px 24px; border-radius: 6px; background: radial-gradient(360px 200px at 90% 0%, rgba(230, 194, 122, .22), transparent 65%), linear-gradient(180deg, #0d2146, #08142e); }
.side-cta .side-title { color: #e6c27a !important; -webkit-text-fill-color: #e6c27a; }
.side-cta p { color: #b8c4de !important; }
.side-cta .btn.btn-primary { background: #e6c27a !important; border-color: #e6c27a !important; color: #0b1b3a !important; -webkit-text-fill-color: #0b1b3a !important; }
.side-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.side-related a { color: #0b1b3a; font-weight: 600; font-size: .92rem; line-height: 1.4; text-decoration: none; }
.side-related a:hover { text-decoration: underline; text-decoration-color: #b08a3e; }
@media (max-width: 1000px) { .post-layout { grid-template-columns: 1fr; } .post-side { position: static; } }

/* ---------- Software / solution page ---------- */
.sw-box { border-radius: 6px !important; border: 1px solid rgba(11, 27, 58, .12) !important; border-top: 3px solid #b08a3e !important; box-shadow: 0 40px 80px -44px rgba(11, 27, 58, .5) !important; }
.sw-box .btn { border-radius: 2px !important; }
.sw-tabbar { border-bottom: 1px solid rgba(11, 27, 58, .12); }
.sw-tabbar [role="tab"], .sw-tabbar a, .sw-tabbar button { font-weight: 600; color: #4a5670; }
.sw-tabbar [aria-selected="true"], .sw-tabbar .on, .sw-tabbar [aria-current] { color: #0b1b3a !important; border-bottom-color: #b08a3e !important; }
.sw-feats li { border-radius: 6px !important; border: 1px solid rgba(11, 27, 58, .12) !important; background: #fff; transition: border-color .2s, transform .2s; }
.sw-feats li:hover { border-color: rgba(176, 138, 62, .6) !important; transform: translateY(-2px); }
.sw-stage .frame { border-radius: 6px !important; box-shadow: 0 40px 80px -40px rgba(11, 27, 58, .55); }
.sw-kicker { color: #8a6a24 !important; }

@media (prefers-reduced-motion: reduce) { .post-card:hover .post-shot img, .sw-feats li:hover, main .filters a:hover { transform: none; } }
.post-card .tag.cat { justify-self: start; width: auto; display: inline-block; background: none !important; padding: 0 !important; }
