/* Connect360 blog. Layout: product-like blog. Short header, one featured story beside a "Start here" rail,
   topic tabs + search (same pattern as Partners), a card grid with designed covers, a sign-up band. */

.b-head { padding-block: 56px 32px; }
.b-head .row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.b-head h1 { margin: 0; font-size: 64px; line-height: 64px; letter-spacing: -0.045em; font-weight: 800; }
.b-head .lede { margin-top: 12px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; min-height: 46px; flex: 0 1 360px; min-width: 0; }
.search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search svg { width: 20px; height: 20px; color: var(--ink-muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 15.5px/22px var(--font-sans); padding: 10px 0; }
.search input:focus { outline: none; }
@media (max-width: 720px) { .b-head { padding-block: 36px 24px; } .b-head h1 { font-size: 44px; line-height: 46px; } .search { flex-basis: 100%; } }

/* Covers */
.cover { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); background: var(--green-tint); }
.cover svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: transform .5s ease-out; }
.cover.dark { background: #0F110D; border-color: #272B23; }
a:hover .cover svg { transform: scale(1.035); }
.cover .chip { position: absolute; left: 14px; top: 14px; z-index: 1; }
.cover.dark .chip { background: rgba(255,255,255,.1); color: #EEF0EA; border-color: transparent; }

/* Featured + start here */
.top { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.feat { display: grid; gap: 18px; color: var(--ink); text-decoration: none; }
.feat .cover { aspect-ratio: 16 / 8.4; border-radius: var(--radius-band); }
.feat h2 { margin: 0; font-size: 36px; line-height: 40px; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.feat:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.feat p { color: var(--ink-muted); font-size: 17px; line-height: 26px; }
.meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-muted); }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.author { display: flex; gap: 10px; align-items: center; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-sunk); border: 1px solid var(--line); color: var(--ink); }
.rail { display: grid; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-band); background: var(--surface); }
.rail h3 { margin: 0 0 8px; }
.rail > a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rail > a:first-of-type { border-top: 0; }
.rail .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--green-tint); color: var(--green); font-variant-numeric: tabular-nums; }
.rail b { font-size: 15.5px; line-height: 21px; font-weight: 650; display: block; }
.rail > a:hover b { color: var(--green); }
.rail span.s { font-size: 13px; color: var(--ink-muted); }
.rail .cta { margin-top: 10px; padding: 16px; border-radius: var(--radius-card); background: var(--green-tint); display: grid; gap: 10px; }
@media (max-width: 980px) { .top { grid-template-columns: 1fr; } .feat h2 { font-size: 30px; line-height: 34px; } }

