/* Article content blocks retain their category accents. */
.post-theme-seo .hzb { border-color: #D5E9DF; box-shadow: 0 18px 40px -30px rgba(11, 107, 71, .5); background: #fff; }
.post-theme-seo .hzb-tag { background: #E8F6EF; color: #0B6B47; }
.post-theme-seo .hzb-chip[aria-selected="true"] { background: #0E8A5F; border-color: #0E8A5F; }
.post-theme-seo .hzb-progress span { background: #0E8A5F; }
.post-theme-seo .hzb-check.is-on { border-color: #0E8A5F; background: #F0FAF5; }
.post-theme-seo .hzb-check input { accent-color: #0E8A5F; }
.post-theme-seo .hzb-ring { background: conic-gradient(#0E8A5F calc(var(--p) * 1%), var(--border) 0); }
.post-theme-seo .hzb-toc-title { color: #0B6B47; }
.post-theme-seo .hzb-takeaways { background: #F2F8F5; border: 1px solid #D5E9DF; }
.post-theme-seo .hzb-takeaways > p:first-child strong { color: #0B6B47; }
.post-theme-seo .hzb-cta-eyebrow { color: #8EE2B9; }

.post-theme-security .hzb-tag { background: #FFF5F4; color: #B42318; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; letter-spacing: .05em; }
.post-theme-security .hzb { border-color: #E3E8EF; box-shadow: 0 18px 40px -28px rgba(11, 18, 32, .55); }
.post-theme-security .hzb-checker, .post-theme-security .hzb-quiz { border-top: 4px solid #0B1220; }
.post-theme-security .hzb-chip[aria-selected="true"] { background: #0B1220; border-color: #0B1220; }
.post-theme-security .hzb-progress span { background: #F04438; }
.post-theme-security .hzb-check.is-on { border-color: #F04438; background: #FFF5F4; }
.post-theme-security .hzb-check input { accent-color: #F04438; }
.post-theme-security .hzb-level-title { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.post-theme-security .hzb-ring { background: conic-gradient(#F04438 calc(var(--p) * 1%), var(--border) 0); }
.post-theme-security .hzb-toc-title { color: #B42318; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.post-theme-security .hzb-takeaways { background: #FFF5F4; border: 1px solid #F9D2CE; }
.post-theme-security .hzb-takeaways > p:first-child strong { color: #B42318; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .05em; }
.post-theme-security .prose pre { background: #0B1220; border: 1px solid #22314A; }
.post-theme-security .hzb-cta { background: #0B1220; border: 1px solid #3B1F24; box-shadow: 0 30px 60px -36px rgba(240, 68, 56, .55); }
.post-theme-security .hzb-cta::before { background: radial-gradient(circle, rgba(240, 68, 56, .3), transparent 65%); }
.post-theme-security .hzb-cta-eyebrow { color: #FF8A80; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.post-theme-security .hzb-cta-inline { background: #FFF5F4; border-color: #F9D2CE; }
/* The floating bar is moved to <body>, so it is themed through the body class. */
.post-theme-security .hzb-sticky { background: #0B1220; border: 1px solid #3B1F24; }

/* ---------- Key takeaways (both themes) ---------- */
.prose blockquote.hzb-takeaways { border-left: 0; border-radius: 16px; padding: 20px 24px; }
.prose blockquote.hzb-takeaways > p:first-child { margin: 0 0 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.prose blockquote.hzb-takeaways ul { margin: 0; }

/* Shared article layout */
.post-layout { --post-navy: #0d233a; --post-orange: #ff7508; --post-panel: #f7f8fa; }
.post-layout #main { background: #fff; }
.post-layout .site-footer { background: var(--post-navy); }
.post-action {
  background: var(--post-orange);
  border-color: var(--post-orange);
  color: #17243b;
}
.post-action:hover { background: #ff9341; color: #17243b; }

.post-article { padding-block: 18px 56px; }
.post-article .breadcrumbs { margin-bottom: clamp(20px, 3vw, 36px); }
.post-article .breadcrumbs ol { font-size: 13px; }
.post-article .breadcrumbs li:not(:last-child)::after { content: "›"; }
.post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 26%);
  grid-template-rows: auto 1fr;
  gap: 20px clamp(22px, 3vw, 42px);
}
.post-intro { grid-column: 1; }
.post-intro h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.15vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.post-chip {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #ffe6d3;
  color: #9b3700;
  font-size: .8rem;
  font-weight: 700;
}
.post-excerpt { max-width: 62ch; margin: 8px 0 0; font-size: 1.05rem; line-height: 1.5; }
.post-byline, .post-author, .post-dates, .post-share { display: flex; align-items: center; }
.post-byline { justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-top: 18px; }
.post-author { gap: 10px; min-width: 0; font-size: .88rem; color: var(--heading); }
.post-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffe6d3;
  color: #9b3700;
  font-size: 1.15rem;
  font-weight: 800;
}
.post-dates { flex-wrap: wrap; gap: 0 6px; color: var(--muted); font-size: .8rem; }
.post-dates > * + *::before { content: "·"; margin-right: 6px; }
.post-share { position: relative; gap: 3px; font-size: .8rem; font-weight: 700; color: var(--heading); }
.post-share > span:first-child { margin-right: 5px; }
.post-share :is(a, button) {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.post-share :is(a, button):hover { background: #fff0e5; color: #9b3700; }
.post-share .icon { color: currentColor; }
.post-share [x-cloak], .post-share-status:empty { display: none; }
.post-share-status {
  position: absolute;
  z-index: 1;
  inset: 100% 0 auto auto;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--post-navy);
  color: white;
  white-space: nowrap;
}

.post-main { grid-column: 1; min-width: 0; }
.post-main .post-cover { margin: 0 0 22px; border-radius: 12px; }
.post-main .post-cover img { display: block; width: 100%; height: auto; }
.post-main .prose { color: var(--heading); font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.post-main .prose--post > p:first-child:not(.post-quick-answer) { border: 0; padding: 0; font: inherit; }
.post-main .prose h2, .post-faq h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); line-height: 1.2; }
.post-main .prose h2 { margin-top: 1.25em; }
.post-main :is(h2, h3)[id] { scroll-margin-top: 100px; }
.post-main .prose .post-quick-answer {
  margin: 0 0 22px;
  padding: 16px 20px;
  border: 1px solid #ffdec4;
  border-radius: 12px;
  background: #fff2e8;
  font: inherit;
}
.post-quick-answer strong { color: #9b3700; margin-right: .35em; }
.post-faq { margin-top: 30px; }
.post-faq h2 { margin-bottom: 12px; }
.post-faq .faq { gap: 0; }
.post-faq .faq details { background: var(--post-panel); }
.post-faq .faq summary { padding: 12px 15px; }
.post-faq .faq summary h3 { font-size: .95rem; }

.post-sidebar { grid-column: 2; grid-row: 1 / span 2; }
.post-resources { display: grid; gap: 22px; }
.post-panel {
  padding: 17px;
  border: 1px solid #e1e6ec;
  border-radius: 12px;
  background: var(--post-panel);
}
.post-panel h2 { margin: 0 0 12px; font-size: 1.14rem; line-height: 1.2; }
.post-panel ul { margin: 0; padding: 0; list-style: none; }
.post-toc { margin-bottom: 22px; }
.post-toc ul { border-left: 2px solid #e1e6ec; }
.post-toc a {
  display: block;
  margin-left: -2px;
  padding: 5px 4px 5px 13px;
  border-left: 2px solid transparent;
  color: var(--heading);
  font-size: .9rem;
}
.post-toc a:is(:hover, :focus-visible, [aria-current="location"]) {
  border-color: var(--post-orange);
  color: #9b3700;
}
.post-service {
  border-color: #203d59;
  background: linear-gradient(145deg, #0d233a, #193855);
  color: #f0f5fb;
  padding: 22px 18px;
}
.post-service h2 { margin-top: 8px; color: white; font-size: 1.4rem; }
.post-service > .icon { width: 38px; height: 38px; color: #ffa250; }
.post-service p { margin: 0 0 16px; font-size: .95rem; line-height: 1.5; }
.post-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 800;
  text-align: center;
}
.post-action .icon { flex: none; width: 16px; height: 16px; color: currentColor; }
.post-related ul { display: grid; gap: 15px; }
.post-related-link { display: flex; align-items: center; gap: 10px; color: var(--heading); font-size: .9rem; line-height: 1.35; }
.post-related-link:hover { color: #9b3700; }
.post-related-link > :is(picture, img) { flex: 0 0 32%; width: 32%; min-width: 0; }
.post-related-link img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; }
.post-related-link > span { min-width: 0; overflow-wrap: anywhere; }
.post-related-link time { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; }

@media (max-width: 760px) {
  .post-grid { grid-template: auto / minmax(0, 1fr); }
  .post-sidebar { display: contents; }
  .post-toc { margin: 0; }
  .post-main { order: 1; }
  .post-resources { order: 2; }
}
