:root {
    --fg-slate: #1f2223;
    --fg-slate-2: #2b3032;
    --fg-yellow: #dfff00;
    --fg-white: #ffffff;
    --fg-body: #f5f6f4;
    --fg-panel: #ffffff;
    --fg-soft: #f1f3f2;
    --fg-border: #dde1df;
    --fg-border-strong: #cdd4d1;
    --fg-text: #1f2223;
    --fg-muted: #617078;
    --fg-faint: #8a979d;
    --fg-shadow: 0 18px 48px rgba(31, 34, 35, 0.08);
}

* {
    box-sizing: border-box;
}

.fencify-guides-body {
    margin: 0;
    font-family: "Onest", system-ui, sans-serif;
    background: var(--fg-body);
    color: var(--fg-text);
}

.fg-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--fg-slate);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 34px rgba(31, 34, 35, 0.16);
}

.fg-topbar__inner,
.fg-main,
.fg-footer {
    width: min(1500px, calc(100vw - 56px));
    margin: 0 auto;
}

.fg-topbar__inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: 250px minmax(280px, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.fg-brand,
.fg-nav,
.fg-nav a,
.fg-back-link,
.fg-category-card,
.fg-popular-card,
.fg-update-card,
.fg-guide-list__item,
.fg-next-prev a {
    color: inherit;
    text-decoration: none;
}

.fg-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.fg-brand img {
    width: 142px;
    height: auto;
    display: block;
}

.fg-nav {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.fg-nav a {
    padding: 10px 17px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 800;
    font-size: 13px;
}

.fg-nav a.is-active,
.fg-nav a:hover {
    background: var(--fg-white);
    color: var(--fg-slate);
}

.fg-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--fg-border);
    border-radius: 999px;
    background: var(--fg-white);
    box-shadow: 0 10px 34px rgba(31, 34, 35, 0.06);
}

.fg-topbar .fg-search {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.96);
}

.fg-search--large {
    height: 58px;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

.fg-search--sidebar {
    height: 44px;
    border-radius: 16px;
    box-shadow: none;
}

.fg-search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--fg-text);
    font: inherit;
    font-weight: 650;
}

.fg-search__results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    max-height: 440px;
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--fg-border);
    border-radius: 18px;
    background: var(--fg-white);
    box-shadow: var(--fg-shadow);
}

.fg-search.is-open .fg-search__results {
    display: block;
}

.fg-search__result {
    display: block;
    padding: 12px 14px;
    border-radius: 13px;
    color: var(--fg-text);
    text-decoration: none;
}

.fg-search__result:hover {
    background: #eef1ef;
}

.fg-search__result small,
.fg-search__empty {
    display: block;
    color: var(--fg-muted);
    font-size: 12px;
}

.fg-main {
    padding: 58px 0 92px;
}

.fg-hero {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.fg-hero--compact {
    min-height: 220px;
}

.fg-pill,
.fg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 999px;
    background: var(--fg-slate);
    color: var(--fg-white);
    padding: 8px 14px;
    font-weight: 850;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.fg-eyebrow {
    background: #e9ecea;
    color: var(--fg-muted);
}

.fg-hero h1 {
    max-width: 980px;
    margin: 20px auto 16px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.fg-hero p,
.fg-section p {
    max-width: 780px;
    margin: 0 auto;
    color: var(--fg-muted);
    font-size: 17px;
    line-height: 1.62;
    font-weight: 600;
}

.fg-hero__search {
    width: min(840px, 100%);
    margin-top: 32px;
}

.fg-section {
    margin-top: 76px;
}

.fg-section--split {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 40px;
    align-items: start;
}

.fg-section__heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 22px;
}

.fg-section h2 {
    margin: 14px 0 0;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.04em;
}

.fg-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.fg-category-card,
.fg-guide-list__item,
.fg-update-card,
.fg-popular-card,
.fg-changelog__card,
.fg-empty {
    border: 1px solid var(--fg-border);
    border-radius: 26px;
    background: var(--fg-panel);
    box-shadow: 0 8px 28px rgba(31, 34, 35, 0.04);
}

.fg-category-card {
    padding: 18px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.fg-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(223, 255, 0, 0.7);
    box-shadow: var(--fg-shadow), 0 0 20px rgba(223, 255, 0, 0.16);
}

.fg-category-card__art {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(31, 34, 35, 0.08), transparent 60%),
        var(--fg-soft);
    color: var(--fg-slate);
}