/* Tabs + grid */
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; background: var(--surface-sunk); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 28px; }
.tabs button { flex: none; font: 600 13.5px/1 var(--font-sans); color: var(--ink-muted); background: transparent; border: 0; border-radius: var(--radius-control); padding: 0 14px; min-height: 38px; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-selected); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
@media (max-width: 1000px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; gap: 14px; color: var(--ink); text-decoration: none; min-width: 0; }
.post h3 { margin: 0; font-size: 20px; line-height: 26px; letter-spacing: -0.015em; font-weight: 700; text-wrap: balance; }
.post:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.post p { color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.post .meta { margin-top: auto; }
.more { display: flex; justify-content: center; margin-top: 40px; }
.none { padding: 36px; text-align: center; color: var(--ink-muted); border: 1px dashed var(--line); border-radius: var(--radius-card); grid-column: 1 / -1; }

/* Sign-up band */
.signup { padding: 40px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.signup form { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input { flex: 1 1 220px; min-width: 0; font: 400 15px/20px var(--font-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 10px 12px; min-height: 46px; }
.signup input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 860px) { .signup { grid-template-columns: 1fr; padding: 24px 18px; } }

/* ---------- Article page ---------- */
.progress { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 3px; z-index: 70; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--green-mark); }
.a-head { padding-block: 36px 28px; display: grid; gap: 14px; justify-items: start; max-width: 900px; margin-inline: auto; }
.crumbs { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); }
.a-head h1 { margin: 0; font-size: 52px; line-height: 56px; letter-spacing: -0.04em; font-weight: 800; text-wrap: balance; }
.dek { font-size: 20px; line-height: 30px; color: var(--ink-muted); margin: 0; max-width: 62ch; text-wrap: pretty; }
.a-meta { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 6px; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; }
.share .btn svg { width: 16px; height: 16px; }
.a-cover { aspect-ratio: 16 / 7; border-radius: var(--radius-band); max-width: 1100px; margin: 0 auto; }
.a-body { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: 64px; justify-content: center; padding-top: 48px; }
.toc { position: sticky; top: calc(var(--layout-header) + 28px); align-self: start; display: grid; gap: 2px; }
.toc .label { margin-bottom: 8px; }
.toc > a { color: var(--ink-muted); text-decoration: none; font-size: 14px; line-height: 20px; padding: 7px 0 7px 12px; border-left: 2px solid var(--line); }
.toc > a:hover { color: var(--ink); }
.toc > a.on { color: var(--green); border-left-color: var(--green-mark); font-weight: 600; }
.toc-cta { margin-top: 20px; padding: 16px; border-radius: var(--radius-card); background: var(--green-tint); display: grid; gap: 8px; }
.toc-cta .btn { justify-self: start; }
.prose { min-width: 0; font-size: 18px; line-height: 30px; }
.prose p { max-width: none; margin: 0 0 20px; }
.prose h2 { font-size: 28px; line-height: 34px; letter-spacing: -0.02em; font-weight: 800; margin: 48px 0 14px; scroll-margin-top: calc(var(--layout-header) + 24px); }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--green-mark); font-size: 24px; line-height: 34px; font-weight: 700; letter-spacing: -0.015em; }
.takeaways { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-card); padding: 22px 24px; margin-bottom: 8px; }
.takeaways ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16.5px; line-height: 25px; }
.a-table { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.a-table table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.a-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-muted); background: var(--surface-sunk); padding: 10px 16px; }
.a-table td { padding: 12px 16px; border-top: 1px solid var(--line); }
.a-table .r { text-align: right; }
.steps { margin: 0 0 20px; padding-left: 24px; display: grid; gap: 12px; }
.mistakes { margin: 0 0 28px; padding-left: 22px; display: grid; gap: 12px; }
.calc { padding: 28px; display: grid; gap: 20px; margin: 36px 0 12px; font-size: 15px; line-height: 22px; scroll-margin-top: calc(var(--layout-header) + 24px); }
.calc-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; flex-wrap: wrap; }
.calc-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.calc-in label { display: grid; gap: 6px; align-content: end; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.calc-in input { font: 600 17px/22px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink); background: var(--surface-sunk); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 10px 12px; min-height: 44px; width: 100%; }
.calc-in input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.calc-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.calc-out > div { padding: 16px 14px 0 0; display: grid; gap: 4px; }
.calc-out > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.calc-out .metric { color: var(--green); }
.calc-out .muted-tile .metric { color: var(--ink-muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.how { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px; border-radius: var(--radius-card); background: var(--green-tint); margin: 36px 0; font-size: 16px; line-height: 24px; }
.how p { margin: 6px 0 10px; }
.endbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; padding: 24px 0; border-top: 1px solid var(--line); margin-top: 8px; font-size: 15px; line-height: 22px; }
.endbar .label { display: block; margin-bottom: 10px; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-control); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--font-sans); text-decoration: none; cursor: pointer; transition: border-color .15s ease-out, background .15s ease-out; }
.sbtn:hover { border-color: var(--green-mark); }
.sbtn svg { width: 17px; height: 17px; }
.sbtn[aria-pressed="true"] { background: var(--green-tint); border-color: var(--green-mark); color: var(--green); }
.helpful form { display: grid; gap: 8px; margin-top: 12px; }
.helpful textarea { font: 400 15px/22px var(--font-sans); color: var(--ink); background: var(--surface-sunk); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 10px 12px; resize: vertical; width: 100%; }
.helpful textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.endbar .ask { grid-column: 1 / -1; margin: 0; }
@media (max-width: 720px) { .endbar { grid-template-columns: 1fr; } .sbtn { min-height: 44px; } }
.author-box { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.author-box p { margin: 4px 0 0; font-size: 14.5px; line-height: 21px; }
@media (max-width: 1080px) { .a-body { grid-template-columns: minmax(0, 700px); } .toc { display: none; } }
@media (max-width: 720px) {
  .a-head h1 { font-size: 36px; line-height: 40px; } .dek { font-size: 18px; line-height: 27px; }
  .a-cover { aspect-ratio: 16 / 9; }
  .prose { font-size: 17px; line-height: 28px; } .prose h2 { font-size: 24px; line-height: 30px; } .prose blockquote { font-size: 20px; line-height: 29px; }
  .calc { padding: 20px 16px; } .calc-in { grid-template-columns: 1fr 1fr; } .calc-out { grid-template-columns: 1fr 1fr; }
  .calc-out > div:nth-child(3) { padding-left: 0; border-left: 0; } .calc-out > div:nth-child(n+3) { padding-top: 14px; }
}
@media (max-width: 420px) { .calc-in { grid-template-columns: 1fr; } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--page); padding: 12px 18px; border-radius: 10px; font-size: 14px; max-width: calc(100vw - 32px); }

/* ---------- Added for the live blog ---------- */
[hidden] { display: none !important; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease-out; }
a:hover .cover img { transform: scale(1.035); }
.prose h3 { font-size: 21px; line-height: 28px; letter-spacing: -0.01em; font-weight: 700; margin: 32px 0 10px; }
.prose a { color: var(--green); text-underline-offset: 3px; }
.prose ol, .prose ul { margin: 0 0 20px; padding-left: 24px; display: grid; gap: 12px; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-card); border: 1px solid var(--line); margin: 8px 0 24px; }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.prose code { font-size: .9em; background: var(--surface-sunk); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.a-table table td[align="right"], .a-table table th[align="right"] { text-align: right; }
.takeaways li p { margin: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rail.cta-only { padding: 0; border: 0; background: transparent; }
.rail.cta-only .cta { margin-top: 0; padding: 24px; }
