/* Browsers for privacy and security: comparison table (a real table on
   wide screens, one card per browser below 1100px) and numbered footnotes.
   Only one of table and cards is displayed, so screen readers never get the
   content twice. The site has one (light) theme; the icons carry their own
   light tile, so they read the same whatever the OS colour scheme is. */

.blog-post-body .compare-table { display: table; width: 100%; overflow: visible; font-size: 0.82rem; border-collapse: collapse; }
.blog-post-body .compare-table caption { caption-side: top; text-align: left; font-size: 0.88rem; color: var(--color-text-muted); padding: 0 0 0.5rem; }
.blog-post-body .compare-table th, .blog-post-body .compare-table td { vertical-align: top; overflow-wrap: break-word; }
.blog-post-body .compare-table th[scope="row"] { white-space: normal; width: 7.5rem; }
.blog-post-body .compare-table td:nth-child(2) { width: 4.5rem; }
.blog-post-body .compare-cards { display: none; }
@media (min-width: 1100px) {
  .blog-post-body .compare-wide { width: 1000px; margin: 0 0 1.25rem 50%; transform: translateX(-50%); }
}
@media (max-width: 1099px) {
  .blog-post-body .compare-wide { display: none; }
  .blog-post-body .compare-cards { display: block; }
}
.blog-post-body .compare-card {
  border: 1px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-surface); margin: 0 0 0.85rem; padding: 0.6rem 0.85rem 0.75rem;
}
.blog-post-body .compare-card-title {
  font-size: 1.05rem; margin: 0 0 0.5rem; padding-bottom: 0.45rem; border-bottom: 1px solid var(--color-border);
}
.blog-post-body .compare-card dl { margin: 0; }
.blog-post-body .compare-card dt { font-weight: 700; color: var(--color-primary); font-size: 0.85rem; margin: 0.55rem 0 0.15rem; }
.blog-post-body .compare-card dt:first-child { margin-top: 0; }
.blog-post-body .compare-card dd { margin: 0; font-size: 0.92rem; }

/* Footnotes (role doc-noteref / doc-backlink / doc-endnotes).
   Every footnote link has a target of at least 24 x 24px: an invisible
   ::after square centred on the link, so the hit area grows without
   changing the line height or the space around the number. The focus ring
   is a 3px outline in the primary colour (8.6:1 on the page background). */
.blog-post-body .fn-ref { font-size: 0.75em; line-height: 0; vertical-align: super; margin-left: 0.1em; }
.blog-post-body .fn-ref a, .blog-post-body .fn-back { position: relative; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.blog-post-body .fn-ref a::after, .blog-post-body .fn-back::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 24px; height: 24px; min-width: 100%; transform: translate(-50%, -50%);
}
.blog-post-body .fn-back { display: inline-block; min-width: 24px; min-height: 24px; text-align: center; text-decoration: none; }
.blog-post-body .fn-ref a:focus-visible, .blog-post-body .fn-back:focus-visible,
.blog-post-body .footnotes a:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; border-radius: 2px; }
.blog-post-body .fn-ref a { scroll-margin-top: 5rem; }
/* Adjacent references ("4, 5"): enough room after the comma that their
   24px targets never overlap. */
.blog-post-body .fn-ref span[aria-hidden="true"] { margin-right: 0.75em; }

/* Footnote list: long URLs and titles wrap instead of scrolling sideways. */
.blog-post-body .footnotes ol { font-size: 0.9rem; padding-left: 2rem; overflow-wrap: anywhere; }
.blog-post-body .footnotes li { margin: 0 0 0.4rem; scroll-margin-top: 5rem; }
.blog-post-body .footnotes li:target { background: var(--color-accent-soft); outline: 2px solid var(--color-accent); border-radius: 3px; }

/* Official browser logos (from Wikimedia Commons / Wikipedia, unaltered):
   24px next to the name, decorative (alt="" + aria-hidden, the name is
   text), never larger than the name beside it. */
.blog-post-body .browser-logo { display: inline-block; width: 24px; height: 24px; margin: 0 0.45rem 0 0; vertical-align: -6px; object-fit: contain; border: 0; border-radius: 0; }
.blog-post-body .browser-name { display: inline-flex; align-items: center; }
.blog-post-body .browser-name .browser-logo, .blog-post-body .compare-card-title .browser-logo, .blog-post-body .browser-heading .browser-logo { vertical-align: middle; flex: none; }
.blog-post-body .compare-card-title, .blog-post-body .browser-heading { display: flex; align-items: center; }
.blog-post-body .logo-credits { list-style: none; padding-left: 0; font-size: 0.9rem; }
.blog-post-body .logo-credits li { margin: 0 0 0.35rem; }
.blog-post-body .logo-credits .browser-logo { width: 20px; height: 20px; vertical-align: -4px; }