.fg-category-card__art i {
    font-size: 64px;
    color: var(--fg-slate);
}

.fg-category-card__art span,
.fg-guide-list__item span,
.fg-update-card span,
.fg-next-prev span,
.fg-changelog__item aside span {
    color: var(--fg-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fg-category-card h3 {
    margin: 22px 10px 8px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.fg-category-card p {
    margin: 0 10px 18px;
    font-size: 14px;
    line-height: 1.55;
}

.fg-category-card strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 10px 8px;
    font-size: 13px;
    color: var(--fg-slate);
}

.fg-category-card strong i {
    color: var(--fg-yellow);
    transition: transform 180ms ease;
}

.fg-category-card:hover strong i {
    transform: translate(2px, -2px);
}

.fg-popular-grid,
.fg-update-list,
.fg-guide-list {
    display: grid;
    gap: 14px;
}

.fg-popular-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fg-popular-card,
.fg-guide-list__item,
.fg-update-card {
    padding: 22px;
}

.fg-popular-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
}

.fg-popular-card:hover,
.fg-guide-list__item:hover,
.fg-update-card:hover {
    border-color: rgba(223, 255, 0, 0.7);
    box-shadow: var(--fg-shadow), 0 0 20px rgba(223, 255, 0, 0.16);
}

.fg-popular-card small {
    grid-column: 1 / -1;
    color: var(--fg-muted);
    font-weight: 800;
}

.fg-popular-card i,
.fg-update-card strong,
.fg-update-card span {
    transition: color 180ms ease, transform 180ms ease;
}

.fg-popular-card:hover i,
.fg-update-card:hover strong,
.fg-update-card:hover span {
    color: var(--fg-slate);
}

.fg-popular-card:hover i {
    transform: translateX(3px);
}

.fg-update-card:hover strong {
    transform: translateX(2px);
}

.fg-guide-list__item {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.fg-guide-list__item h2 {
    margin: 8px 0;
    font-size: 26px;
}

.fg-guide-list__item p {
    margin: 0;
    font-size: 15px;
}

.fg-update-card p {
    margin: 8px 0 0;
    font-size: 14px;
}

.fg-guide-list__item i {
    transition: color 180ms ease, transform 180ms ease;
}

.fg-guide-list__item:hover {
    transform: translateY(-3px);
}

.fg-guide-list__item:hover i {
    color: var(--fg-yellow);
    transform: translate(2px, -2px);
}

.fg-empty {
    padding: 54px 30px;
    text-align: center;
}

.fg-empty i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 22px;
    background: var(--fg-slate);
    color: var(--fg-yellow);
    font-size: 34px;
}

.fg-empty h2 {
    margin: 0 0 8px;
}

.fg-empty a {
    display: inline-flex;
    margin-top: 18px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--fg-slate);
    color: var(--fg-white);
    font-weight: 800;
    text-decoration: none;
}

.fg-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--fg-muted);
    font-weight: 800;
}

.fg-guide-shell {
    width: min(1760px, calc(100vw - 44px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 270px;
    gap: 46px;
    padding: 34px 0 80px;
}

.fg-sidebar,
.fg-toc {
    position: sticky;
    top: 98px;
    height: calc(100vh - 122px);
    overflow: auto;
}

.fg-sidebar {
    padding: 18px;
    border: 1px solid var(--fg-border);
    border-radius: 24px;
    background: var(--fg-white);
    box-shadow: 0 10px 30px rgba(31, 34, 35, 0.04);
}

.fg-sidebar__mobile-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--fg-border);
    border-radius: 16px;
    background: #eef1ef;
    color: var(--fg-slate);
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.fg-sidebar__mobile-toggle i,
.fg-sidebar__group-toggle i {
    transition: transform 180ms ease;
}

.fg-sidebar__mobile-toggle[aria-expanded="true"] i,
.fg-sidebar__group.is-open .fg-sidebar__group-toggle i {
    transform: rotate(180deg);
}

.fg-sidebar__panel[hidden],
.fg-sidebar__group-panel[hidden] {
    display: none !important;
}

.fg-sidebar__group {
    margin-top: 22px;
}

.fg-sidebar__group:first-of-type {
    margin-top: 18px;
}

.fg-sidebar__group-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fg-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    cursor: pointer;
}

