:root {
  --ff-accent: #3376a8;
  --ff-navy: #142e6c;
  --ff-navy-dark: #0b235a;
  --ff-heading: #2d465e;
  --ff-text: #212529;
  --ff-muted: #626d78;
  --ff-border: rgba(45, 70, 94, 0.16);
  --md-primary-fg-color: #3376a8;
  --md-accent-fg-color: #3376a8;
  --md-text-font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --md-code-font: "SFMono-Regular", Consolas, monospace;
}

body {
  background: #ffffff;
  color: var(--ff-text);
}

[hidden] { display: none !important; }

.ff-site-header,
.ff-site-header * {
  box-sizing: border-box;
}

.ff-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 997;
  min-height: 72px;
  padding: 10px 0;
  background: rgba(20, 46, 108, 0.96);
  box-shadow: 0 4px 22px rgba(7, 27, 69, 0.12);
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.ff-site-header.ff-scrolled {
  background: rgba(20, 46, 108, 0.99);
  box-shadow: 0 6px 26px rgba(7, 27, 69, 0.2);
}

.ff-header-inner {
  display: flex;
  width: min(1140px, calc(100% - 40px));
  min-height: 52px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.ff-site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: "Raleway", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

.ff-site-brand img {
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(4, 24, 65, 0.26);
}

.ff-header-controls,
.ff-navmenu ul {
  display: flex;
  align-items: center;
}

.ff-header-controls { gap: 32px; }

.ff-navmenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ff-navmenu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.68);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ff-navmenu a:hover,
.ff-navmenu a[aria-current="page"] {
  color: #ffffff;
}

.ff-download {
  display: inline-flex;
  min-height: 38px;
  padding: 9px 18px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font: 500 14px/1 "Poppins", sans-serif;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ff-download:hover {
  border-color: var(--ff-accent);
  background: var(--ff-accent);
  color: #ffffff;
}

.ff-apple-mark {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.15em;
  font-weight: 500;
  line-height: 1;
}

.ff-mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.ff-mobile-toggle span,
.ff-mobile-toggle svg,
.ff-help-tool svg {
  display: block;
}

.ff-mobile-toggle svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.ff-help-toolbar {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-top: 72px;
  border-bottom: 1px solid var(--ff-border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 18px rgba(28, 54, 87, 0.06);
  backdrop-filter: blur(18px);
}

.ff-help-toolbar-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: min(1140px, calc(100% - 40px));
  min-height: 54px;
  margin: 0 auto;
  align-items: center;
}

.ff-help-title {
  color: var(--ff-heading);
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.ff-help-tool {
  display: inline-flex;
  width: max-content;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  color: var(--ff-muted);
  font: 600 14px/1 "Roboto", sans-serif;
  cursor: pointer;
}

.ff-help-tool:hover { color: var(--ff-accent); }

.ff-help-tool svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media screen and (min-width: 76.25em) {
  .ff-help-tool {
    visibility: hidden;
    pointer-events: none;
  }
}

.md-container { padding-top: 0; }

.md-main {
  background: linear-gradient(180deg, rgba(51, 118, 168, 0.055), transparent 22rem), #ffffff;
}

.md-main__inner { padding-top: 1.5rem; }

.md-sidebar {
  top: 7.2rem;
}

.md-content__inner > h1 {
  color: var(--ff-heading);
  font-family: "Raleway", var(--md-text-font);
  font-weight: 700;
  letter-spacing: 0;
}

.md-typeset h2,
.md-typeset h3 {
  color: var(--ff-heading);
  font-family: "Raleway", var(--md-text-font);
  letter-spacing: 0;
}

.md-typeset a { color: var(--ff-accent); }

.md-typeset table:not([class]) th {
  background: rgba(51, 118, 168, 0.09);
}

.md-typeset .admonition,
.md-typeset details {
  border-radius: 10px;
  box-shadow: 0 9px 26px rgba(20, 46, 108, 0.09);
}

.ff-action-catalog { margin-top: 1.5rem; }

.ff-action-back {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.ff-action-back a { text-decoration: none; }

.ff-action-catalog-controls {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--ff-border);
  border-radius: 12px;
  background: rgba(51, 118, 168, 0.055);
}

.ff-action-catalog-controls > label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ff-heading);
  font-weight: 700;
}

.ff-action-catalog-controls > input {
  width: 100%;
  min-height: 42px;
  padding: 0 0.75rem;
  border: 1px solid rgba(45, 70, 94, 0.24);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ff-text);
  font: inherit;
}

.ff-action-catalog-controls > input:focus {
  border-color: var(--ff-accent);
  outline: 3px solid rgba(51, 118, 168, 0.18);
}

.ff-action-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.ff-action-filters button {
  min-height: 32px;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(45, 70, 94, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ff-heading);
  font: 600 0.64rem/1 var(--md-text-font);
  cursor: pointer;
}

.ff-action-filters button:hover,
.ff-action-filters button.is-selected {
  border-color: var(--ff-accent);
  background: var(--ff-accent);
  color: #ffffff;
}

.ff-action-filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.75rem;
  color: var(--ff-muted);
  font-size: 0.68rem;
}

