/* Clairos Blog — scoped presentation. Shared website styles remain untouched. */
body.blog-editorial-page {background:var(--page-bg);overflow-x:clip}
body.blog-editorial-page::before,body.blog-editorial-page::after {display:none}
.blog-editorial-page [hidden] {display:none!important}
.blog-shell {--blog-rule:var(--border);--blog-reading:720px}
.blog-shell a:focus-visible,.blog-shell button:focus-visible,.blog-shell input:focus-visible,.blog-shell select:focus-visible,.blog-shell summary:focus-visible {outline:3px solid var(--accent);outline-offset:4px}
.blog-skip-link {position:fixed;z-index:100;left:1rem;top:-6rem;background:var(--text);color:var(--page-bg);padding:.8rem 1rem}
.blog-skip-link:focus {top:1rem}
.blog-shell .site-header {background:var(--page-bg);backdrop-filter:none}
.blog-shell .site-header-inner {gap:1.25rem;min-height:90px}
.blog-shell .brand-wording {display:flex;flex-direction:column}
.blog-shell .brand-tag {font-size:.7rem;max-width:260px}
.blog-shell .brand-logo {width:44px;height:44px}
.blog-shell .site-nav {gap:1.25rem;flex-wrap:wrap}
.blog-shell .site-nav a {font-size:.88rem}
.blog-theme-toggle {font:inherit;font-size:.72rem;white-space:nowrap;padding:.45rem .65rem;background:transparent;border:1px solid var(--border);border-radius:6px;color:var(--muted);cursor:pointer}
.blog-shell .site-breadcrumbs {padding-top:1.25rem;padding-bottom:0;font-size:.78rem}
.blog-shell .site-breadcrumbs ol {flex-wrap:wrap}
.blog-shell .site-breadcrumbs li:last-child {min-width:0;overflow-wrap:anywhere}
.blog-shell .page-section {padding-block:3.5rem}
.blog-shell h1,.blog-shell h2,.blog-shell h3 {color:var(--text);font-family:var(--header-font);text-wrap:pretty}
.blog-shell .blog-intro {display:grid;grid-template-columns:1.12fr 1fr;gap:3.5rem;align-items:end;padding-top:3.5rem;padding-bottom:4rem}
.blog-shell .blog-intro h1 {font-size:clamp(2.65rem,5.5vw,5.2rem);line-height:1.06;letter-spacing:-.065em;font-weight:700;margin:0;max-width:12ch}
.blog-shell .blog-intro-copy {max-width:500px;padding-bottom:.35rem}
.blog-shell .blog-intro .lead {font-size:1.23rem;line-height:1.55;color:var(--text);margin:0 0 1rem}
.blog-shell .blog-intro-copy>p:not(.lead) {font-size:.96rem;color:var(--muted);margin:0 0 1.6rem}
.blog-text-link {font-size:.95rem;font-weight:650;border-bottom:1px solid var(--text);padding-bottom:.25rem}
.blog-shell .blog-latest {border-top:1px solid var(--blog-rule);padding-top:1.8rem}
.blog-section-heading {display:flex;justify-content:space-between;gap:2rem;align-items:end;margin-bottom:1.8rem}
.blog-section-heading h2 {font-size:clamp(1.4rem,2.5vw,2rem);line-height:1.2;letter-spacing:-.035em;margin:0}
.blog-section-heading p {font-size:.9rem;color:var(--muted);margin:.65rem 0 0;max-width:65ch}
.blog-section-heading>a {font-size:.84rem;flex-shrink:0;text-decoration:underline;text-underline-offset:4px}
.blog-shell .blog-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.5rem 2rem}
.blog-shell .blog-card {padding:0;border:0;border-radius:0;background:none;box-shadow:none;display:flex;flex-direction:column;gap:0;min-width:0;color:var(--text);transform:none}
.blog-shell .blog-card:hover {transform:none;background:none;box-shadow:none}
.blog-shell .blog-card-media {margin:0;width:100%;aspect-ratio:16/10;background:var(--surface-soft);overflow:hidden;border-radius:8px;border:1px solid var(--border)}
.blog-shell .blog-card-media img {width:100%;height:100%;object-fit:contain;object-position:center;transition:none}
.blog-shell .blog-card-body {padding:1.1rem 0 .25rem;display:flex;flex-direction:column;align-items:start;gap:.75rem;min-width:0;flex:1}
.blog-shell .guide-card-head {font-size:.75rem;color:var(--muted);display:flex;justify-content:space-between;gap:.75rem;flex-wrap:wrap;width:100%;margin:0}
.blog-shell .blog-card h3 {margin:0;font-size:1.27rem;line-height:1.35;letter-spacing:-.027em;overflow-wrap:anywhere}
.blog-shell .blog-card p {font-size:.95rem;line-height:1.58;color:var(--muted);margin:0}
.blog-shell .blog-card .inline-link {font-size:.82rem;color:var(--text);margin-top:auto;padding-top:.25rem;text-decoration:underline;text-underline-offset:5px}
.blog-shell .blog-card:hover h3 {text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.blog-shell .blog-grid>.blog-card:first-child {grid-column:1/-1;display:grid;grid-template-columns:1.3fr 1fr;gap:3rem;border-bottom:1px solid var(--border);padding-bottom:2.4rem;align-items:center}
.blog-shell .blog-grid>.blog-card:first-child .blog-card-media {aspect-ratio:16/10}
.blog-shell .blog-grid>.blog-card:first-child .blog-card-body {padding:1rem 0;gap:1.2rem}
.blog-shell .blog-grid>.blog-card:first-child h3 {font-size:clamp(1.6rem,2.7vw,2.4rem);line-height:1.17;letter-spacing:-.04em}
.blog-shell .blog-grid>.blog-card:first-child p {font-size:1.06rem;line-height:1.62}
.blog-shell .blog-pagination {display:flex;align-items:center;justify-content:center;gap:1.5rem;flex-wrap:wrap;margin-top:2.5rem}
.blog-shell .blog-pagination p {margin:0;font-size:.85rem;color:var(--muted)}
.blog-shell .blog-pagination>a {font-size:.85rem;text-decoration:underline;text-underline-offset:4px}
.blog-shell .button-primary,.blog-shell .button-secondary {box-shadow:none;min-height:44px;min-width:0;padding:.7rem 1.1rem;font-family:var(--body-font);font-size:.88rem;border-radius:8px}
.blog-shell .blog-archive {border-top:1px solid var(--blog-rule);scroll-margin-top:115px}
.blog-filters {display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:1rem;align-items:end;margin:2rem 0 1rem}
.blog-filters label {font-size:.78rem;font-weight:650;display:flex;flex-direction:column;gap:.5rem;min-width:0}
.blog-filters input,.blog-filters select {font:inherit;font-size:1rem;min-width:0;width:100%;color:var(--text);background:var(--page-bg);border:1px solid var(--border);border-radius:6px;padding:.8rem;min-height:48px}
.blog-filters input::placeholder {color:var(--muted)}
.blog-filters button {font:inherit;font-size:.85rem;min-height:48px;padding:.7rem .3rem;background:none;color:var(--text);border:none;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.blog-directory-count {font-size:.82rem;color:var(--muted);margin:1rem 0}
.blog-directory {list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;column-gap:3.2rem}
.blog-directory-row {padding:1.1rem 0;border-top:1px solid var(--border);min-width:0}
.blog-directory-meta {display:flex;align-items:center;gap:1rem;justify-content:space-between;font-size:.72rem;color:var(--muted);margin-bottom:.45rem}
.blog-directory-row>a {display:flex;justify-content:space-between;gap:1rem;font-size:1rem;line-height:1.45;font-weight:600;overflow-wrap:anywhere}
.blog-directory-row>a>span {flex-shrink:0}
.blog-directory-row>a:hover {text-decoration:underline;text-underline-offset:3px}
.blog-empty {border-block:1px solid var(--border);padding:2rem 0;color:var(--muted)}
.blog-shell .blog-signoff {border-top:1px solid var(--border);padding-block:3rem 4rem;display:flex;align-items:center;gap:2rem;flex-wrap:wrap}
.blog-signoff h2 {font-size:1.6rem;margin:0;letter-spacing:-.04em}
.blog-signoff p {font-size:.95rem;color:var(--muted);max-width:42ch;margin:0}
.blog-signoff>a {margin-left:auto}
.blog-shell .blog-article-header {padding-top:2rem;padding-bottom:1rem}
.blog-article-type {font-size:.8rem;display:flex;gap:1rem;align-items:center;color:var(--muted);margin:0 0 1.2rem}
.blog-article-type a {text-decoration:underline;text-underline-offset:3px}
.blog-shell .blog-article-header h1 {font-size:clamp(2rem,4.2vw,3.75rem);letter-spacing:-.05em;line-height:1.1;max-width:1000px;margin:0 0 1.3rem;overflow-wrap:anywhere}
.blog-shell .blog-article-header .lead {max-width:850px;font-size:1.15rem;line-height:1.65;color:var(--muted);margin:0 0 1.5rem}
.blog-article-meta {display:flex;gap:.7rem 1.7rem;flex-wrap:wrap;font-size:.78rem;color:var(--muted);padding:1.2rem 0;border-top:1px solid var(--border)}
.blog-shell .blog-hero-media {margin:1.3rem 0 0;background:var(--surface-soft);border:1px solid var(--border);border-radius:8px;width:100%;aspect-ratio:2/1;max-height:440px;overflow:hidden}
.blog-shell .blog-hero-media img {width:100%;height:100%;object-fit:contain}
.blog-shell .blog-reading-grid {display:grid;grid-template-columns:235px minmax(0,var(--blog-reading));gap:4rem;justify-content:start;padding-top:2rem;padding-bottom:3rem}
.blog-reading-aside {min-width:0;align-self:start;position:sticky;top:120px;max-height:calc(100vh - 145px);overflow:auto;padding-right:.5rem}
.blog-toc {border:0;background:transparent;font-size:.83rem}
.blog-toc summary {font-size:.8rem;font-weight:700;padding:0 0 .8rem;color:var(--text);cursor:pointer}
.blog-toc ol {list-style:none;margin:0;padding:0;border-left:1px solid var(--border)}
.blog-toc li {margin:0;padding:.37rem 0 .37rem .9rem;line-height:1.45}
.blog-toc .toc-h3 {padding-left:1.4rem;font-size:.77rem}
.blog-toc a {color:var(--muted);display:block}
.blog-toc a:hover {color:var(--text);text-decoration:underline}
.blog-back-link {display:inline-block;margin-top:1.5rem;font-size:.8rem;text-decoration:underline;text-underline-offset:3px}
.blog-reading-column {min-width:0}
.blog-shell .article-body {width:100%;max-width:none;font-size:1.12rem;line-height:1.85;color:var(--text);overflow-wrap:anywhere}
.blog-shell .article-body p {font-size:inherit;color:inherit;line-height:inherit;margin:0 0 1.35em;max-width:none}
.blog-shell .article-body h2 {font-size:clamp(1.45rem,2.4vw,1.85rem);line-height:1.25;letter-spacing:-.035em;margin:2.2em 0 .8em;scroll-margin-top:120px}
.blog-shell .article-body h3 {font-size:1.3rem;line-height:1.35;letter-spacing:-.02em;margin:1.8em 0 .7em;scroll-margin-top:120px}
.blog-shell .article-body>:first-child,.blog-shell .article-body>article>:first-child {margin-top:0}
.blog-shell .article-body a {text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;color:var(--text)}
.blog-shell .article-body a:hover {color:var(--accent)}
.blog-shell .article-body li {margin:.55em 0;padding-left:.25em}
.blog-shell .article-body ul,.blog-shell .article-body ol {padding-left:1.25em;margin-bottom:1.5em}
.blog-shell .article-body blockquote {margin:1.8em 0;padding:.6em 0 .6em 1.4em;border-left:3px solid var(--accent);font-size:1.2rem;color:var(--text);background:none}
.blog-shell .article-body blockquote p:last-child {margin-bottom:0}
.blog-shell .article-body pre {background:var(--surface-soft);padding:1.2rem;overflow:auto;max-width:100%;font-size:.87rem;line-height:1.7;border:1px solid var(--border);border-radius:6px}
.blog-shell .article-body code {font-size:.88em;white-space:inherit}
.blog-shell .article-body table {display:block;max-width:100%;overflow:auto;border-collapse:collapse;font-size:.92rem}
.blog-shell .article-body td,.blog-shell .article-body th {padding:.8rem;border:1px solid var(--border)}
.blog-shell .article-body img,.blog-shell .article-body video {height:auto;max-width:100%;border-radius:6px}
.blog-shell .article-body iframe {max-width:100%}
.blog-topics {border-top:1px solid var(--border);margin-top:2rem;padding-top:1rem;font-size:.85rem}
.blog-topics summary {cursor:pointer;color:var(--muted)}
.blog-topics nav {display:flex;flex-wrap:wrap;gap:.6rem 1.2rem;padding-top:1rem}
.blog-topic-link {text-decoration:underline;text-underline-offset:3px;color:var(--muted)}
.blog-product-context {padding:1.6rem 0 0;margin-top:2rem;border-top:1px solid var(--border);color:var(--muted);font-size:.95rem}
.blog-product-context h2 {font-size:1.5rem;letter-spacing:-.03em;margin:0 0 .65rem}
.blog-product-context p {margin:.7rem 0 1rem}
.blog-product-context>div {display:flex;flex-wrap:wrap;gap:.75rem}
.blog-product-link {border:1px solid var(--border);padding:.65rem .9rem;display:inline-block;border-radius:6px;color:var(--text);font-size:.85rem;font-weight:600;min-height:44px}
.blog-product-link span {margin-left:.5rem}
.blog-shell .blog-related {border-top:1px solid var(--border);padding-block:2.5rem 3.5rem}
.blog-related-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem}
.blog-related-grid>a {display:block;padding:1.2rem 0;border-top:1px solid var(--border)}
.blog-related-grid time {font-size:.77rem;color:var(--muted)}
.blog-related-grid h3 {font-size:1.15rem;line-height:1.4;margin:.8rem 0}
.blog-related-grid>a:hover h3 {text-decoration:underline}
.blog-related-grid p {font-size:.9rem;color:var(--muted);margin:0}
.blog-shell .site-footer {border-top:1px solid var(--border)}
.blog-shell .site-footer-inner {padding-block:1.8rem}
.blog-shell .footer-note {font-size:.88rem}
@media(prefers-color-scheme:dark){
 :root:not([data-theme="light"]) {--page-bg:#071118;--page-bg-deep:#030a0f;--surface-soft:rgba(255,255,255,.04);--surface:rgba(10,21,28,.75);--surface-strong:rgba(10,21,28,.94);--surface-deep:rgba(255,255,255,.02);--border:rgba(125,233,244,.18);--border-strong:rgba(125,233,244,.24);--text:#effbfd;--muted:#9abdc7;--accent:#16d2e9;--accent-soft:rgba(22,210,233,.14);--accent-strong:#76ebf8;--button-primary-text:#041015;--button-secondary-hover:rgba(255,255,255,.06)}
}
@media(max-width:1000px){
 .blog-shell .brand-tag {display:none}
 .blog-shell .blog-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .blog-shell .blog-grid>.blog-card:first-child {gap:2rem}
 .blog-shell .blog-reading-grid {grid-template-columns:200px minmax(0,1fr);gap:2.3rem}
 .blog-filters {grid-template-columns:2fr 1fr 1fr}.blog-filters button {justify-self:start;min-height:36px}
}
@media(max-width:760px){
 .blog-shell .site-header-inner {display:grid;grid-template-columns:1fr auto;gap:.5rem;padding:.7rem 0;min-height:0}
 .blog-shell .site-nav {grid-column:1/-1;grid-row:2;display:flex;justify-content:space-between;gap:.4rem;width:100%;flex-wrap:nowrap}
 .blog-shell .site-nav a {font-size:.82rem;padding:.4rem .1rem;min-height:40px;display:flex;align-items:center}
 .blog-shell .brand-name {font-size:1.05rem}.blog-shell .brand-logo {width:33px;height:33px}
 .blog-shell .blog-intro {grid-template-columns:1fr;gap:1.8rem;padding-block:2.5rem 3rem}
 .blog-shell .blog-intro-copy {max-width:540px}.blog-shell .blog-intro .lead{font-size:1.08rem}
 .blog-shell .blog-grid>.blog-card:first-child {grid-template-columns:1fr;gap:0}
 .blog-shell .blog-grid>.blog-card:first-child .blog-card-body {padding-top:1.3rem}
 .blog-shell .blog-reading-grid {display:block;padding-top:1.2rem}
 .blog-reading-aside {position:static;max-height:none;padding:0;margin:0 0 2.5rem}
 .blog-toc {border-block:1px solid var(--border);padding:1rem 0}
 .blog-toc nav {max-height:240px;overflow:auto;padding-right:.5rem}
 .blog-back-link {margin-top:.8rem}
 .blog-shell .blog-hero-media {aspect-ratio:16/10}
 .blog-shell .blog-article-header .lead {font-size:1.05rem}
 .blog-shell .article-body {font-size:1.06rem;line-height:1.8}
 .blog-directory {column-gap:1.5rem}
 .blog-section-heading {align-items:start;gap:.8rem;flex-direction:column}
 .blog-related-grid {grid-template-columns:1fr;gap:.5rem}
 .blog-signoff>a {margin-left:0}
}
@media(max-width:520px){
 .blog-shell .blog-grid {grid-template-columns:1fr;gap:2rem}
 .blog-shell .blog-grid>.blog-card:first-child h3 {font-size:1.7rem}
 .blog-shell .blog-grid>.blog-card:first-child p {font-size:.98rem}
 .blog-directory {grid-template-columns:1fr}
 .blog-filters {grid-template-columns:1fr 1fr;gap:.8rem}
 .blog-search-label {grid-column:1/-1}.blog-filters input,.blog-filters select {font-size:1rem}
 .blog-shell .blog-pagination {justify-content:start;gap:1rem}
 .blog-shell .blog-signoff {gap:1.25rem}
 .blog-shell .blog-article-header h1 {font-size:2.05rem;line-height:1.15}
 .blog-article-meta {font-size:.76rem;gap:.6rem 1.1rem}
 .blog-shell .blog-article-type {flex-wrap:wrap;gap:.5rem;font-size:.75rem}
 .blog-shell .page-section {padding-block:2rem}
 .blog-shell .blog-intro {padding-block:2rem 2.5rem}
 .blog-shell .blog-article-header {padding-top:1.5rem;padding-bottom:.5rem}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.blog-shell *{transition:none!important}}
@media print{
 body.blog-editorial-page{background:#fff;color:#000}
 .blog-shell .site-header,.blog-shell .site-footer,.blog-shell .site-breadcrumbs,.blog-reading-aside,.blog-topics,.blog-product-context,.blog-related,.blog-theme-toggle{display:none!important}
 .blog-shell .blog-reading-grid{display:block}.blog-shell .page-section{width:100%;padding:0}
 .blog-shell .article-body{font-size:11pt}.blog-shell .blog-hero-media{max-height:200px}
}
