/* Simulated Firefox */

.ff {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ff-tabs {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 8px 0;
  background: color-mix(in srgb, var(--win-head) 82%, #000 18%);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.ff-tabs::-webkit-scrollbar { display: none; }

.ff-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
  max-width: 220px;
  flex: 1;
  padding: 8px 8px 8px 12px;
  border-radius: 9px 9px 0 0;
  font-size: 12.5px;
  color: var(--text-dim);
  background: transparent;
  position: relative;
  cursor: default;
}
.ff-tab:hover { background: rgba(127, 127, 127, 0.12); }
.ff-tab.on {
  background: var(--win-bg);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.08);
}
.ff-tab .icon { width: 13px; height: 13px; color: var(--accent); }
.ff-tab span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.ff-tab .tab-x {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  flex: none;
}
.ff-tab .tab-x:hover { background: rgba(127, 127, 127, 0.3); }
.ff-tab .tab-x .icon { width: 9px; height: 9px; color: inherit; }

.ff-newtab {
  width: 30px;
  height: 30px;
  margin: 0 2px 4px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  flex: none;
}
.ff-newtab:hover { background: rgba(127, 127, 127, 0.2); color: var(--text); }

.ff-toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 7px 10px;
  background: var(--win-head);
  border-bottom: 1px solid var(--border);
}
.ff-toolbar .nav-btn .icon { width: 15px; height: 15px; }

.ff-urlbar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 13px;
  background: var(--entry-bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 13px;
}
.ff-urlbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.ff-urlbar .icon { width: 13px; height: 13px; color: var(--text-dim); }
.ff-urlbar .icon.site { color: var(--accent); }
.ff-urlbar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  color: var(--text);
  font-size: 13px;
}

.ff-view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: var(--win-bg);
  display: block;
}

.ff-view.loading { opacity: 0.5; }

/* error page */
.ff-error {
  max-width: 520px;
  margin: 90px auto;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  padding: 0 20px;
}
.ff-error h2 { font-size: 21px; color: var(--text); font-weight: 700; margin-bottom: 6px; }
.ff-error .icon { width: 54px; height: 54px; color: var(--text-dim); opacity: .5; margin-bottom: 16px; }

/* internal pages (home / archives / tags) */
.ff-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 46px 34px 90px;
  animation: ff-nav 0.18s ease;
}
@keyframes ff-nav { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ff-hero h1 {
  font-size: 30px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.ff-hero p { color: var(--text-dim); margin: 0 0 10px; }
.ff-hero .ff-badges { margin: 14px 0 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.ff-badge {
  padding: 5px 13px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}
.ff-badge:hover { text-decoration: none; filter: brightness(1.05); }

.ff-h2 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 34px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ff-h2::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.post-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.post-row time { color: var(--text-dim); font-size: 12.5px; font-variant-numeric: tabular-nums; flex: none; width: 92px; }
.post-row .pr-main { min-width: 0; }
.post-row a {
  color: var(--text);
  font-weight: 600;
}
.post-row a:hover { color: var(--accent); }
.post-row .pr-excerpt {
  color: var(--text-dim);
  font-size: 12.5px;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-row .pr-tags { margin-left: auto; flex: none; color: var(--text-dim); font-size: 11.5px; max-width: 160px; text-align: right; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tag-cloud a {
  padding: 6px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 13px;
  color: var(--text);
}
.tag-cloud a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.tag-cloud a b { color: var(--accent); font-weight: 700; }