.fg-sidebar__group-toggle:hover {
    color: var(--fg-slate);
}

.fg-sidebar__group-panel {
    margin-top: 9px;
}

.fg-sidebar__group a {
    display: block;
    position: relative;
    padding: 11px 12px 11px 16px;
    border-radius: 13px;
    color: var(--fg-muted);
    text-decoration: none;
    font-weight: 760;
}

.fg-sidebar__group a::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 6px;
    width: 3px;
    border-radius: 999px;
    background: transparent;
}

.fg-sidebar__group a.is-active {
    background: #eef1ef;
    color: var(--fg-slate);
}

.fg-sidebar__group a.is-active::before {
    background: var(--fg-slate);
}

.fg-sidebar__group a:hover {
    background: #f5f6f6;
    color: var(--fg-slate);
}

.fg-article {
    min-width: 0;
}

.fg-preview-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #eef1ef;
    color: var(--fg-slate);
    font-weight: 850;
}

.fg-article__header {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--fg-border);
}

.fg-article__header h1 {
    max-width: 920px;
    margin: 16px 0 12px;
    font-size: clamp(36px, 4.2vw, 56px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.fg-article__header p {
    max-width: 820px;
    margin: 0;
    color: var(--fg-muted);
    font-size: 18px;
    line-height: 1.56;
    font-weight: 650;
}

.fg-featured-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    margin: 32px 0 0;
    border-radius: 26px;
    border: 1px solid var(--fg-border);
}

.fg-prose {
    color: #283034;
    font-size: 17px;
    line-height: 1.78;
}

.fg-prose h2,
.fg-prose h3,
.fg-prose h4 {
    color: var(--fg-text);
    letter-spacing: -0.035em;
    scroll-margin-top: 110px;
}

.fg-prose h2 {
    margin-top: 50px;
    font-size: 32px;
}

.fg-prose h3 {
    margin-top: 30px;
    font-size: 24px;
}

.fg-prose p,
.fg-prose ul,
.fg-prose ol {
    max-width: 880px;
}

.fg-prose img {
    max-width: 100%;
    border-radius: 24px;
    border: 1px solid var(--fg-border);
}

.fg-prose .guide-image {
    margin: 32px 0;
}

.fg-prose .guide-image figcaption {
    margin-top: 10px;
    color: var(--fg-muted);
    font-size: 13px;
    font-weight: 650;
    text-align: center;
}

.fg-prose table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--fg-border);
    border-radius: 18px;
}

.fg-prose th,
.fg-prose td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--fg-border);
    text-align: left;
}

.fg-prose th {
    background: var(--fg-slate);
    color: var(--fg-white);
}

.fg-prose pre {
    overflow: auto;
    padding: 20px;
    border-radius: 20px;
    background: #101313;
    color: #f6f8f8;
}

.fg-prose code {
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(31, 34, 35, 0.08);
}

.fg-prose pre code {
    padding: 0;
    background: transparent;
}

.fg-prose blockquote {
    margin: 26px 0;
    padding: 18px 22px;
    border-left: 5px solid var(--fg-slate);
    border-radius: 16px;
    background: #eef1ef;
}

.fg-toc__inner {
    position: relative;
    padding: 20px 18px 20px 28px;
    border: 1px solid var(--fg-border);
    border-radius: 24px;
    background: var(--fg-white);
    box-shadow: 0 10px 30px rgba(31, 34, 35, 0.04);
}

