/* 2xN reference kit 1.40: blog post typography, in the Harley Street Eye Hospital style.
   Shared by the blog editor preview and every post in blog/. Tokens come from css/styles.css. */

.post-page { background: var(--bg); color: var(--ink); }

.post { max-width: 800px; margin: 0 auto; padding: calc(100px + 56px) 24px 96px; }
.post__crumbs { margin: 0 0 26px; }
.post__crumbs a, .post__crumbs li { color: var(--ink-muted); }
.post__cat { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.post__title { font-size: clamp(2.125rem, 5vw, 3.25rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 22px; color: var(--ink); text-wrap: balance; }
.post__summary { font-size: clamp(1.125rem, 2.1vw, 1.3125rem); line-height: 1.6; font-weight: 300; color: var(--ink); margin: 0 0 30px; text-wrap: pretty; }
.post__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-muted); }
.post__author { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.post__avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: #ffffff; background: linear-gradient(135deg, #7cc3ef, var(--brand-blue)); }
.post__meta-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.post__hero { margin: 32px 0 8px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2, var(--accent-soft)); box-shadow: var(--shadow-md); }
.post__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Body prose */
.post__body { font-size: 1.0625rem; line-height: 1.8; color: var(--ink); margin-top: 38px; }
.post__body > *:first-child { margin-top: 0; }
.post__body h2 { position: relative; font-size: clamp(1.625rem, 3.4vw, 2.125rem); font-weight: 300; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); margin: 48px 0 18px; padding-bottom: 14px; }
.post__body h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #7cc3ef); }
.post__body h2 .accent { color: var(--accent); }
.post__body h3 { font-size: 1.25rem; font-weight: 600; color: var(--brand-blue); margin: 32px 0 12px; }
.post__body p { margin: 0 0 20px; }
.post__body a { color: var(--accent); font-weight: 600; }
.post__body ul, .post__body ol { margin: 0 0 24px; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.post__body ul li { position: relative; padding-left: 28px; }
.post__body ul li::before { content: ''; position: absolute; left: 4px; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #7cc3ef, var(--brand-blue)); }
.post__body ol { counter-reset: post-ol; }
.post__body ol li { position: relative; padding-left: 36px; counter-increment: post-ol; }
.post__body ol li::before { content: counter(post-ol); position: absolute; left: 0; top: 0.2em; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; color: #ffffff; background: linear-gradient(135deg, #7cc3ef, var(--brand-blue)); }
.post__body strong { font-weight: 700; color: var(--ink); }
.post__body blockquote { margin: 32px 0; padding: 26px 28px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--accent-soft); font-style: italic; font-size: 1.1875rem; line-height: 1.55; font-weight: 300; color: var(--ink); }
.post__inline-img { margin: 36px 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2, var(--accent-soft)); box-shadow: var(--shadow-md); }
.post__inline-img img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }

/* In-article call to action */
.post__cta { position: relative; overflow: hidden; margin: 52px 0 0; padding: 34px 36px; border-radius: var(--radius-lg); color: #ffffff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--brand-blue) 45%, transparent), transparent 65%), linear-gradient(160deg, var(--brand-navy), #0d0c22); }
.post__cta-text { font-size: 1.1875rem; font-weight: 300; line-height: 1.45; margin: 0; max-width: 34ch; color: #ffffff; }
.post__cta .btn { flex-shrink: 0; }

.post__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; min-height: 44px; font-size: 0.9375rem; font-weight: 600; color: var(--ink-muted); text-decoration: none; transition: color 200ms ease, gap 200ms ease; }
.post__back:hover { color: var(--accent); gap: 12px; }
.post__back .arrow { display: inline-block; transform: scaleX(-1); }

@media (max-width: 640px) {
  .post { padding: calc(88px + 32px) 20px 72px; }
  .post__cta { flex-direction: column; align-items: flex-start; }
}

/* The post page has no photo hero, so the header sits on a solid navy band */
.oa:has(.post-page) .oa-head { background: linear-gradient(160deg, var(--brand-navy), #0d0c22); }
.post__inline-img img { object-position: 50% 25%; }

