/* tenniswings.com blog: articles and the index (on top of site.css). */
.post { padding: 56px 0 72px; }
.wrap.narrow { max-width: 820px; }
.post h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: .3em; }
.post .lead { max-width: none; }
.back { display: inline-block; font-weight: 700; margin-bottom: 18px; color: var(--muted); }
.kind { display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ball-dark);
        background: rgba(163, 204, 41, .16); border-radius: 6px; padding: 3px 8px; }
.byline { color: var(--muted); font-size: .92rem; margin: 0 0 8px; }

.blog { font-size: 1.06rem; }
.blog h2 { font-size: 1.5rem; margin-top: 2.1em; }
.blog h3 { margin-top: 1.6em; }
.blog p, .blog li { color: var(--text); }
.blog strong { color: var(--ink); }
.blog blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--ball); background: #fff; border-radius: 0 10px 10px 0; color: var(--ink); }

.shot { margin: 1.8em 0; }
.shot img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot.phone img { width: 300px; margin: 0 auto; border-radius: 22px; }
.shot figcaption, .diagram figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; text-align: center; }
.diagram { margin: 2em 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 18px 14px; box-shadow: var(--shadow); }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram text { font-family: "Nunito Sans", system-ui, sans-serif; }

.callout { margin: 1.6em 0; padding: 16px 20px; border-radius: 12px; background: #fff7e6; border: 1px solid #f5d58a; color: #6b4a00; }
.callout strong { color: #6b4a00; }
.callout.note { background: #eef4ff; border-color: #c8d8fb; color: #1e3a8a; } .callout.note strong { color: #1e3a8a; }

.usecase { margin: 1.8em 0; padding: 22px 24px; border-radius: 14px; background: var(--ink); color: #dfe6f3; }
.usecase h3 { color: #fff; margin: 0 0 .4em; } .usecase p, .usecase li { color: #dfe6f3; }
.usecase .who { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--ball); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.4em 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 50px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ball);
                    color: var(--ink); font-weight: 900; display: flex; align-items: center; justify-content: center; }
.blog table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .96rem; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.blog th, .blog td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.blog th { background: #f1f4f9; color: var(--ink); font-weight: 800; }
.blog pre.email { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; font-family: ui-monospace, Menlo, monospace; font-size: .9rem; color: var(--ink); }

.post-cta { margin-top: 48px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.post-cta h2 { font-size: 1.4rem; }
.more { margin-top: 56px; } .more h2 { font-size: 1.4rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 26px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: inherit; box-shadow: var(--shadow); }
.post-card:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s; }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); }
.post-card div { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.post-card h3 { margin: 4px 0 0; } .post-card p { margin: 0; font-size: .95rem; } .post-card small { color: var(--muted); }
@media (max-width: 640px) { .post { padding-top: 32px; } .usecase { padding: 18px; } .blog table { font-size: .86rem; } }
.post-card .kind { align-self: flex-start; }