.fg-toc__inner span {
    display: block;
    margin-bottom: 12px;
    color: var(--fg-muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.fg-toc__track {
    position: absolute;
    top: 50px;
    bottom: 20px;
    left: 14px;
    width: 3px;
    border-radius: 999px;
    background: #e5e9e7;
    overflow: hidden;
}

.fg-toc__thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    min-height: 34px;
    border-radius: 999px;
    background: var(--fg-slate);
    transform: translateY(0);
    transition: transform 120ms linear, height 120ms linear;
}

.fg-toc a {
    display: block;
    padding: 7px 0;
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 760;
}

.fg-toc a:hover {
    color: var(--fg-text);
}

.fg-next-prev {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 56px;
}

.fg-next-prev a {
    padding: 20px;
    border: 1px solid var(--fg-border);
    border-radius: 20px;
    background: var(--fg-white);
}

.fg-next-prev strong {
    display: block;
    margin-top: 6px;
}

.fg-changelog {
    max-width: 1180px;
    margin: 40px auto 0;
}

.fg-changelog__item {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 46px;
    padding: 0 0 58px;
}

.fg-changelog__item aside {
    position: relative;
    padding-top: 14px;
    border-right: 1px solid var(--fg-border);
}

.fg-changelog__item aside::before {
    content: "";
    position: absolute;
    top: 19px;
    right: -6px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--fg-slate);
    box-shadow: 0 0 0 5px rgba(31, 34, 35, 0.08);
}

.fg-changelog__item aside em {
    display: block;
    width: fit-content;
    margin-top: 10px;
    padding: 5px 9px;
    border: 1px solid var(--fg-border);
    border-radius: 999px;
    background: var(--fg-white);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.fg-changelog__card {
    padding: 28px;
}

.fg-changelog__card img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    margin-bottom: 24px;
    border-radius: 22px;
}

.fg-changelog__card h2 {
    margin: 0 0 10px;
    font-size: 32px;
    letter-spacing: -0.04em;
}

.fg-prose--compact {
    font-size: 15px;
}

.fg-roadmap-hero {
    gap: 18px;
}

.fg-roadmap-cta,
.fg-roadmap-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--fg-slate);
    color: var(--fg-white);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(31, 34, 35, 0.14);
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.fg-roadmap-cta:hover,
.fg-roadmap-submit:hover {
    transform: translateY(-2px);
    background: #101313;
    color: var(--fg-yellow);
}

.fg-roadmap {
    max-width: 1240px;
    margin: 42px auto 0;
}

.fg-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.fg-roadmap-card {
    overflow: hidden;
    border: 1px solid var(--fg-border);
    border-radius: 26px;
    background: var(--fg-white);
    box-shadow: 0 8px 28px rgba(31, 34, 35, 0.05);
}

.fg-roadmap-card__image,
.fg-roadmap-card__placeholder {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    background: #eef1ef;
}

.fg-roadmap-card__placeholder i {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: var(--fg-slate);
    color: var(--fg-yellow);
    font-size: 34px;
}

.fg-roadmap-card__body {
    padding: 26px;
}

.fg-roadmap-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
}

.fg-roadmap-card__meta span,
.fg-status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #edf0ee;
    color: var(--fg-slate);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fg-status-badge--priority {
    background: var(--fg-slate);
    color: var(--fg-yellow);
}

.fg-status-badge--queued {
    background: #edf0ee;
    color: var(--fg-slate);
}

.fg-status-badge--assessing {
    background: #fff4d7;
    color: #6d4f00;
}

.fg-status-badge--in_progress {
    background: #dff4ff;
    color: #154456;
}

.fg-status-badge--released {
    background: var(--fg-yellow);
    color: var(--fg-slate);
}

.fg-roadmap-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.12;
}

.fg-roadmap-card p {
    margin: 0;
    color: var(--fg-muted);
    font-size: 15px;
    line-height: 1.65;
    font-weight: 600;
}

.fg-roadmap-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--fg-border);
}

.fg-roadmap-card__footer span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fg-muted);
    font-size: 13px;
    font-weight: 800;
}

.fg-roadmap-card__footer button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid var(--fg-border);
    border-radius: 999px;
    background: var(--fg-white);
    color: var(--fg-slate);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.fg-roadmap-card__footer button:hover {
    border-color: var(--fg-slate);
    background: var(--fg-yellow);
}

.fg-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.fg-modal.is-open {
    display: flex;
}

.fg-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 19, 19, 0.62);
}

