@charset "UTF-8";
/* Article pages (blog posts) */
:root {
  --rule: #e2e7eb;
  --mono: "SF Mono", Menlo, Consolas, monospace;
}
.post-header {
  max-width: 840px;
  margin: 64px auto 0;
  padding: 0 24px;
  font-size: .8125rem;
  line-height: 1.8;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.post-header .crumbs { color: var(--muted); min-width: 0; }
.post-header .crumbs a { color: var(--muted); }
.lang {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  line-height: 1.6;
}
.lang a {
  padding: 3px 11px;
  font-size: .75rem;
  color: var(--muted);
  display: block;
  text-decoration: none;
}
.lang a:hover { text-decoration: none; background: #f7fafc; }
.lang a[aria-current] {
  background: #f3f5f7;
  color: #303d45;
}
.lang a + a { border-left: 1px solid var(--rule); }
.post-body {
  max-width: 840px;
  margin: 44px auto 0;
  padding: 0 24px;
  overflow-wrap: break-word;
}
article h1 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .01em;
  margin: 0;
}
article h2 {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 64px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
article h3 {
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.7;
  margin: 40px 0 0;
}
article p,
article li {
  font-size: .9375rem;
  line-height: 1.9;
}
article p { margin: 22px 0 0; }
article ul {
  margin: 22px 0 0;
  padding-left: 1.4em;
}
article li + li { margin-top: 10px; }
article pre {
  margin: 22px 0 0;
  padding: 14px 18px;
  background: #f3f5f7;
  border: 1px solid var(--rule);
  overflow-x: auto;
  font-size: .8125rem;
  line-height: 1.75;
}
article code { font-family: var(--mono); }
article p code,
article li code,
article td code {
  background: #f3f5f7;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: .85em;
}
article pre code { background: none; padding: 0; }
/* CVSS vector with per-metric severity underlines (built by highlight.js) */
.meta-box dl > div { position: relative; }
.cvss { display: inline; font-size: inherit; }
.cvss-m {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 2px solid #e9edf0;
  white-space: nowrap;
}
.cvss .sev-3 { border-color: #c9796a; }
.cvss .sev-2 { border-color: #d3b98a; }
.cvss .sev-1 { border-color: #b4c2cd; }
.cvss .sev-0 { border-color: #e9edf0; }
.cvss-info {
  display: inline-block;
  position: relative;
  top: -2px;
  margin-left: 4px;
  width: 13px;
  height: 13px;
  border: 1px solid #d3dbe1;
  border-radius: 50%;
  color: var(--muted);
  font-size: 9px;
  line-height: 12px;
  text-align: center;
  cursor: help;
  background: #fff;
}
.cvss-info::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(280px, 82vw);
  padding: 3px 8px;
  border-radius: 4px;
  background: #2c3a44;
  color: #f2f5f7;
  font-size: .75rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}
.cvss-info:hover::after, .cvss-info:focus-visible::after { opacity: 1; }
/* Muted syntax highlighting, matching the site palette */
.c-kw { color: #7d4f8f; }
.c-str { color: #2f6f57; }
.c-com { color: #8a97a3; }
.c-num { color: #a2542f; }
.c-flag { color: #304f65; }
article table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 24px 0 0;
  font-size: .8125rem;
  line-height: 1.7;
}
article th,
article td {
  border: 1px solid var(--rule);
  padding: 6px 14px;
  text-align: left;
  vertical-align: top;
}
article th { background: #f3f5f7; font-weight: 500; }
article .note { color: var(--muted); font-size: .8125rem; }
article .credit {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .8125rem;
}
.meta-box {
  border: 1px solid var(--rule);
  padding: 18px 22px;
  margin: 30px 0 0;
  font-size: .8125rem;
  line-height: 1.9;
  color: var(--muted);
}
.meta-box dl { margin: 0; }
.meta-box dl > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
}
.meta-box dt { color: #303d45; }
.meta-box dd { margin: 0; }
.meta-box .meta-timeline {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.meta-box .meta-timeline p { margin: 0; }
.post-footer {
  max-width: 840px;
  margin: 90px auto 64px;
  padding: 0 24px;
  font-size: .8125rem;
  color: var(--muted);
}
.post-footer nav { display: flex; gap: 26px; }
/* Blog index */
.post-list { list-style: none; margin: 26px 0 0; padding: 0; }
.post-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: baseline; font-size: .9375rem; line-height: 1.8; }
.post-list li + li { margin-top: 16px; }
.post-list time { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
/* Line-breaking hygiene: dates and identifiers should never split across lines */
article time, .nb { white-space: nowrap; }
article table td:has(> time:only-child) { white-space: nowrap; }
[lang="ja"] .post-body { line-break: strict; word-break: auto-phrase; }
article blockquote {
  margin: 1.4em 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--rule);
  color: var(--muted);
}
/* Restricted (encrypted) pages — see scripts/encrypt-page.mjs and /restricted.js */
.lock { margin-top: 48px; max-width: 430px; }
.lock p { color: var(--muted); font-size: .875rem; }
.lock form { display: flex; gap: 10px; margin-top: 20px; }
.lock input { flex: 1; min-width: 0; font: inherit; font-size: .875rem; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; color: inherit; }
.lock input:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.lock button { font: inherit; font-size: .875rem; padding: 7px 16px; border: 1px solid var(--rule); border-radius: 4px; background: #f3f5f7; color: inherit; cursor: pointer; }
.lock button:hover { background: #e9edf0; }
.lock .err { color: #b5452f; font-size: .8125rem; margin-top: 12px; }
@media (max-width: 650px) {
  .post-header { margin-top: 40px; }
  .post-body { margin-top: 34px; }
  .meta-box { padding: 14px 16px; }
  .meta-box dl > div { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .meta-box dl > div + div { margin-top: 12px; }
  .post-footer nav { flex-wrap: wrap; }
}
