body {
  max-width: 680px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.8;
  color: #111;
  background: #fff;
}

a {
  color: #111;
}

a:hover {
  color: #555;
}

h1 {
  font-size: 1.4em;
  font-weight: bold;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.1em;
  font-weight: bold;
  margin: 2em 0 0.4em 0;
}

h3 {
  font-size: 1em;
  font-weight: bold;
  margin: 1.5em 0 0.3em 0;
}

p {
  margin: 0 0 1em 0;
}

ul, ol {
  margin: 0 0 1em 0;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.3em;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}

blockquote {
  margin: 1.5em 0 1.5em 1.5em;
  padding: 0;
  border: none;
  color: #444;
  font-style: italic;
}

/* Header */
.site-header {
  margin-bottom: 2.5em;
  padding-bottom: 0.75em;
  border-bottom: 1px solid #ddd;
}

.site-title {
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  color: #111;
}

.site-nav {
  margin-top: 0.4em;
  font-size: 0.875em;
  font-family: system-ui, -apple-system, sans-serif;
}

.site-nav a {
  margin-right: 1.2em;
  color: #555;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: #bbb;
  text-underline-offset: 3px;
}

.site-nav a:hover {
  color: #111;
  text-decoration-color: #111;
  text-decoration-style: dashed;
}

.site-nav a.active {
  color: #111;
  font-weight: 600;
  text-decoration-style: solid;
  text-decoration-color: #111;
}

/* Footer */
.site-footer {
  margin-top: 3em;
  padding-top: 0.75em;
  border-top: 1px solid #ddd;
  font-size: 0.8125em;
  font-family: system-ui, -apple-system, sans-serif;
  color: #444;
}

.site-footer a {
  color: #444;
  margin-right: 1em;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: #bbb;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: #111;
  text-decoration-color: #111;
  text-decoration-style: dashed;
}

.site-footer a.active {
  color: #111;
  font-weight: 600;
  text-decoration-style: solid;
  text-decoration-color: #111;
}

/* Index page links */
.page-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-list li {
  margin-bottom: 0.75em;
  padding-bottom: 0.75em;
  border-bottom: 1px solid #eee;
}

.page-list li:last-child {
  border-bottom: none;
}

.page-list a {
  font-weight: bold;
  text-decoration: none;
}

.page-list a:hover {
  text-decoration: underline;
}

.page-list .page-desc {
  display: block;
  color: #555;
  font-size: 0.9375em;
}

/* Footnotes */
sup a {
  font-size: 0.75em;
  line-height: 0;
  text-decoration: none;
  color: #555;
  vertical-align: super;
}

sup a:hover {
  text-decoration: underline;
}

.references {
  margin-top: 2.5em;
  padding-top: 1em;
  border-top: 1px solid #ddd;
  font-size: 0.875em;
  font-family: system-ui, -apple-system, sans-serif;
}

.references h2 {
  font-size: 1em;
  font-family: system-ui, -apple-system, sans-serif;
  margin-top: 0;
}

.references ol {
  padding-left: 1.75em;
  margin: 0;
}

.references li {
  margin-bottom: 0.6em;
  line-height: 1.6;
  color: #444;
}

.references a {
  color: #444;
}

.back-ref {
  text-decoration: none;
  color: #aaa;
  margin-left: 0.35em;
  font-size: 0.9em;
}

.back-ref:hover {
  color: #555;
}

/* Nav: Extension link with Chrome icon */
.nav-chrome-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.25em;
  margin-bottom: 0.1em;
  opacity: 0.6;
}

a.nav-extension {
  display: inline-flex;
  align-items: center;
}

a.nav-extension:hover .nav-chrome-icon,
a.nav-extension.active .nav-chrome-icon {
  opacity: 1;
}

/* Homepage: Extension CTA block */
.extension-cta {
  border: 1px solid #ddd;
  padding: 1.1em 1.25em;
  background: #fafafa;
}

.extension-cta-header {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.5em;
}

.extension-cta-icon {
  display: flex;
  align-items: center;
  opacity: 0.75;
  flex-shrink: 0;
}

.extension-cta-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.875em;
  font-weight: 600;
  color: #111;
  letter-spacing: 0;
}

.extension-cta-desc {
  font-size: 0.9375em;
  color: #333;
  margin: 0 0 0.85em 0;
  line-height: 1.7;
}

.extension-cta-link {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8125em;
  color: #555;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: #bbb;
  text-underline-offset: 3px;
  margin-right: 1.2em;
}

.extension-cta-link:hover {
  color: #111;
  text-decoration-color: #111;
}

.extension-cta-install {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8125em;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

.extension-cta-install:hover {
  text-decoration: underline;
}

/* Extension page: install button */
.extension-install-wrap {
  margin-top: 1.25em;
}

.extension-install-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9375em;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  border: 1px solid #111;
  padding: 0.5em 1em;
}

.extension-install-link:hover {
  background: #111;
  color: #fff;
}

.extension-install-link:hover .extension-install-icon svg {
  stroke: #fff;
}

.extension-install-icon {
  display: flex;
  align-items: center;
}
