/* Cygnus blog: list, category and post pages. */

.blog .bcrumbs { margin-bottom: 20px; font-size: .9rem; }

/* Hero */
.bhero { padding: calc(var(--hdr) + clamp(28px, 5vw, 72px)) 0 clamp(24px, 3vw, 40px); }
.bhero-t { font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; font-stretch: 110%; max-width: 16ch; margin: 0 0 18px; color: var(--ink); }
.bhero-l { max-width: 640px; font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--muted); margin: 0; }
.bcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.bcats a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 650; font-size: .95rem; color: var(--ink); transition: background-color .2s, color .2s, border-color .2s; }
.bcats a span { font-size: .78rem; opacity: .6; }
.bcats a:hover { border-color: var(--ink); }
.bcats a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.bposts { padding-top: clamp(16px, 2vw, 28px); }

/* Branded covers (used when a post has no featured image) */
.bcard-m { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--r-l); overflow: hidden; background: var(--teal); }
.bcard-m img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--e, ease); }
.pcov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 2.4vw, 28px); color: var(--paper); background: radial-gradient(120% 90% at 100% 0%, rgba(253, 207, 59, .22), transparent 55%), linear-gradient(150deg, #1d5d6b, #0b1f24); overflow: hidden; }
.pcov::after { content: ""; position: absolute; right: -16%; bottom: -38%; width: 52%; aspect-ratio: 1; border-radius: 50%; border: 18px solid rgba(253, 207, 59, .9); opacity: .9; transition: transform .6s var(--e, ease); }
.pcov-1 { background: radial-gradient(120% 90% at 0% 100%, rgba(253, 207, 59, .25), transparent 55%), linear-gradient(160deg, #154854, #0b1f24); }
.pcov-1::after { right: auto; left: 58%; bottom: auto; top: -36%; border-radius: 28px; transform: rotate(18deg); }
.pcov-2 { background: linear-gradient(150deg, #FDCF3B, #f3b70f); color: var(--ink); }
.pcov-2::after { border-color: rgba(21, 72, 84, .9); }
.pcov-3 { background: linear-gradient(150deg, #0b1f24, #154854); }
.pcov-3::after { width: 40%; right: 6%; bottom: -12%; border-width: 14px; box-shadow: -90px -40px 0 -6px rgba(248, 250, 252, .14); }
.pcov b { position: relative; z-index: 1; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: .78rem; letter-spacing: .02em; text-transform: uppercase; }
.pcov-2 b { background: var(--ink); color: var(--yellow); }
.pcov > span { position: relative; z-index: 1; max-width: 66%; font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.12; font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; }
.pcov i { position: relative; z-index: 1; font-style: normal; font-size: .72rem; font-weight: 700; opacity: .7; letter-spacing: .04em; }
a:hover .pcov::after { transform: translate(-6px, -6px) rotate(8deg); }
a:hover .bcard-m img { transform: scale(1.04); }

/* Cards */
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 28px); }
.bcard a { display: block; color: var(--ink); }
.bcard-meta { display: block; margin: 16px 0 8px; font-size: .85rem; font-weight: 650; color: var(--teal); }
.bcard-t { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.22; font-weight: 750; letter-spacing: -.015em; margin: 0 0 8px; }
.bcard p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.bcard a:hover .bcard-t { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Featured (latest) */
.bfeat { margin-bottom: clamp(36px, 5vw, 64px); }
.bfeat a { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 56px); align-items: center; color: var(--ink); }
.bfeat .bcard-m { aspect-ratio: 16 / 9; }
.bfeat .pcov > span { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.bfeat-t { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; font-stretch: 108%; margin: 0 0 14px; }
.bfeat p { margin: 0 0 22px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.bfeat-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; border-bottom: 3px solid var(--yellow); padding-bottom: 2px; }

/* Pagination */
.bpag { margin-top: clamp(40px, 5vw, 64px); }
.bpag .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bpag .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 650; }
.bpag .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Post hero */
.phero { padding: calc(var(--hdr) + clamp(24px, 4vw, 56px)) 0 clamp(28px, 4vw, 48px); background: linear-gradient(180deg, rgba(21, 72, 84, .06), transparent); }
.phero-in { max-width: none; }
@media (min-width: 1081px) { .phero-in > * { margin-left: calc(260px + clamp(32px, 5vw, 72px)); max-width: 760px; } }
.phero-cat { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: .85rem; margin-bottom: 18px; }
.phero-t { font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; font-stretch: 108%; margin: 0 0 22px; color: var(--ink); }
.phero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0; color: var(--muted); font-size: .95rem; }
.phero-by { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.phero-by img, .phero-by span { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.phero-by span { display: grid; place-items: center; background: var(--teal); color: var(--yellow); font-size: .8rem; font-weight: 800; }

/* Post layout */
.pgrid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(20px, 3vw, 40px); }
.pbody { max-width: 760px; margin: 0 0 var(--sec); }
.ptoc { position: sticky; top: calc(var(--hdr) + 24px); font-size: .93rem; }
.ptoc > p { margin: 0 0 12px; font-weight: 750; color: var(--ink); }
.ptoc ol { list-style: none; margin: 0 0 24px; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.ptoc a { color: var(--muted); line-height: 1.35; display: block; }
.ptoc a:hover, .ptoc a.on { color: var(--teal); }
.ptoc a.ptoc-cta { display: inline-flex; color: var(--ink); white-space: nowrap; line-height: 1; }
.ptoc a.ptoc-cta:hover { color: var(--ink); }

.pans { padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-l); background: var(--ink); color: var(--paper); }
.pans p { margin: 0; font-size: 1.08rem; line-height: 1.65; }
.pans .pans-k, .ptk .ptk-k { margin: 0 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.ptk { padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-l); background: rgba(253, 207, 59, .16); border: 1px solid rgba(253, 207, 59, .55); }
.ptk .ptk-k { color: var(--teal); }
.prose .ptk ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.prose .ptk li { position: relative; padding-left: 28px; margin: 0; font-weight: 600; }
.prose .ptk li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
.pbody h2 { scroll-margin-top: calc(var(--hdr) + 20px); }
.prose .tbl { overflow-x: auto; margin-inline: 0; border: 1px solid var(--line); border-radius: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; line-height: 1.45; }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: rgba(21, 72, 84, .07); font-weight: 750; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:empty { min-width: 60px; }
.prose strong { color: var(--ink); }

/* Author */
.pauth { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; margin-top: 3em !important; padding: 24px; border-radius: var(--r-l); background: var(--white); border: 1px solid var(--line); }
.pauth-ph { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(150deg, var(--teal), var(--ink)); color: var(--yellow); font-weight: 900; font-size: 1.8rem; }
.pauth-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.pauth p { margin: 0 0 6px; font-size: .98rem; line-height: 1.55; color: var(--muted); }
.pauth .pauth-n { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.pauth .pauth-n a { color: var(--ink); text-decoration: none; }
.pauth .pauth-r { color: var(--teal); font-weight: 650; }

.prel { padding-top: 0; }
.prel-t { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; margin: 0 0 28px; }

@media (max-width: 1080px) {
	.pgrid { grid-template-columns: 1fr; }
	.ptoc { position: static; display: none; }
	.pbody { margin-inline: auto; }
}
@media (max-width: 900px) {
	.bgrid { grid-template-columns: 1fr 1fr; }
	.bfeat a { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.bgrid { grid-template-columns: 1fr; }
	.pauth { grid-template-columns: 1fr; }
	.pauth-ph { width: 72px; height: 72px; font-size: 1.3rem; }
}

/* v4.0 reading progress */
.read-bar { position: fixed; left: 0; top: 0; z-index: 200; width: 100%; height: 3px; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .read-bar { display: none; } }

/* v4.0 lead boxes in posts */
.pmid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 32px 0; padding: 18px 20px; border-radius: 18px; background: var(--mist); border-left: 4px solid var(--yellow); }
.pmid p { margin: 0; flex: 1 1 320px; }
.plead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; align-items: center; margin: 44px 0 0; padding: clamp(20px, 2.6vw, 32px); border-radius: 24px; background: var(--teal); color: var(--paper); }
.plead h2 { color: var(--paper); margin: 4px 0 8px !important; font-size: clamp(1.4rem, 2.2vw, 1.9rem) !important; }
.plead p { color: rgba(248, 250, 252, .82); margin: 0; }
.plead-k { color: var(--yellow) !important; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.plead-form { padding: 16px; border-radius: 18px; background: var(--paper); color: var(--ink); }
.plead-form .form-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
.plead-form .fld:has(#f-checklist-company) { grid-column: 1 / -1; }
.plead-form .fld-err:empty { display: none; }
.plead-form .form-foot { margin-top: 10px; }
.plead-form .form-foot .btn { width: 100%; justify-content: center; }
.plead-form .form-fine { font-size: .74rem; }
@media (max-width: 760px) { .plead { grid-template-columns: 1fr; } }
.prose .pmid a.btn, .prose .plead .btn { text-decoration: none; background-image: none; }
.prose .pmid a.btn { color: var(--paper); }
.prose .plead-form p, .prose .plead-form .form-fine { color: var(--muted); }
.prose .plead-form .form-fine a { color: var(--ink); }
.prose .plead .btn-i, .prose .pmid .btn-i { flex: none; width: 30px; height: 30px; display: grid; place-items: center; }
.prose .plead .btn-i svg, .prose .pmid .btn-i svg { width: 16px; height: 16px; margin: 0; }
