/* Appily-OneHundred — Fanfold Manual (help-center)
   Tractor-feed search · perforated topic stubs · green-bar FAQ folds · latch desk
   Scoped to body.page-a100-fanfold · shared Typebar via shell-head
   NOT answer-drawer fronts, toolbox crib, wire-manual discs */

body.page-a100-fanfold {
  --ff-ink: var(--a100-ink, #182030);
  --ff-field: var(--a100-field, #FFF0E4);
  --ff-field-2: var(--a100-field-2, #FFE4D0);
  --ff-accent: var(--a100-accent, #E8330C);
  --ff-accent-deep: var(--a100-accent-deep, #A8240A);
  --ff-teal: var(--a100-secondary, #008F82);
  --ff-teal-deep: var(--a100-secondary-deep, #005F58);
  --ff-bloom: var(--a100-bloom, #FFC933);
  --ff-bloom-ink: var(--a100-bloom-ink, #2E2400);
  --ff-surface: var(--a100-surface, #FFFFFF);
  --ff-mute: var(--a100-mute, #3E4A5C);
  --ff-shadow: var(--a100-shadow-hard, 5px 5px 0 #182030);
  --ff-font-display: var(--a100-font-display, "Grandstander", system-ui, sans-serif);
  --ff-font-body: var(--a100-font-body, "Commissioner", system-ui, sans-serif);
  --ff-bar: #E8F0E4;
  --ff-bar-alt: #F4FAF2;
  --ff-metal: #6B7280;
  --ff-metal-deep: #374151;
  background:
    radial-gradient(ellipse 42% 28% at 10% 0%, rgba(0, 143, 130, 0.1), transparent 55%),
    radial-gradient(ellipse 38% 26% at 90% 6%, rgba(255, 201, 51, 0.14), transparent 50%),
    linear-gradient(170deg, var(--ff-field) 0%, var(--ff-field-2) 50%, #FFD4B8 100%);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ff-main {
  padding-block: var(--a100-space-4, 32px) var(--a100-space-6, 64px);
}

.ff-mast {
  margin-bottom: 22px;
}
.ff-kicker {
  margin: 0 0 6px;
  font-family: var(--ff-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ff-teal-deep);
}
.ff-mast h1 {
  margin: 0 0 8px;
  font-family: var(--ff-font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  color: var(--ff-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.ff-lede {
  margin: 0 0 18px;
  max-width: 48ch;
  color: var(--ff-mute);
}

/* Tractor-feed search */
.ff-feed {
  display: flex;
  align-items: stretch;
  max-width: 560px;
  background: #FFFEFA;
  border: 3px solid var(--ff-ink);
  box-shadow: var(--ff-shadow);
}
.ff-feed-teeth {
  flex: 0 0 22px;
  background:
    radial-gradient(circle at 50% 12px, transparent 4px, var(--ff-ink) 4.5px) 0 0 / 100% 24px,
    linear-gradient(180deg, var(--ff-metal), var(--ff-metal-deep));
  border-right: 2px solid var(--ff-ink);
}
.ff-feed-teeth--r {
  border-right: none;
  border-left: 2px solid var(--ff-ink);
}
.ff-feed input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  font-family: var(--ff-font-body);
  font-size: 1rem;
  color: var(--ff-ink);
  background: transparent;
  border: none;
  outline: none;
}
.ff-feed input::placeholder {
  color: rgba(62, 74, 92, 0.5);
}
.ff-feed-clear {
  flex: 0 0 auto;
  margin: 6px;
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ff-ink);
  background: var(--ff-bloom);
  border: 2px solid var(--ff-ink);
}

/* Perforated topic stubs */
.ff-stubs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.ff-stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 12px 12px 18px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--ff-ink);
  background: var(--ff-surface);
  border: 3px solid var(--ff-ink);
  box-shadow: 3px 3px 0 var(--ff-ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  animation: ff-stub-in 0.4s ease both;
  animation-delay: calc(var(--ff-i, 0) * 0.05s);
}
@keyframes ff-stub-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ff-stub:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--ff-ink);
}
.ff-stub.is-active {
  background: var(--ff-bloom);
  box-shadow: 2px 2px 0 var(--ff-ink);
  transform: translateY(1px);
}
.ff-stub-perf {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background:
    radial-gradient(circle at 5px 8px, transparent 2.5px, var(--ff-ink) 3px) 0 0 / 10px 14px;
  opacity: 0.35;
}
.ff-stub-code {
  font-family: var(--ff-font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ff-accent-deep);
}
.ff-stub.is-active .ff-stub-code {
  color: var(--ff-bloom-ink);
}
.ff-stub strong {
  font-family: var(--ff-font-display);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}
.ff-stub em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ff-mute);
}

.ff-stage {
  margin-bottom: 28px;
}
.ff-empty {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 3px solid var(--ff-ink);
  background: rgba(232, 51, 12, 0.08);
  font-family: var(--ff-font-display);
  font-weight: 700;
  color: var(--ff-accent-deep);
}

.ff-panel-head {
  margin-bottom: 14px;
}
.ff-panel-tag {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--ff-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ff-teal-deep);
}
.ff-panel-head h2 {
  margin: 0 0 6px;
  font-family: var(--ff-font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 800;
  color: var(--ff-ink);
}
.ff-panel-head p {
  margin: 0;
  max-width: 48ch;
  color: var(--ff-mute);
  font-size: 0.95rem;
}

/* Green-bar fanfold FAQ */
.ff-bars {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 3px solid var(--ff-ink);
  box-shadow: var(--ff-shadow);
  overflow: hidden;
}
.ff-bar {
  background: var(--ff-bar);
  border-bottom: 2px solid rgba(24, 32, 48, 0.12);
}
.ff-bar:nth-child(even) {
  background: var(--ff-bar-alt);
}
.ff-bar:last-child {
  border-bottom: none;
}
.ff-bar[hidden] {
  display: none;
}
.ff-bar summary {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.ff-bar summary::-webkit-details-marker {
  display: none;
}
.ff-sprocket {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ff-ink);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--ff-bar);
}
.ff-bar-no {
  font-family: var(--ff-font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ff-teal-deep);
  white-space: nowrap;
}
.ff-bar-q {
  font-family: var(--ff-font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ff-ink);
  line-height: 1.3;
}
.ff-bar-fold {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ff-ink);
  background:
    linear-gradient(135deg, transparent 42%, var(--ff-ink) 42% 58%, transparent 58%),
    linear-gradient(45deg, transparent 42%, var(--ff-ink) 42% 58%, transparent 58%);
  background-size: 100% 100%;
  opacity: 0.55;
  transition: transform 0.2s ease;
}
.ff-bar[open] .ff-bar-fold {
  transform: rotate(90deg);
  background: var(--ff-bloom);
  opacity: 1;
  border-color: var(--ff-ink);
}
.ff-bar-a {
  padding: 0 14px 16px 50px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ff-ink);
}
.ff-bar-a a {
  color: var(--ff-accent-deep);
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.ff-bar-a a:hover {
  color: var(--ff-accent);
}

/* Desk strip */
.ff-desk {
  padding: 22px 20px;
  background: linear-gradient(160deg, #3A2E22, #1A1410);
  border: 3px solid var(--ff-ink);
  box-shadow: var(--ff-shadow);
  color: #FFF0E4;
}
.ff-desk-copy h2 {
  margin: 0 0 6px;
  font-family: var(--ff-font-display);
  font-size: 1.35rem;
  font-weight: 800;
}
.ff-desk-copy p {
  margin: 0 0 16px;
  color: rgba(255, 240, 228, 0.75);
  max-width: 42ch;
}
.ff-desk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.ff-lift {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  background: linear-gradient(180deg, #2A221A, #0F0C09);
  border: 3px solid var(--ff-bloom);
  text-decoration: none !important;
  color: #FFF0E4 !important;
  font-family: var(--ff-font-display);
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.12s ease;
}
.ff-lift:hover {
  transform: translateY(-2px);
}
.ff-lift-knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #E8D39A, #C4A35A 55%, #8A6E2F);
  border: 2px solid var(--ff-ink);
}
.ff-textlink {
  font-family: var(--ff-font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ff-bloom) !important;
  text-decoration: none !important;
  border-bottom: 2px solid var(--ff-bloom);
  padding-bottom: 2px;
}
.ff-desk-phone {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 240, 228, 0.7);
}
.ff-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding-top: 16px;
  border-top: 2px dashed rgba(255, 201, 51, 0.3);
}
.ff-facts dt {
  margin: 0 0 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ff-bloom);
}
.ff-facts dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFF0E4;
  line-height: 1.4;
}
.ff-facts a {
  color: var(--ff-bloom);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.ff-facts-wide {
  grid-column: 1 / -1;
}

@media (max-width: 820px) {
  .ff-stubs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ff-facts {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .ff-stubs {
    grid-template-columns: 1fr;
  }
  .ff-bar summary {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "sprocket q fold"
      "sprocket no fold";
  }
  .ff-sprocket { grid-area: sprocket; }
  .ff-bar-no { grid-area: no; }
  .ff-bar-q { grid-area: q; }
  .ff-bar-fold { grid-area: fold; }
  .ff-bar-a {
    padding-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ff-stub {
    animation: none;
    transition: none;
  }
  .ff-lift,
  .ff-bar-fold {
    transition: none;
  }
}
