/* Blog post extras (post.js): the Export menu, and print rules so
   "Save as PDF" makes a clean document. Beside the blog so the site's main
   stylesheet stays untouched. */
.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 32px; }
.post-meta .post-date { margin: 0; }
.post-meta .post-date::before { content: none; }
.post-export { position: relative; flex: none; }
.export-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 14px;
  border: 1px solid #d2d2d7; border-radius: 999px; background: #fff; color: #1d1d1f;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s;
}
.export-btn svg { width: 17px; height: 17px; color: #1d1d1f; }
.export-btn:hover { border-color: #b0b0b5; background: #fafafa; }
.export-btn:focus-visible { outline: none; border-color: #0a84ff; box-shadow: 0 0 0 4px rgba(10, 132, 255, .18); }
.export-btn[aria-expanded="true"] { border-color: #0a84ff; }
.export-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 210px; padding: 6px;
  background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 16px 40px rgba(20,30,60,.16);
}
.export-menu[hidden] { display: none; }
.export-menu [role="menuitem"] {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: none; border-radius: 10px;
  background: none; color: #1d1d1f; font: inherit; font-size: 15.5px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer;
}
.export-menu [role="menuitem"][hidden] { display: none; }
.export-menu [role="menuitem"] svg { flex: none; width: 18px; height: 18px; color: #86868b; }
.export-menu [role="menuitem"]:hover, .export-menu [role="menuitem"]:focus-visible { outline: none; background: #f2f2f4; }
.export-menu [role="menuitem"]:focus-visible { box-shadow: inset 0 0 0 2px #0a84ff; }
.export-menu [role="menuitem"].done, .export-menu [role="menuitem"].done svg { color: #0a84ff; }
.print-foot { display: none; }
@media (max-width: 720px) {
  .export-btn { height: 36px; padding: 0 13px 0 11px; font-size: 14px; }
}

@media print {
  @page { margin: 18mm 16mm 18mm; }
  html, body { background: #fff !important; }
  .topnav, .mnav, footer, .mr-wrap, .post-back, .post-export, .post-cta, .post-more, .regbar, .mail-toast, .trial-pop, .blog-search { display: none !important; }
  .post { max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .post h1 { font-size: 30pt; line-height: 1.12; margin: 0; }
  .post-meta { margin: 8pt 0 14pt; }
  .post-date { font-size: 11pt; color: #555; }
  .post-cover { border-radius: 10pt; max-height: 9cm; width: 100%; object-fit: cover; break-inside: avoid; }
  .post-body { font-size: 11.5pt; line-height: 1.55; color: #1d1d1f; margin-top: 16pt; }
  .post-body h2 { font-size: 16pt; margin: 18pt 0 6pt; break-after: avoid; }
  .post-body p, .post-body li { orphans: 3; widows: 3; }
  .post-body ul, .post-body ol, .post-body blockquote { break-inside: avoid; }
  .post-body a { color: #1d1d1f; text-decoration: underline; }
  .post-body a[data-url]::after { content: " (" attr(data-url) ")"; font-size: 9pt; color: #555; word-break: break-all; text-decoration: none; }
  .print-foot { display: block; margin-top: 20pt; padding-top: 8pt; border-top: 0.5pt solid #ccc; font-size: 9pt; color: #555; }
}

/* Byline: author link reads as part of the line. */
.post-meta .post-date { line-height: 1.5; }
.post-date a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