.fg-modal__dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: min(860px, calc(100vh - 48px));
    overflow: auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    background: var(--fg-white);
    box-shadow: 0 24px 70px rgba(15, 18, 18, 0.34);
}

.fg-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fg-border);
    border-radius: 999px;
    background: var(--fg-white);
    color: var(--fg-slate);
    cursor: pointer;
}

.fg-modal__header {
    padding-right: 52px;
}

.fg-modal__header h2 {
    margin: 16px 0 10px;
    font-size: 34px;
    line-height: 1.08;
}

.fg-modal__header p {
    margin: 0;
    color: var(--fg-muted);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 650;
}

.fg-feature-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.fg-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.fg-feature-form label {
    display: grid;
    gap: 8px;
    margin: 0;
}

.fg-feature-form label span {
    color: var(--fg-slate);
    font-size: 13px;
    font-weight: 850;
}

.fg-feature-form input,
.fg-feature-form textarea {
    width: 100%;
    border: 1px solid var(--fg-border);
    border-radius: 16px;
    background: #f8f9f8;
    color: var(--fg-slate);
    font: inherit;
    font-weight: 650;
    outline: none;
}

.fg-feature-form input {
    min-height: 48px;
    padding: 0 14px;
}

.fg-feature-form textarea {
    resize: vertical;
    min-height: 112px;
    padding: 13px 14px;
}

.fg-feature-form input:focus,
.fg-feature-form textarea:focus {
    border-color: var(--fg-slate);
    background: var(--fg-white);
    box-shadow: 0 0 0 4px rgba(223, 255, 0, 0.32);
}

.fg-feature-form label.has-error input,
.fg-feature-form label.has-error textarea {
    border-color: #b54747;
}

.fg-feature-form small {
    min-height: 16px;
    color: #b54747;
    font-size: 12px;
    font-weight: 750;
}

.fg-feature-form__status {
    min-height: 24px;
    color: var(--fg-muted);
    font-size: 14px;
    font-weight: 800;
}

.fg-feature-form__status.is-error {
    color: #b54747;
}

.fg-feature-form__status.is-success {
    color: var(--fg-slate);
}

.fg-roadmap-submit {
    width: fit-content;
}

.is-feature-modal-open {
    overflow: hidden;
}

.fg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 0;
    border-top: 1px solid var(--fg-border);
    color: var(--fg-muted);
    font-weight: 750;
}

.fg-footer a {
    color: var(--fg-muted);
    text-decoration: none;
}

.fg-system-footer {
    margin-top: 72px;
    padding: 0 0 34px;
}

