:root {
  --post-bg: #f5f7fa;
  --post-navy: #1e2024;
  --post-muted: #5b6470;
  --post-border: #dfe3e8;
  --post-accent: #2ccbd4;
  --post-accent-hover: #0c91ad;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--post-navy);
  background:
    radial-gradient(980px circle at 6% 0%, rgba(44, 203, 212, 0.17), transparent 56%),
    linear-gradient(180deg, #ffffff 0%, var(--post-bg) 100%);
}

main {
  padding: calc(var(--shared-header-height, 96px) + 30px) 24px 64px;
}

.post-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

.breadcrumbs {
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #596475;
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: #0f172a;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #8893a1;
}

.post-panel {
  border: 1px solid var(--post-border);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  padding: 26px;
}

.post-category {
  margin: 0;
  color: #415066;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.post-title {
  margin: 12px 0 0;
  font-size: clamp(1.7rem, 3.3vw, 2.7rem);
  line-height: 1.12;
}

.post-meta {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #4f5d71;
  font-size: 0.92rem;
}

.post-meta .dot {
  color: #8a97a8;
}

.post-hero {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--post-border);
}

.post-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.post-summary {
  margin: 18px 0 0;
  color: var(--post-muted);
  line-height: 1.72;
}

.post-toc {
  margin-top: 24px;
  border: 1px solid var(--post-border);
  background: #f8fafc;
  padding: 16px;
}

.post-toc h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.post-toc a {
  color: #12324b;
  text-decoration: none;
}

.post-toc a:hover,
.post-toc a:focus-visible {
  text-decoration: underline;
}

.post-body {
  margin-top: 26px;
}

.post-body .inline-image {
  margin: 0 0 18px;
  border: 1px solid var(--post-border);
  overflow: hidden;
}

.post-body .inline-image img {
  display: block;
  width: 100%;
  height: auto;
}

.post-body h2 {
  margin: 30px 0 12px;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.2;
}

.post-body p,
.post-body li {
  color: #3e4a5c;
  line-height: 1.8;
}

.post-body ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.post-body a {
  color: #0f5d80;
  font-weight: 600;
}

.post-share {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--post-border);
}

.post-share h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #bcc7d5;
  color: #203041;
  text-decoration: none;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.share-links a:hover,
.share-links a:focus-visible {
  border-color: #8c9db1;
  outline: none;
}

.author-card {
  margin-top: 30px;
  border: 1px solid var(--post-border);
  background: #f8fafc;
  padding: 18px;
}

.author-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.author-card p {
  margin: 10px 0 0;
  color: #425064;
  line-height: 1.7;
}

.author-card a {
  color: #0f5d80;
  font-weight: 700;
}

.related-section {
  margin-top: 32px;
}

.related-section h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-card {
  border: 1px solid var(--post-border);
  background: #ffffff;
  padding: 14px;
}

.related-card p {
  margin: 0;
  color: #516073;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.related-card a {
  margin-top: 8px;
  display: inline-block;
  color: #11263f;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.45;
}

.related-card a:hover,
.related-card a:focus-visible {
  text-decoration: underline;
}

.post-cta {
  margin-top: 34px;
  border: 1px solid #0f172a;
  background: linear-gradient(120deg, #0f172a 0%, #1f2937 100%);
  color: #ffffff;
  padding: 22px;
}

.post-cta h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.post-cta p {
  margin: 10px 0 0;
  color: rgba(226, 234, 244, 0.9);
  line-height: 1.75;
}

.cta-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-btn {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid var(--post-accent);
  background: var(--post-accent);
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  min-height: 48px;
}

.brand-btn span {
  display: inline-flex;
  align-items: center;
}

.brand-btn .text {
  padding: 0 16px;
}

.brand-btn .arrow {
  justify-content: center;
  width: 40px;
  background: #000000;
}

.brand-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.brand-btn:hover,
.brand-btn:focus-visible {
  background: var(--post-accent-hover);
  border-color: var(--post-accent-hover);
  outline: none;
}

.brand-btn.secondary {
  background: transparent;
  border-color: #ffffff;
}

.brand-btn.secondary .arrow {
  background: #ffffff;
  color: #0f172a;
}

.brand-btn.secondary:hover,
.brand-btn.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

@media (max-width: 780px) {
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .post-panel {
    padding: 18px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
  }

  .brand-btn {
    width: 100%;
    justify-content: space-between;
  }
}
