/* The blog (server/blog.mjs), on top of landing.css: same header, footer, colors and type. */
.blog .bar{border-bottom:1px solid var(--hair)}
.blog .bar-links a[aria-current=page]{color:var(--text)}
.blog-index,.blog-article{padding:56px 0 96px}
.blog-head{max-width:720px;margin-inline:auto}
.blog-index .blog-head{max-width:none}
.blog-head-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.blog-kicker{margin:0;color:var(--blue-hi);font-size:var(--t-s);font-weight:600;text-decoration:none}
a.blog-kicker:hover{text-decoration:underline}
.blog-head h1{margin:0;font-size:clamp(34px,4.6vw,56px);line-height:1.08;letter-spacing:-.035em;font-weight:680;color:var(--text-strong);text-wrap:balance}
.blog-lede{max-width:640px;margin:16px 0 0;color:var(--lede);font-size:clamp(18px,1.6vw,21px)}
.blog-meta{margin:16px 0 0;color:var(--text-3);font-size:var(--t-s)}

/* Language menu: a disclosure of links, so it works without JavaScript and search engines see every version. */
.blog-lang{position:relative;font-size:14px}
.blog-lang summary{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border:1px solid var(--hair-2);border-radius:8px;cursor:pointer;list-style:none;color:var(--text-2);white-space:nowrap}
.blog-lang summary::-webkit-details-marker{display:none}
.blog-lang summary::after{content:"";width:6px;height:6px;margin-left:4px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.blog-lang summary:hover{background:var(--panel)}
.blog-lang summary:focus-visible,.blog-lang a:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.blog-lang ul{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:220px;margin:0;padding:6px;list-style:none;background:var(--bg);border:1px solid var(--hair-2);border-radius:10px;box-shadow:0 18px 40px -18px rgba(16,24,40,.35)}
.blog-lang a{display:flex;gap:8px;padding:8px 10px;border-radius:6px;color:var(--text);text-decoration:none}
.blog-lang a:hover{background:var(--panel)}
.blog-lang a[aria-current]{font-weight:600;background:var(--panel)}

/* Article */
.blog-body{max-width:720px;margin:40px auto 0;font-size:18px;line-height:1.7;color:var(--text)}
.blog-body>*{margin:0 0 20px}
.blog-body .lede{font-size:21px;line-height:1.55;color:var(--lede)}
.blog-body h2{margin:48px 0 14px;font-size:clamp(24px,2.4vw,30px);line-height:1.2;letter-spacing:-.02em;font-weight:660;color:var(--text-strong)}
.blog-body h3{margin:32px 0 10px;font-size:20px;line-height:1.3;font-weight:640;color:var(--text-strong)}
.blog-body ul,.blog-body ol{padding-left:1.3em}
.blog-body ul{list-style:disc}.blog-body ol{list-style:decimal}
.blog-body li{margin:6px 0}
.blog-body li::marker{color:var(--text-3)}
.blog-body a{color:var(--link);text-underline-offset:3px}
.blog-body strong{font-weight:620;color:var(--text-strong)}
.blog-body blockquote{margin:28px 0;padding:18px 22px;border-left:3px solid var(--blue);border-radius:0 10px 10px 0;background:var(--panel);color:var(--text)}
.blog-body blockquote>*{margin:0 0 10px}.blog-body blockquote>:last-child{margin:0}
.blog-body code{padding:1px 6px;border-radius:5px;background:var(--panel-2);font-size:.88em}
.blog-body table{width:100%;border-collapse:collapse;font-size:16px;display:block;overflow-x:auto}
.blog-body th,.blog-body td{padding:10px 12px;border-bottom:1px solid var(--hair-2);text-align:left;vertical-align:top}
.blog-body th{font-weight:620;color:var(--text-strong)}
/* Screenshots run wider than the text column. */
.blog-body .shot{margin:40px calc(min(0px,(720px - min(1040px,100vw - 2 * var(--m))) / 2));}
.shot img{display:block;width:100%;height:auto;border-radius:12px;box-shadow:var(--window-shadow);background:var(--paper)}
.shot figcaption{max-width:720px;margin:12px auto 0;color:var(--text-3);font-size:15px;line-height:1.5;text-align:center}

/* Call to action */
.blog-cta{max-width:720px;margin:64px auto 0;padding:36px;border-radius:16px;background:var(--panel);text-align:center}
.blog-cta h2{margin:0;font-size:clamp(24px,2.6vw,32px);line-height:1.15;letter-spacing:-.025em;font-weight:680;color:var(--text-strong);text-wrap:balance}
.blog-cta p{margin:12px auto 0;max-width:520px;color:var(--text-2)}
.blog-cta .btn{width:auto;margin-top:24px;padding:0 22px}
.blog-cta .blog-cta-note{margin-top:12px;font-size:14px;color:var(--text-3)}
.blog-index .blog-cta{max-width:none}

/* Cards */
.blog-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:28px;margin:48px 0 0;padding:0;list-style:none}
.blog-card a{display:grid;gap:10px;align-content:start;height:100%;color:inherit;text-decoration:none}
.blog-art{--art-bg:color-mix(in srgb,var(--c) 9%,var(--bg));--art-paper:var(--paper);--art-line:var(--rule);--art-ink:var(--ink);--art-shadow:rgba(16,24,40,.07);display:block;aspect-ratio:16/10;overflow:hidden;border-radius:14px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 18%,transparent)}
:root:not([data-theme=light]) .blog-art{--art-bg:color-mix(in srgb,var(--c) 16%,var(--bg));--art-shadow:rgba(0,0,0,.35)}
.blog-art svg{display:block;width:100%;height:100%}
.blog-card a .blog-art svg>g,.blog-card a .blog-art svg>path,.blog-card a .blog-art svg>rect:nth-child(n+5){transition:translate 300ms var(--ease-out)}
@media (hover:hover) and (prefers-reduced-motion:no-preference){.blog-card a:hover .blog-art svg>g{translate:0 -3px}}
.blog-card strong{font-size:20px;line-height:1.3;letter-spacing:-.015em;font-weight:650;color:var(--text-strong)}
.blog-card span{color:var(--text-2);font-size:var(--t-s)}
.blog-card .blog-card-meta{margin-top:6px;color:var(--text-3);font-size:13px}
.blog-card a:hover strong{text-decoration:underline;text-underline-offset:3px}
.blog-more{max-width:1040px;margin:80px auto 0}
.blog-more h2{margin:0;font-size:24px;letter-spacing:-.02em;font-weight:660}

