/* FastRank blog — reading layout on the dark-slate design system */
.fr-main { position: relative; z-index: 10; }
.fr-hero { padding: 3.5rem 0 1.5rem; }
.fr-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.fr-hero h1, .fr-post-head h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.fr-hero h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); max-width: 16ch; }
.fr-lede { color: var(--muted); font-size: 1.05rem; line-height: 1.65; max-width: 42rem; }
.fr-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.75rem 0 0.5rem; }
.fr-chip {
  border: 1px solid var(--stroke);
  background: var(--bg-elev);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 650;
  min-height: 40px;
}
.fr-chip[aria-pressed="true"] {
  color: var(--text);
  border-color: rgba(232, 137, 63, 0.45);
  background: rgba(232, 137, 63, 0.14);
}
.fr-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .fr-grid { grid-template-columns: 1fr 1fr; } }
.fr-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: 1.25rem;
  border: 1px solid var(--stroke);
  background: var(--bg-elev);
  backdrop-filter: blur(16px);
  min-height: 100%;
  transition: border-color .15s ease, transform .15s ease;
}
a.fr-card:hover { border-color: rgba(232, 137, 63, 0.4); transform: translateY(-2px); }
.fr-card h2, .fr-card h3 { font-size: 1.12rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.3; }
.fr-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.fr-card-meta, .fr-byline {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.75rem;
  align-items: center; color: var(--muted); font-size: 0.78rem; font-weight: 650;
}
.fr-badge {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 0.2rem 0.55rem;
  background: rgba(232, 137, 63, 0.14);
  color: var(--accent);
  border: 1px solid rgba(232, 137, 63, 0.28);
}
.fr-crumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; }
.fr-crumb a:hover { color: var(--text); }
.fr-post-head { padding: 2.5rem 0 0.5rem; max-width: 48rem; }
.fr-post-head h1 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); margin: 0.35rem 0 0.9rem; }
.fr-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}
@media (min-width: 1024px) {
  .fr-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 2.75rem; align-items: start; }
}
.fr-toc-desktop { display: none; }
@media (min-width: 1024px) {
  .fr-toc-desktop { display: block; }
  .fr-toc-mobile { display: none; }
}
.fr-toc-sticky {
  position: sticky;
  top: 5.5rem;
  padding: 0.25rem 0 1rem;
}
.fr-toc-sticky ol, .fr-toc-mobile ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.fr-toc-sticky a, .fr-toc-mobile a {
  display: block; color: var(--muted); font-size: 0.84rem; line-height: 1.4; padding: 0.2rem 0;
  border-left: 2px solid transparent; padding-left: 0.7rem;
}
.fr-toc-sticky a:hover, .fr-toc-mobile a:hover { color: var(--text); border-left-color: var(--accent); }
.fr-toc-mobile {
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  background: var(--bg-elev);
  padding: 0.85rem 1rem;
}
.fr-toc-mobile summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.fr-toc-mobile ol { margin-top: 0.6rem; }
.fr-prose { max-width: 46rem; }
.fr-prose h2 {
  font-size: 1.55rem; font-weight: 780; letter-spacing: -0.03em;
  margin: 2.2rem 0 0.8rem; scroll-margin-top: 5.5rem;
}
.fr-prose h3 {
  font-size: 1.12rem; font-weight: 740; margin: 1.4rem 0 0.45rem; scroll-margin-top: 5.5rem;
}
.fr-prose p, .fr-prose li { color: var(--text); line-height: 1.7; font-size: 1.02rem; }
.fr-prose p { margin: 0 0 1rem; }
.fr-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.fr-prose .fr-list { margin: 0 0 1.1rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.fr-prose li::marker { color: var(--accent); }
.fr-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.08em 0.35em;
  border-radius: 0.4rem;
  background: rgba(232, 137, 63, 0.12);
  border: 1px solid rgba(232, 137, 63, 0.22);
}
.fr-callout {
  border: 1px solid rgba(232, 137, 63, 0.28);
  background: linear-gradient(180deg, rgba(232, 137, 63, 0.1), rgba(45, 212, 168, 0.05));
  border-radius: 1rem;
  padding: 0.95rem 1.05rem;
}
.fr-callout-lead { font-size: 1.06rem; }
.fr-example {
  border-left: 3px solid var(--emerald);
  background: rgba(45, 212, 168, 0.06);
  border-radius: 0 1rem 1rem 0;
  padding: 0.4rem 1rem 0.2rem;
  margin: 0.4rem 0 1.2rem;
}
.fr-table-wrap { border-radius: 1rem; overflow: hidden; margin: 0.4rem 0 1.3rem; }
.fr-table-desktop { display: none; }
.fr-table-cards { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.85rem; }
.fr-table-card {
  border: 1px solid var(--stroke);
  border-radius: 0.9rem;
  padding: 0.85rem 0.95rem;
  background: rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .fr-table-card { background: rgba(255, 255, 255, 0.72); }
.fr-table-card h3 { margin: 0 0 0.45rem; font-size: 0.98rem; }
.fr-table-card p { margin: 0.28rem 0; font-size: 0.88rem; color: var(--muted); }
.fr-table-card p span {
  display: block; font-size: 0.68rem; font-weight: 750; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.1rem;
}
@media (min-width: 768px) {
  .fr-table-cards { display: none; }
  .fr-table-desktop { display: block; }
  .fr-table-desktop table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.92rem; }
  .fr-table-desktop th, .fr-table-desktop td { text-align: left; padding: 0.85rem 1rem; vertical-align: top; border-bottom: 1px solid var(--stroke); }
  .fr-table-desktop th { background: rgba(0, 0, 0, 0.22); font-weight: 700; }
  .fr-table-desktop td:first-child { font-weight: 700; }
  .fr-table-desktop tr:hover td { background: rgba(255, 255, 255, 0.02); }
}
.fr-faq { margin-top: 2.2rem; }
.fr-faq-item {
  border: 1px solid var(--stroke);
  border-radius: 0.95rem;
  background: var(--bg-elev);
  margin: 0.6rem 0;
  padding: 0.15rem 0.95rem;
}
.fr-faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 52px; font-weight: 700;
}
.fr-faq-item summary::-webkit-details-marker { display: none; }
.fr-faq-chevron { width: 1rem; height: 1rem; flex: none; transition: transform .15s ease; }
.fr-faq-item[open] .fr-faq-chevron { transform: rotate(180deg); }
.fr-faq-a { color: var(--muted); padding-bottom: 0.85rem; }
.fr-cta {
  margin: 1.6rem 0;
  padding: 1.2rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(232, 137, 63, 0.35);
  background:
    radial-gradient(600px 180px at 0% 0%, rgba(232, 137, 63, 0.16), transparent 60%),
    radial-gradient(500px 180px at 100% 100%, rgba(45, 212, 168, 0.12), transparent 55%),
    var(--bg-elev);
}
.fr-cta-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 0.45rem; line-height: 1.2; }
.fr-cta-lead { color: var(--muted); margin: 0 0 1rem; }
.fr-cta-plans { display: grid; gap: 0.7rem; }
@media (min-width: 800px) { .fr-cta-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fr-plan {
  display: flex; flex-direction: column; gap: 0.15rem;
  border: 1px solid var(--stroke); border-radius: 1rem; padding: 0.9rem 0.95rem;
  background: rgba(0, 0, 0, 0.18); min-height: 100%;
}
[data-theme="light"] .fr-plan { background: rgba(255, 255, 255, 0.8); }
.fr-plan-rec { border-color: rgba(45, 212, 168, 0.55); box-shadow: 0 0 0 1px rgba(45, 212, 168, 0.25); }
.fr-plan-badge { color: var(--emerald); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.fr-plan-name { font-weight: 800; }
.fr-plan-price { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; }
.fr-plan-price span { font-size: 0.85rem; font-weight: 650; color: var(--muted); }
.fr-plan-meta { color: var(--muted); font-size: 0.82rem; margin-bottom: 0.45rem; }
.fr-plan-action {
  margin-top: auto;
  display: inline-flex; justify-content: center;
  border-radius: 0.8rem; padding: 0.55rem 0.7rem;
  background: linear-gradient(135deg, #E8893F 0%, #d9722a 45%, #2DD4A8 120%);
  color: #0B0F14; font-weight: 800; font-size: 0.82rem;
}
.fr-cta-note { margin: 0.85rem 0 0; font-size: 0.8rem; color: var(--muted); }
.fr-cta-note a { color: var(--accent); }
.fr-related { margin-top: 2rem; }
.fr-related h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.8rem; }
.fr-related-grid { display: grid; gap: 0.8rem; }
@media (min-width: 700px) { .fr-related-grid { grid-template-columns: 1fr 1fr; } }
.fr-empty, .fr-error {
  border: 1px solid var(--stroke); border-radius: 1rem; padding: 1.25rem;
  background: var(--bg-elev); color: var(--muted);
}
.fr-empty h1, .fr-error h1 { color: var(--text); font-size: 1.8rem; font-weight: 800; margin-bottom: 0.4rem; }
