/* Web version additions (index.html topbar and footer, site/install.html). */

a.btn { text-decoration: none; }

/* "Download Chrome extension" button in the Editor's top bar. */
.get-ext { gap: 6px; margin-right: 6px; text-decoration: none; white-space: nowrap; }
.get-ext:hover { color: #fff; }
@media (max-width: 1100px) {
  .get-ext .get-ext-label { display: none; }
  .get-ext { width: 30px; padding: 0; justify-content: center; }
}

/* Phones and narrow windows: the Editor hides the mode switch below 900px (fine in the
   extension, whose popup has its own Convert tab); on the web it is the only way to reach the
   font converter, so it moves to a full-width second row of the top bar instead. */
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; padding: 8px 12px; }
  .topbar .mode { display: flex; order: 3; flex-basis: 100%; margin-left: 0; }
  .topbar .mode-btn { flex: 1; }
  .topbar .tools { margin-left: auto; }
}
@media (max-width: 520px) {
  .topbar .tool { display: none; }
}

.site-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 20px;
  border-top: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 12px;
}
.site-foot .ok { color: var(--green); display: inline-flex; }
.site-foot a { color: var(--purple); }
.site-foot .grow { flex: 1; }

/* ---------------- Install page ---------------- */
.site-page body { background: var(--bg); }
.site-wrap { max-width: 760px; margin: 0 auto; padding: 28px 22px 60px; line-height: 1.6; }
.site-top { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.site-top .logo {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  font: 600 21px/1 var(--font-si); background: linear-gradient(140deg, #7c3aed 0%, #5b26c2 60%, #2563eb 140%);
}
.site-top .name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.site-top .name .dot { color: var(--purple); }
.site-top .back { margin-left: auto; }
.site-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 16px; }
.site-card h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -0.02em; }
.site-card h2 { font-size: 17px; margin: 0 0 8px; }
.site-card p { margin: 0 0 10px; }
.site-card ul, .site-card ol { margin: 0 0 6px; padding-left: 22px; }
.site-card li { margin: 4px 0; }
.download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 4px; }
.download-row .btn { height: 44px; padding: 0 18px; font-size: 14px; text-decoration: none; }
.download-row .btn-primary:hover { color: #fff; }
.site-card code { font-family: var(--font-mono); background: var(--surface-2); border-radius: 6px; padding: 1px 6px; }
.copy-inline { display: inline-flex; align-items: center; gap: 6px; }
.copy-inline .icon-btn { width: 26px; height: 26px; }
.note { font-size: 12.5px; color: var(--text-2); }
[data-store-only][hidden] { display: none; }