@media (max-width:640px){
 .blog-index,.blog-article{padding:32px 0 64px}
 .blog-body{font-size:17px}
 .blog-body .shot{margin-inline:0}
 .blog-cta{padding:28px 20px}
 .blog-lang ul{min-width:200px}
}

.bar-act .blog-lang a{display:flex}
.bar-act .blog-lang{margin-right:4px}

/* Phones: the header row must fit the screen, or the whole page scrolls sideways. The language
   menu shows only its flag (the name stays in the aria-label and in the open list). */
@media (max-width:640px){
 .bar-row{gap:12px}
 .bar .mark{flex:none}
 .bar-act{gap:8px;min-width:0}
 .bar-act .blog-lang{margin-right:0}
 .bar-act .blog-lang summary{gap:0;padding:0 10px;font-size:0}
 .bar-act .blog-lang summary>span{font-size:16px;line-height:1}
 /* The open list hangs from the header's right margin, not the small flag button, so it stays on screen. */
 .bar-act .blog-lang{position:static}
 .bar-act .blog-lang ul{right:var(--m);top:calc(100% - 6px);font-size:14px}
}
@media (max-width:379px){
 .bar-act .gh-link{display:none}
}

/* Comparison pages (server/compare.mjs): /compare and /compare/thrive-vs-<product>. */
.vs-page{padding:56px 0 96px}
.vs-hero{text-align:center}
.vs-hero .blog-head-row{text-align:left}
.vs-hero .blog-lede{margin-inline:auto}
.vs-logos{display:flex;align-items:center;justify-content:center;gap:16px;margin:32px 0 28px}
.vs-thrive,.vs-logo{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:60px;padding:0 20px;border-radius:14px;box-shadow:inset 0 0 0 1px var(--hair-2)}
.vs-thrive{background:var(--bg);color:var(--text-strong);font-size:22px;font-weight:680;letter-spacing:-.03em}
/* Other products' logos are drawn for light backgrounds, so their tile stays white in dark mode too. */
.vs-logo{background:#fff}
.vs-logo img{display:block;width:auto;height:auto;max-height:30px;max-width:150px}
.vs-x{color:var(--text-3);font-size:13px;font-weight:650;letter-spacing:.08em;text-transform:uppercase}
.vs-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:28px}
.vs-actions .btn{width:auto;margin-top:0;padding:0 20px}
.vs-actions .btn.quiet{box-shadow:inset 0 0 0 1px var(--hair-2)}
.vs-hero .blog-meta{margin-top:20px}