.fg-system-footer__inner {
    width: min(1500px, calc(100vw - 56px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(0, 1.4fr) auto;
    gap: 34px;
    padding: 34px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(223, 255, 0, 0.16), transparent 28%),
        linear-gradient(180deg, #25292a 0%, #1b1f20 100%);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 56px rgba(15, 18, 18, 0.24);
}

.fg-system-footer__logo,
.fg-system-footer__group a {
    color: inherit;
    text-decoration: none;
}

.fg-system-footer__logo {
    display: inline-flex;
    align-items: center;
}

.fg-system-footer__logo img {
    width: 142px;
    height: auto;
    display: block;
}

.fg-system-footer__brand p,
.fg-system-footer__meta p {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.65;
    font-weight: 600;
}

.fg-system-footer__primary-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.fg-system-footer__primary-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 800;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.fg-system-footer__primary-links a:hover {
    border-color: rgba(223, 255, 0, 0.45);
    background: rgba(223, 255, 0, 0.1);
    color: var(--fg-yellow);
    transform: translateY(-1px);
}

.fg-system-footer__meta p {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fg-system-footer__heart {
    line-height: 1;
}

.fg-system-footer__nav {
    display: grid;
    gap: 24px;
    align-content: start;
}

.fg-system-footer__group {
    display: grid;
    gap: 14px;
}

.fg-system-footer__group span {
    color: var(--fg-yellow);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fg-system-footer__group a {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    transition: color 180ms ease, transform 180ms ease;
}

.fg-system-footer__group a:hover {
    color: var(--fg-yellow);
    transform: translateX(2px);
}

.fg-system-footer__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 14px;
    align-items: start;
}

.fg-system-footer__links a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.fg-system-footer__links a:hover {
    border-color: rgba(223, 255, 0, 0.4);
    background: rgba(223, 255, 0, 0.08);
    transform: translateY(-1px);
}

.fg-system-footer__meta {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
}

@media (max-width: 1180px) {
    .fg-topbar__inner {
        grid-template-columns: 1fr;
        padding: 14px 0;
    }

    .fg-card-grid,
    .fg-popular-grid,
    .fg-section--split,
    .fg-guide-shell,
    .fg-changelog__item,
    .fg-system-footer__inner {
        grid-template-columns: 1fr;
    }

    .fg-sidebar,
    .fg-toc {
        position: static;
        height: auto;
    }

    .fg-toc {
        display: none;
    }

    .fg-system-footer__meta {
        justify-content: flex-start;
        text-align: left;
    }

    .fg-system-footer__primary-links {
        gap: 10px;
    }

    .fg-system-footer__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fg-roadmap-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .fg-guide-shell {
        gap: 28px;
    }

    .fg-article {
        order: 1;
        padding-inline: 6px;
    }

    .fg-sidebar {
        order: 2;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .fg-sidebar__mobile-toggle {
        display: flex;
    }

    .fg-sidebar__panel {
        display: none;
        margin-top: 14px;
        padding: 18px;
        border: 1px solid var(--fg-border);
        border-radius: 24px;
        background: var(--fg-white);
        box-shadow: 0 10px 30px rgba(31, 34, 35, 0.04);
    }

    .fg-sidebar__mobile-toggle[aria-expanded="true"] + .fg-sidebar__panel {
        display: block;
    }

    .fg-article__header,
    .fg-prose,
    .fg-next-prev {
        padding-inline: 2px;
    }

    .fg-next-prev {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .fg-topbar__inner,
    .fg-main,
    .fg-footer,
    .fg-guide-shell,
    .fg-system-footer__inner {
        width: min(100vw - 32px, 100%);
    }

    .fg-hero h1,
    .fg-article__header h1 {
        font-size: 38px;
    }

    .fg-topbar__inner {
        gap: 14px;
    }

    .fg-brand img {
        width: 126px;
    }

    .fg-topbar__search,
    .fg-topbar .fg-search,
    .fg-nav {
        width: 100%;
    }

    .fg-topbar .fg-search {
        padding-inline: 16px;
    }

    .fg-nav {
        justify-content: space-between;
        gap: 8px;
        padding: 6px;
    }

    .fg-nav a {
        flex: 1 1 110px;
        text-align: center;
    }

    .fg-roadmap-card__image,
    .fg-roadmap-card__placeholder {
        height: 210px;
    }

    .fg-roadmap-card__body,
    .fg-modal__dialog {
        padding: 22px;
    }

    .fg-roadmap-card__footer,
    .fg-form-grid {
        grid-template-columns: 1fr;
    }

    .fg-roadmap-card__footer {
        display: grid;
        align-items: stretch;
    }

    .fg-roadmap-card__footer button,
    .fg-roadmap-submit {
        width: 100%;
    }

    .fg-modal {
        padding: 14px;
    }

    .fg-modal__header {
        padding-right: 44px;
    }

    .fg-modal__header h2 {
        font-size: 28px;
    }

    .fg-article {
        padding-inline: 8px;
    }

    .fg-article__header,
    .fg-prose,
    .fg-next-prev {
        padding-inline: 0;
    }

    .fg-prose {
        font-size: 16px;
        line-height: 1.72;
    }

    .fg-prose p,
    .fg-prose ul,
    .fg-prose ol {
        margin-left: 0;
        margin-right: 0;
    }

    .fg-footer,
    .fg-guide-list__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .fg-system-footer {
        margin-top: 56px;
        padding-bottom: 24px;
    }

    .fg-system-footer__inner {
        gap: 24px;
        padding: 24px 20px;
        border-radius: 26px;
    }

    .fg-system-footer__primary-links {
        flex-direction: column;
    }

    .fg-system-footer__primary-links a {
        width: 100%;
        min-width: 0;
    }

    .fg-system-footer__links {
        grid-template-columns: 1fr;
    }
}