.ff-action-show-all {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ff-accent);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.ff-action-show-all:focus-visible {
  outline: 2px solid var(--ff-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.md-typeset .ff-action-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.md-typeset .ff-action-catalog-grid > li { margin: 0; }

.ff-action-card {
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--ff-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(20, 46, 108, 0.055);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ff-action-card:hover {
  border-color: rgba(51, 118, 168, 0.42);
  box-shadow: 0 12px 30px rgba(20, 46, 108, 0.11);
  transform: translateY(-1px);
}

.ff-action-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.ff-action-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.ff-action-tags span,
.ff-action-plan {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1;
}

.ff-action-tags span {
  background: rgba(51, 118, 168, 0.09);
  color: #285f88;
}

.ff-action-plan {
  flex: none;
  background: rgba(98, 109, 120, 0.1);
  color: var(--ff-muted);
}

.ff-action-plan-pro {
  background: rgba(51, 118, 168, 0.14);
  color: var(--ff-heading);
}

.md-typeset .ff-action-card h2 {
  margin: 0.75rem 0 0.4rem;
  font-size: 0.9rem;
  line-height: 1.25;
}

.md-typeset .ff-action-card h2 a {
  color: var(--ff-heading);
  text-decoration: none;
}

.md-typeset .ff-action-card h2 a:hover { color: var(--ff-accent); }

.md-typeset .ff-action-card p {
  margin: 0;
  color: var(--ff-muted);
  font-size: 0.68rem;
  line-height: 1.55;
}

.ff-action-empty {
  padding: 1.25rem;
  border: 1px dashed rgba(45, 70, 94, 0.24);
  border-radius: 12px;
  color: var(--ff-muted);
  text-align: center;
}

.ff-help-toolbar .md-search {
  position: static;
  width: auto;
  justify-self: end;
  z-index: 10050;
}

.ff-help-toolbar .md-search__button {
  box-sizing: border-box;
  min-width: 92px;
  min-height: 40px;
  border-radius: 10px;
  background: rgba(33, 37, 41, 0.05);
  box-shadow: none;
  color: var(--ff-text);
  font: 600 14px/1 "Roboto", sans-serif;
}

.ff-help-toolbar .md-search__button:hover {
  background: rgba(33, 37, 41, 0.075);
  color: var(--ff-heading);
}

.ff-help-toolbar .md-search__button:focus-visible {
  outline: 2px solid rgba(51, 118, 168, 0.42);
  outline-offset: 2px;
}

.ff-help-toolbar .md-search__button::before {
  background-color: currentColor;
}

.ff-help-toolbar .md-search__button::after {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(20, 46, 108, 0.12);
}

.ff-page-navigation {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--ff-border);
  background: #f5f8fb;
}

.ff-page-navigation-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  gap: 24px;
}

.ff-page-link {
  display: grid;
  gap: 5px;
  color: var(--ff-heading);
  text-decoration: none;
}

.ff-page-link span {
  color: var(--ff-muted);
  font-size: 12px;
}

.ff-page-link strong {
  font-family: "Raleway", sans-serif;
  font-size: 15px;
}

.ff-page-link-next {
  grid-column: 2;
  text-align: right;
}

.ff-site-footer {
  position: relative;
  z-index: 5;
  padding: 0;
  background: var(--ff-navy);
  color: #ffffff;
  font-family: "Roboto", sans-serif;
}

.ff-footer-copyright {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 20px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.ff-footer-copyright p {
  margin: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.6;
}

.ff-footer-copyright p + p {
  margin-top: 2px;
  font-size: 13px;
}

.ff-footer-copyright strong { color: #ffffff; }
.ff-footer-copyright a { color: #b9ddf3; }

@media (max-width: 1199px) {
  .ff-mobile-toggle { display: grid; }

  .ff-navmenu ul {
    display: none;
    position: fixed;
    inset: 84px 20px 20px;
    z-index: 9998;
    align-content: start;
    overflow-y: auto;
    padding: 10px 0;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 18px 55px rgba(10, 30, 70, 0.2);
  }

  .ff-navmenu a {
    min-height: 44px;
    padding: 10px 20px;
    color: var(--ff-heading);
    font-size: 17px;
    font-weight: 500;
  }

  .ff-navmenu a:hover,
  .ff-navmenu a[aria-current="page"] { color: var(--ff-accent); }

  .ff-mobile-nav-active { overflow: hidden; }

  .ff-mobile-nav-active::before {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(33, 37, 41, 0.8);
    content: "";
  }

  .ff-mobile-nav-active .ff-site-header { z-index: 9995; }
  .ff-mobile-nav-active .ff-navmenu ul { display: block; }
  .ff-mobile-nav-active .ff-download,
  .ff-mobile-nav-active .ff-site-brand { visibility: hidden; }

}

@media (max-width: 720px) {
  .ff-site-header { min-height: 64px; }

  .ff-header-inner,
  .ff-help-toolbar-inner,
  .ff-footer-copyright,
  .ff-page-navigation-inner {
    width: min(100% - 32px, 1140px);
  }

  .ff-site-brand { font-size: 21px; }
  .ff-site-brand img { width: 32px; height: 32px; }
  .ff-header-controls { gap: 8px; }
  .ff-download { min-height: 34px; padding: 8px 12px; font-size: 13px; }

  .ff-help-toolbar {
    padding-top: 64px;
  }

  .ff-help-toolbar-inner { min-height: 50px; }
  .ff-help-title { font-size: 14px; }
  .ff-help-tool span { display: none; }
  .ff-help-toolbar .md-search { display: block !important; }
  .ff-help-toolbar .md-search__button {
    width: 40px;
    min-width: 40px;
    overflow: hidden;
    padding: 0;
    font-size: 0;
  }
  .ff-help-toolbar .md-search__button::after { display: none; }
  .md-main__inner { padding-top: 0.8rem; }

  .ff-page-navigation-inner { grid-template-columns: 1fr; }
  .ff-page-link-next { grid-column: 1; }
}

@media (max-width: 480px) {
  .ff-site-brand { font-size: 18px; }
}