.blog-body .vs-pick{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 0 8px}
.vs-pick section{padding:22px 24px;border-radius:14px;background:var(--panel)}
.vs-pick section:last-child{background:color-mix(in srgb,var(--blue) 7%,var(--bg));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--blue) 28%,transparent)}
.blog-body .vs-pick h2{margin:0 0 10px;font-size:19px;letter-spacing:-.01em}
.vs-pick ul{margin:0;font-size:16px;line-height:1.55}

.blog-body .vs-table{display:table;margin-top:8px}
.vs-table tbody th{width:36%;font-weight:560}
.vs-table thead th{font-size:15px}
.vs-table thead th:last-child,.vs-table td:last-child{background:color-mix(in srgb,var(--blue) 6%,transparent)}
.vs-table td.yes::before,.vs-table td.no::before,.vs-table td.part::before{content:"";display:inline-block;width:16px;height:16px;margin:0 8px -3px 0;-webkit-mask:var(--vs-icon) center/contain no-repeat;mask:var(--vs-icon) center/contain no-repeat}
.vs-table td.yes::before{background:var(--ok);--vs-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.vs-table td.no::before{background:var(--late);--vs-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}
.vs-table td.part::before{background:var(--due);--vs-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 2.5a5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E")}
.vs-note{font-size:15px;color:var(--text-3)}
.vs-tm{max-width:720px;margin:56px auto 0;color:var(--text-3);font-size:13px;line-height:1.5;text-align:center}

.vs-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px;margin:48px 0 0;padding:0;list-style:none}
.vs-card a{display:grid;gap:8px;align-content:start;height:100%;padding:22px;border-radius:16px;box-shadow:inset 0 0 0 1px var(--hair-2);color:inherit;text-decoration:none;transition:background-color 160ms ease}
.vs-card a:hover{background:var(--panel)}
.vs-card-logos{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.vs-card .vs-thrive,.vs-card .vs-logo{height:44px;padding:0 14px;border-radius:10px}
.vs-card .vs-thrive{font-size:17px}.vs-card .vs-thrive img{width:22px;height:22px}
.vs-card .vs-logo img{max-height:22px;max-width:110px}
.vs-card strong{font-size:20px;line-height:1.3;letter-spacing:-.015em;font-weight:650;color:var(--text-strong)}
.vs-card a>span:last-child{color:var(--text-2);font-size:var(--t-s)}
.vs-card a:hover strong{text-decoration:underline;text-underline-offset:3px}

@media (max-width:640px){
 .vs-page{padding:32px 0 64px}
 .blog-body .vs-pick{grid-template-columns:1fr}
 .vs-logos{gap:10px}
 .vs-thrive,.vs-logo{height:52px;padding:0 14px}
 .vs-logo img{max-width:120px}
}
.vs-logo-text{color:#111;font-size:20px;font-weight:650;letter-spacing:-.02em}
.vs-card .vs-logo-text{font-size:16px}
