/* 'Not sure who you need?' finder: a manila folder with answer tabs, then a referral slip.
   Used on / (#finder) and /guides/. Motion is driven by finder.js (Web Animations) so the
   reduced-motion cross-fade survives brand.css's global animation reset. */

.fd-host { --manila: #efe3c4; --manila-2: #e6d6ad; --manila-rule: #cdbb8e; --sheet: #fffdf7;
  --amber-bg: #fbf1dc; --amber-line: #e6cd98; --amber-ink: #4a3510; --amber-bar: #b7791f;
}
.fd { position: relative; max-width: 720px; color: var(--ink); }

/* ---------- tabs on the folder's top edge ---------- */
.fd-tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 4px; padding: 0 0 0 14px; min-height: 40px; position: relative; z-index: 1; }
.fd-label, .fd-tab {
  position: relative; display: inline-flex; align-items: center; min-height: 34px;
  margin-bottom: -1px; padding: 8px 14px 7px;
  background: var(--manila); border: 1px solid var(--manila-rule); border-bottom: 0; border-radius: 7px 7px 0 0;
  font: 500 0.7rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #5b4d2c;
}
.fd-tab {
  background: var(--manila-2); color: var(--ink); cursor: pointer;
  font: 500 0.82rem/1.2 var(--sans); letter-spacing: 0.01em; text-transform: none;
  padding-top: 11px; transition: background 0.2s, transform 0.25s var(--ease-out);
}
.fd-tab i { /* pink tape strip across the top of the tab */
  position: absolute; left: 8px; right: 8px; top: -4px; height: 7px;
  background: linear-gradient(180deg, #f08aa0 0 2px, var(--tape) 2px); opacity: 0.92;
  transform: rotate(-1.4deg); border-radius: 1px;
  clip-path: polygon(0 12%, 4% 0, 9% 18%, 15% 2%, 100% 0, 97% 88%, 92% 100%, 86% 82%, 0 100%);
}
.fd-tab:nth-child(odd) i { transform: rotate(1.2deg); }
.fd-tab:hover { background: #f4ead2; transform: translateY(-2px); }
.fd-tab::after { content: "✎"; margin-left: 8px; font-size: 0.78rem; color: #8a7a52; }

/* ---------- the folder and the sheet inside it ---------- */
.fd-folder {
  position: relative; background: var(--manila); border: 1px solid var(--manila-rule); border-radius: 3px;
  padding: 12px; box-shadow: 0 18px 40px -28px rgba(14, 38, 32, 0.5);
}
.fd-folder::before { /* the pocket's crease */
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 1px; background: rgba(140, 118, 66, 0.25);
}
.fd-sheet {
  position: relative; background: var(--sheet); border: 1px solid rgba(205, 187, 142, 0.6); border-radius: 2px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* a question */
.fd-stage { position: relative; }
.fd-stage.fd-sizing { overflow: hidden; overflow: clip; overflow-clip-margin: 16px; }
.fd-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.fd-q { padding: 0; margin: 0 0 6px; font: 400 clamp(1.5rem, 2.6vw, 1.95rem)/1.15 var(--display); letter-spacing: -0.01em; outline: none; }
.fd-n { display: block; margin-bottom: 10px; font: 500 0.7rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.fd-hint { font-size: 0.9rem; color: var(--ink-3); margin: 0 0 18px; }
.fd-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fd-opts-3 { grid-template-columns: repeat(3, 1fr); }
.fd-opts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fd-opt {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 14px;
  background: #fff; border: 1px solid #ddd3bb; border-radius: 2px; cursor: pointer; line-height: 1.35; font-size: 0.97rem;
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.fd-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fd-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #9b8f72; background: #fff; transition: background 0.15s, box-shadow 0.15s, border-color 0.15s; }
.fd-opt:hover { border-color: #b9ab86; transform: translateY(-1px); box-shadow: 0 8px 18px -14px rgba(14, 38, 32, 0.5); }
.fd-opt input:checked ~ .fd-dot { border-color: var(--night); background: var(--night); box-shadow: inset 0 0 0 4px #fff; }
.fd-opt:has(input:checked) { border-color: var(--green); background: #f5f8f2; }
.fd-opt:has(input:focus-visible) { outline: 2px solid var(--tape-ink); outline-offset: 2px; }
.fd-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; }
.fd-next {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; padding: 0 18px; border: 0; border-radius: 2px;
  background: var(--night); color: var(--paper); font: 600 0.94rem/1 var(--sans); cursor: pointer;
}
.fd-next:disabled { opacity: 0.35; cursor: default; }
.fd-back, .fd-again {
  background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink-2);
  font: 500 0.92rem/1.2 var(--sans); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px;
}
.fd-back:hover, .fd-again:hover { color: var(--ink); text-decoration-color: var(--tape-ink); }

/* ---------- result ---------- */
.fd-result { display: grid; gap: 14px; }
.fd-amber {
  background: var(--amber-bg); border: 1px solid var(--amber-line); border-left: 4px solid var(--amber-bar);
  color: var(--amber-ink); padding: 14px 16px; border-radius: 2px; font-size: 0.95rem; line-height: 1.5;
}
.fd-amber p { margin: 0; }
.fd-amber b { font-weight: 600; }
.fd-amber .fd-src { margin-top: 6px; color: #6b5120; }
.fd-amber .fd-src a { color: #6b5120; }

.fd-slip, .fd-exit {
  position: relative; background: #fff; border: 1px solid #e6dcc2; border-radius: 2px;
  padding: 30px clamp(18px, 3vw, 26px) 20px;
  box-shadow: 0 16px 30px -24px rgba(14, 38, 32, 0.6);
}
.fd-slip::before { /* printed form header: a double hairline under the slip's label */
  content: ""; position: absolute; left: clamp(18px, 3vw, 26px); right: clamp(18px, 3vw, 26px); top: 50px;
  height: 3px; border-top: 1px solid #e6dcc2; border-bottom: 1px solid #e6dcc2;
}
.fd-tape { /* the remnant of tape that held the slip in the folder */
  position: absolute; top: -9px; left: 50%; width: 88px; height: 20px; margin-left: -44px;
  background: linear-gradient(180deg, rgba(240, 138, 160, 0.95) 0 3px, rgba(232, 96, 122, 0.9) 3px);
  transform: rotate(-2.2deg);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 20% 0, 100% 4%, 96% 30%, 100% 55%, 95% 80%, 100% 100%, 8% 96%, 0 70%, 4% 45%);
}
.fd-k { margin: 0 0 6px; font: 500 0.68rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.fd-slip-k { color: #6e5f38; }
.fd-slip .fd-slip-k { margin-bottom: 18px; }
.fd-slip-h { margin: 0 0 14px; font: 400 clamp(1.45rem, 2.4vw, 1.75rem)/1.15 var(--display); outline: none; }
.fd-speak { font: 400 1.1rem/1.5 var(--serif); margin: 0 0 14px; }
.fd-speak strong { font-weight: 700; }
.fd-why-w { margin: 0 0 16px; }
.fd-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.95rem; color: var(--ink-2); }
.fd-why b { font-weight: 600; color: var(--ink); }
.fd-cost { background: #0a1c17; color: var(--on-night); border-radius: 3px; padding: 14px 16px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6); margin: 0 0 16px; }
.fd-cost .fd-k { color: var(--brass); }
.fd-fig { margin: 2px 0 6px; font: 600 clamp(1.9rem, 4vw, 2.4rem)/1 var(--sans); font-feature-settings: "tnum", "lnum"; letter-spacing: 0.01em; }
.fd-line { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--on-night-2); }
.fd-cost .fd-src { margin: 8px 0 0; font-size: 0.82rem; color: var(--on-night-2); }
.fd-cost .fd-src a { color: var(--on-night); text-decoration-color: var(--brass); }
.fd-cost-q { background: transparent; color: var(--ink); box-shadow: none; border: 1px dashed #b9ab86; }
.fd-cost-q .fd-k { color: var(--ink-3); }
.fd-cost-q .fd-line { color: var(--ink); font: italic 400 1.06rem/1.45 var(--serif); }
.fd-before { font-size: 0.97rem; color: var(--ink-2); margin: 0 0 16px; }
.fd-before b { color: var(--ink); font-weight: 600; }
.fd-ctas { margin: 0 0 16px; }
.fd .btn { max-width: 100%; white-space: normal; text-align: left; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
.fd .btn.fd-demoted { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.fd .btn.fd-demoted:hover { --bg: rgba(20, 32, 27, 0.04); box-shadow: inset 0 0 0 1.5px var(--ink), 0 10px 22px -16px rgba(14, 38, 32, 0.6); }
.fd-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid #ece4cf; display: grid; font-size: 0.9rem; color: var(--ink-2); }
.fd-links li { padding: 7px 0 6px; line-height: 1.45; border-bottom: 1px solid rgba(30, 91, 63, 0.09); }
.fd-links li:last-child { border-bottom: 0; }
.fd-links a { color: var(--ink); }
.fd-disc { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed #e0d5b8; font: italic 400 0.86rem/1.5 var(--serif); color: var(--ink-3); }

.fd-cost > .fd-k:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fd-for { padding: 3px 6px; border: 1px solid rgba(201, 169, 106, 0.5); border-radius: 2px; letter-spacing: 0.1em; color: var(--on-night); }
.fd-alt { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.fd-fig-alt { font-size: clamp(1.5rem, 3vw, 1.8rem); }
.fd-time { margin: 0 0 16px; padding: 10px 0 10px 14px; border-left: 2px solid #c9b88c; }
.fd-time .fd-k { color: var(--ink-3); }
.fd-time-t { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); }
.fd-time .fd-src { margin: 4px 0 0; font-size: 0.84rem; color: var(--ink-3); }
.fd-time .fd-src a { color: var(--ink-2); }
.fd-err { margin: 12px 0 0; font-size: 0.9rem; font-weight: 500; color: var(--tape-ink); }

/* exits */
.fd-exit > p { color: var(--ink-2); }
.fd-exit-amber { background: var(--amber-bg); background-image: none; border-color: var(--amber-line); border-left: 4px solid var(--amber-bar); color: var(--amber-ink); }
.fd-exit-amber > p, .fd-exit-amber .fd-disc { color: var(--amber-ink); }
.fd-exit-amber .fd-slip-h { color: #3b2a0b; }
.fd-exit-links { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.fd-exit-links a { color: var(--ink); font-weight: 500; }
.fd-again-row { margin: 0; }
.fd-form { display: grid; gap: 6px; margin: 0 0 12px; }
.fd-form > p { margin: 0 0 10px; color: var(--ink-2); }
.fd-form label { font: 500 0.82rem/1.3 var(--sans); color: var(--ink); margin-top: 8px; }
.fd-form textarea, .fd-form input {
  width: 100%; font: 400 1rem/1.45 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid #cfc5aa; border-radius: 2px; padding: 10px 12px; resize: vertical;
}
.fd-form textarea:focus-visible, .fd-form input:focus-visible { outline: 2px solid var(--tape-ink); outline-offset: 1px; }
.fd-count { font-size: 0.8rem; color: var(--ink-3); justify-self: end; }
.fd-form .fd-ctas { margin: 10px 0 0; }
.fd-status { margin: 4px 0 0; font-size: 0.9rem; color: var(--ink-2); min-height: 1.4em; }
.fd-status.err { color: var(--tape-ink); }
.fd-ok { font: 400 1.1rem/1.5 var(--serif); color: var(--green); margin: 0; outline: none; }
.fd-fallback { color: var(--ink-2); }

@media (max-width: 600px) {
  .fd-tabs { padding-left: 8px; }
  .fd-folder { padding: 8px; }
  .fd-opts { grid-template-columns: 1fr; }
  .fd-opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fd-opts-3 .fd-opt { padding: 12px 10px; gap: 8px; }
  .fd-opts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-opts-4 .fd-opt { padding: 12px 10px; gap: 8px; }
  .fd-label { display: none; }
}
/* question 1: compact two-line cards */
.fd-txt { display: block; min-width: 0; }
.fd-sub { display: block; margin-top: 2px; font-size: 0.82rem; line-height: 1.3; color: var(--ink-3); }
.fd-opt-2 { min-height: 56px; padding-top: 10px; padding-bottom: 10px; }

/* referral slips (work, home, personal, family, something else) */
.fd-yes {
  display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 12px; padding: 5px 10px 5px 8px;
  background: rgba(47, 122, 85, 0.12); border: 1px solid rgba(30, 91, 63, 0.28); border-radius: 2px;
  font: 600 0.86rem/1.2 var(--sans); color: var(--green);
}
.fd-tick { width: 14px; height: 8px; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); }
.fd-quote { font: 400 0.95rem/1.5 var(--sans); color: var(--ink-2); }
.fd-free-w { margin: 0 0 16px; }
.fd-free { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.95rem; line-height: 1.45; }
.fd-free li { padding-left: 16px; position: relative; color: var(--ink-2); }
.fd-free li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.fd-free a { color: var(--ink); font-weight: 600; }
.fd-ref .fd-disc { font: 400 0.86rem/1.5 var(--sans); }
.fd-ref .fd-disc b { font: italic 400 0.9rem/1.5 var(--serif); color: var(--ink-2); }
.fd-disc-src a { color: var(--ink-2); }
.fd-lead { margin: 0 0 10px; font-weight: 600; }
.fd-exit-amber .fd-lead { color: #3b2a0b; }

.fd-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.fd-scope { margin: 10px 0 0; font-size: 0.9rem; color: var(--ink-3, #5f6a61); }
