.read-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #16306f, var(--accent));
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 70;
}
.post-masthead { padding: 48px 0 8px; }
.post-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-soft); font-size: 14px; }
.post-breadcrumb a { color: var(--ink-soft); }
.post-breadcrumb a:hover { color: var(--accent); }
.bc-current { color: var(--ink); }
.post-meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; color: var(--ink-soft); font-size: 14px; }
.post-meta-top span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--ice);
    color: var(--accent);
}
.post-masthead h1 {
    max-width: min(14em, 100%);
    overflow-wrap: anywhere;
    margin-top: 14px;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 520;
    letter-spacing: -0.045em;
    line-height: 1.12;
    color: var(--night);
}
.post-lead { max-width: min(38em, 100%); margin-top: 16px; color: var(--ink-soft); font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.post-meta-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; color: var(--ink-soft); font-size: 14px; }
.post-body-section { padding: 28px 0 20px; }
.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 40px;
    align-items: start;
    width: 100%;
    min-width: 0;
}
.article-content { min-width: 0; color: var(--ink); font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.brief {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 8px;
}
.brief div {
    padding: 14px 14px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}
.brief strong { display: block; color: var(--night); font-size: 14px; font-weight: 600; line-height: 1.35; }
.brief span { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.article-content h2 {
    margin: 42px 0 12px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 28px;
    font-weight: 520;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--night);
}
.article-content h3 { margin: 22px 0 8px; font-size: 18px; font-weight: 600; color: var(--night); }
.article-content p { margin-top: 12px; }
.article-content a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.article-content ul:not(.cta-spec-card) { list-style: none; margin: 16px 0; padding: 0; }
.article-content ul:not(.cta-spec-card) li {
    position: relative;
    margin: 0;
    padding: 10px 0 10px 16px;
    border-top: 1px solid var(--line);
}
.article-content ul:not(.cta-spec-card) li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.callout, .tip, .warning {
    margin: 18px 0;
    padding: 16px 18px;
    border-radius: 14px;
    border-left: 3px solid var(--accent);
    background: linear-gradient(90deg, var(--ice), #fff 72%);
    color: var(--night);
}
.warning { border-left-color: #9a5b32; background: linear-gradient(90deg, #f8efe8, #fff 72%); }
.data-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    margin: 18px 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
    overflow-wrap: anywhere;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-variant-numeric: tabular-nums;
}
.data-table th { background: var(--ice); color: var(--ink-soft); font-size: 13px; font-weight: 560; }
.data-table tr:last-child td { border-bottom: 0; }
.step-list { list-style: none; margin: 16px 0; padding: 0; counter-reset: step; }
.step-item {
    counter-increment: step;
    display: grid;
    grid-template-columns: 2.4em minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}
.step-item::before {
    content: counter(step, decimal-leading-zero);
    color: var(--accent);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    padding: 0.1em 0.35em;
    border-radius: 6px;
    background: var(--ice);
    overflow-wrap: anywhere;
}
.post-aside { position: sticky; top: calc(var(--header) + 18px); display: grid; gap: 14px; min-width: 0; }
.panel-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 16px 16px 10px;
    box-shadow: var(--shadow);
}
.panel-card > strong { color: var(--night); font-size: 13px; letter-spacing: 0.06em; }
.toc-list { list-style: none; padding: 0; margin: 8px 0 0; }
.toc-list a {
    display: flex;
    gap: 8px;
    margin: 2px 0;
    padding: 8px;
    border-radius: 8px;
    color: var(--ink-soft);
    transition: background 180ms ease, color 180ms ease;
}
.toc-list a span { color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.toc-list a.is-on, .toc-list a:hover { background: var(--ice); color: var(--night); }
.sidebar-cta {
    padding: 18px;
    border-radius: 16px;
    color: #fff;
    background:
        radial-gradient(120px 80px at 100% 0%, rgba(255, 255, 255, 0.28), transparent 70%),
        linear-gradient(165deg, #102040, #1a4f8c);
    box-shadow: var(--shadow);
}
.sidebar-cta p { color: rgba(255, 255, 255, 0.74); }
.sidebar-cta strong { display: block; margin-top: 6px; color: #fff; font-size: 20px; font-weight: 520; letter-spacing: -0.03em; }
.sidebar-cta .cta-price { margin: 10px 0 0; color: #fff; font-size: 26px; letter-spacing: -0.03em; }
.sidebar-cta .btn-cta { width: 100%; margin-top: 14px; background: #fff; color: var(--night); }
.article-cta-section {
    margin-top: 36px;
    padding: 26px 24px 22px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(160px 90px at 100% 0%, rgba(255, 255, 255, 0.26), transparent 68%),
        linear-gradient(165deg, #102040 0%, #1a4f8c 78%);
    box-shadow: var(--shadow);
}
.article-cta-section p { color: rgba(255, 255, 255, 0.78); }
.article-cta-section h2 {
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    color: #fff;
    font-size: 30px;
}
.article-cta-section .cta-price { margin: 12px 0 0; color: #fff; font-size: 32px; letter-spacing: -0.04em; font-weight: 520; }
.cta-band { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.cta-copy { max-width: 28em; }
.cta-band .cta-actions { margin-top: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn-cta, .btn-cta-primary, .fc-btn, .btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    transition: transform 180ms ease, background 180ms ease;
}
.btn-cta, .btn-cta-primary, .fc-btn { background: var(--night); color: #fff; }
.article-cta-section .btn-cta-primary { background: #fff; color: var(--night); }
.btn-cta-secondary { border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; }
.btn-cta:hover, .btn-cta-primary:hover, .fc-btn:hover, .btn-cta-secondary:hover { transform: translateY(-1px); }
.cta-spec-card { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.cta-spec-card li { margin-top: 6px; color: rgba(255, 255, 255, 0.78); font-size: 14px; }
#floatingCta {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 16px;
    width: min(640px, calc(100% - 28px));
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 44px 12px 18px;
    background: rgba(16, 32, 64, 0.92);
    color: #fff;
    border-radius: 16px;
    z-index: 50;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    transform: translateX(-50%);
    animation: float-in 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
#floatingCta[hidden] { display: none; }
#floatingCta p { margin: 0; }
#floatingCta .cta-price { margin-left: auto; font-size: 20px; color: #fff; letter-spacing: -0.03em; }
@keyframes float-in {
    from { opacity: 0; transform: translate(-50%, 12px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.fc-btn { background: #fff; color: var(--night); margin-top: 0; flex: none; }
#floatingCtaClose {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    color: #fff;
    font-size: 20px;
}
.related { margin: 12px auto 72px; }
.related h2 { font-size: 28px; font-weight: 520; letter-spacing: -0.03em; color: var(--night); }
.related-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 14px; }
.related-list a {
    display: block;
    min-height: 100%;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform 200ms ease;
}
.related-list a:hover { transform: translateY(-3px); }
.related-list span { color: var(--accent); font-size: 13px; }
.related-list strong { display: block; margin-top: 6px; color: var(--night); font-size: 20px; font-weight: 540; letter-spacing: -0.03em; }
.related-list p { color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 980px) {
    .post-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .post-aside { position: static; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .brief { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .post-aside { grid-template-columns: 1fr; }
    #floatingCta { flex-wrap: wrap; }
    #floatingCta .cta-price { margin-left: 0; }
    #floatingCta .fc-btn { width: 100%; }
    .cta-band { display: block; }
    .cta-band .cta-actions { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    #floatingCta, .related-list a, .toc-list a, .btn-cta, .btn-cta-primary, .fc-btn, .btn-cta-secondary { animation: none; transition: none; }
    .related-list a:hover, .btn-cta:hover { transform: none; }
}
