/* AI Policy Generator for Finance Teams: builds on /styles.css tokens and /tools/shared/learn.css */
.fp-builder, .fp-test { --green: #157f3d; --green-bg: #ecf7f0; --amber: #8a5300; --amber-bg: #fff5e2; --red: #b42318; --red-bg: #fdf0ee; --grey-bg: #f1f1f3; }
.fp-builder svg, .fp-test svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.fp-hero { padding-bottom: clamp(88px, 10vw, 140px); }
.fp-back { margin-bottom: 28px; position: relative; z-index: 2; }
.fp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.fp-meta .chip { background: rgba(255, 255, 255, .85); }
.fp-hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.fp-link { min-height: 44px; padding: 0 2px; font: 500 16px var(--sans); color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.fp-link:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* Section heads */
.fp-builder { padding: clamp(80px, 10vw, 130px) 0 clamp(70px, 9vw, 110px); }
.fp-head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; align-items: end; margin-bottom: 44px; }
.fp-head h2 { margin-top: 14px; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -.02em; }
.fp-head__side p { color: var(--text); max-width: 36em; }
.fp-head__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fp-print-head { display: none; }

/* Buttons */
.fp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; font: 500 15px var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--ink); cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease); }
.fp-btn:hover { border-color: var(--blue); color: var(--blue); }
.fp-btn:active { transform: scale(.98); }
.fp-btn--ghost { border-color: var(--line); }
.fp-btn--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.fp-btn--blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.fp-btn:disabled { opacity: .4; cursor: default; pointer-events: none; }
.fp-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px; background: var(--bg-2); color: var(--soft); }
.fp-btn:focus-visible, .fp-link:focus-visible, .fp-tool:focus-visible, .fp-goq:focus-visible, .fp-steps button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Builder layout */
.fp-build { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; gap: 16px 40px; align-items: start; }
.fp-form { grid-column: 1; grid-row: 1; display: grid; gap: 14px; min-width: 0; }
.fp-result { grid-column: 1; grid-row: 2; }
.fp-pane { grid-column: 2; grid-row: 1 / span 2; }

/* Form fields */
.fp-field { display: grid; gap: 8px; font-size: 15px; font-weight: 500; min-width: 0; }
.fp-field[hidden] { display: none; }
.fp-field em { font-style: normal; font-weight: 400; color: var(--soft); margin-left: 6px; }
.fp-field input, .fp-field select { width: 100%; min-width: 0; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 0; transition: border-color .2s ease, box-shadow .2s ease; }
.fp-field select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231236ff' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; text-overflow: ellipsis; }
.fp-field input:hover, .fp-field select:hover { border-color: #c4c8d0; }
.fp-field input:focus, .fp-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.fp-field input::placeholder { color: #a3a7ae; }
.fp-org { padding: 18px 20px; background: var(--bg-2); }
.fp-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; }

/* Step navigation */
.fp-steps ol { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fp-steps button { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; width: 100%; min-height: 58px; padding: 8px 2px; background: #fff; border: 0; font: inherit; color: var(--ink); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.fp-steps button b { font-size: 17px; font-weight: 500; line-height: 1; }
.fp-steps button span { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-steps button:hover { background: #f5f7ff; }
.fp-steps button[aria-current] { background: var(--navy); color: #fff; }
.fp-steps button[aria-current] span { color: rgba(255, 255, 255, .75); }
.fp-steps button::after { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; }
.fp-steps button.is-part::after { box-shadow: inset 0 0 0 1.5px var(--blue); background: linear-gradient(90deg, var(--blue) 50%, transparent 50%); }
.fp-steps button.is-done::after { width: 10px; height: 10px; top: 5px; right: 5px; background: var(--blue); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }
.fp-steps button[aria-current].is-done::after { background: #fff; }
.fp-steps button[aria-current].is-part::after { box-shadow: inset 0 0 0 1.5px #fff; background: linear-gradient(90deg, #fff 50%, transparent 50%); }

/* Question cards: one visible at a time when JS runs */
.fp-q { border: 0; margin: 0; padding: 26px 24px 24px; background: var(--bg-2); display: grid; gap: 14px; min-width: 0; }
.js .fp-q:not(.is-on) { display: none; }
.fp-q.is-on.is-enter { animation: fpIn .45s var(--ease); }
@keyframes fpIn { from { opacity: 0; transform: translateY(8px); } }
.fp-q legend { float: left; width: 100%; display: grid; gap: 8px; padding: 0; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.fp-q legend .mono { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); font-weight: 400; }
.fp-q legend + * { clear: both; }
.fp-hint { margin: 0; font-size: 15px; color: var(--text); }
.fp-sub { margin: 6px 0 -4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }

.fp-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-check, .fp-opt, .fp-seg label, .fp-tick { position: relative; cursor: pointer; }
.fp-check input, .fp-opt input, .fp-seg input, .fp-tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fp-check > span { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 44px; padding: 8px 14px; background: #fff; font-size: 15px; line-height: 1.3; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.fp-check > span::before { content: ""; width: 12px; height: 12px; flex: 0 0 12px; box-shadow: inset 0 0 0 1.5px #b9bec7; transition: background-color .2s ease, box-shadow .2s ease; }
.fp-check small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.fp-check:hover > span { box-shadow: inset 0 0 0 1px #c4c8d0; }
.fp-check input:checked + span { background: var(--blue); color: #fff; box-shadow: none; }
.fp-check input:checked + span::before { background: #fff; box-shadow: none; clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }
.fp-check input:checked + span small { color: rgba(255, 255, 255, .78); }
.fp-checks--no .fp-check input:checked + span { background: var(--navy); }
.fp-checks--no .fp-check input:checked + span::before { clip-path: polygon(20% 0, 0 20%, 30% 50%, 0 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0, 50% 30%); }

.fp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fp-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fp-opt > span { display: grid; align-content: start; gap: 3px; height: 100%; min-height: 44px; padding: 13px 14px 13px 40px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s ease, background-color .2s ease; }
.fp-opt > span::before { content: ""; position: absolute; left: 14px; top: 16px; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #b9bec7; background: #fff; transition: box-shadow .2s ease, background-color .2s ease; }
.fp-opt b { font-weight: 500; font-size: 15.5px; }
.fp-opt small { font-size: 14px; line-height: 1.4; color: var(--text); }
.fp-opt:hover > span { box-shadow: inset 0 0 0 1px #c4c8d0; }
.fp-opt input:checked + span { box-shadow: inset 0 0 0 2px var(--blue); background: #f5f7ff; }
.fp-opt input:checked + span::before { background: var(--blue); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--blue); }

.fp-classes { display: grid; gap: 8px; }
.fp-class { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px 16px; align-items: center; padding: 12px 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.fp-class p { margin: 0; display: grid; gap: 2px; }
.fp-class b { font-weight: 500; font-size: 15.5px; }
.fp-class small { font-size: 13.5px; line-height: 1.35; color: var(--text); }
.fp-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.fp-seg span { display: grid; place-items: center; min-height: 44px; padding: 6px 4px; background: #fff; font-size: 14.5px; font-weight: 500; text-align: center; line-height: 1.2; transition: background-color .2s ease, color .2s ease; }
.fp-seg label:hover span { background: #f5f7ff; }
.fp-seg input:checked + span { background: var(--blue); color: #fff; }
.fp-seg input[value="no"]:checked + span { background: var(--navy); }
.fp-seg--wide span { font-size: 15px; }

.fp-tick > span { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 500; }
.fp-tick > span::before { content: ""; width: 18px; height: 18px; flex: 0 0 18px; background: #fff; box-shadow: inset 0 0 0 1.5px #b9bec7; transition: background-color .2s ease, box-shadow .2s ease; }
.fp-tick input:checked + span::before { background: var(--blue); box-shadow: none; clip-path: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); background-size: 14px; background-position: center; background-repeat: no-repeat; }
.fp-check input:focus-visible + span, .fp-opt input:focus-visible + span, .fp-seg input:focus-visible + span, .fp-tick input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.fp-q .lx-why { margin-top: 4px; }

.fp-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fp-nav__pos { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }

/* Result card */
.fp-result { position: relative; display: grid; gap: 14px; padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); overflow: hidden; }
.fp-result__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.fp-result__top > .mono { color: var(--blue); }
.fp-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; }
.fp-status.s-open { background: var(--grey-bg); color: var(--ink); }
.fp-status.s-check { background: var(--amber-bg); color: var(--amber); }
.fp-status.s-ok { background: var(--green-bg); color: var(--green); }
.fp-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
.fp-big b { font-size: clamp(48px, 5vw, 64px); font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; display: inline-block; }
.fp-big b.is-ba { animation: fpBumpA .6s var(--ease); }
.fp-big b.is-bb { animation: fpBumpB .6s var(--ease); }
@keyframes fpBumpA { from { opacity: .2; transform: translateY(30%); } }
@keyframes fpBumpB { from { opacity: .2; transform: translateY(30%); } }
.fp-big span { font-size: 17px; color: var(--text); }
.fp-rail { margin-top: -4px; }
.fp-label { margin: 6px 0 6px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.fp-means { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.fp-gaplist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
.fp-gaplist li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; font-size: 15px; line-height: 1.45; background: var(--grey-bg); }
.fp-gaplist li > svg { margin-top: 2px; }
.fp-gaplist li b { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-right: 4px; }
.fp-gaplist li.g-check { background: var(--amber-bg); }
.fp-gaplist li.g-check > svg, .fp-gaplist li.g-check b { color: var(--amber); }
.fp-gaplist li.g-ok { grid-template-columns: 16px minmax(0, 1fr); background: var(--green-bg); }
.fp-gaplist li.g-ok > svg, .fp-gaplist li.g-ok b { color: var(--green); }
.fp-goq { align-self: center; min-height: 44px; margin: -10px -6px -10px 0; padding: 0 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); background: none; border: 0; cursor: pointer; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.fp-result .lx-actions { margin-top: 6px; }

/* Document pane */
.fp-pane { position: sticky; top: 84px; display: flex; flex-direction: column; max-height: calc(100vh - 100px); min-width: 0; background: var(--bg-2); }
.fp-bar { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.fp-tool { flex: 1 1 auto; display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; background: #fff; border: 0; font: 500 14.5px var(--sans); color: var(--ink); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.fp-tool svg { color: var(--blue); }
.fp-tool:hover { background: #f5f7ff; color: var(--blue); }
.fp-doc { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 14px; padding: 36px 36px 44px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(13, 36, 99, .07); font-size: 15px; line-height: 1.6; color: #2c2f35; scrollbar-width: thin; }
.fp-doc:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.fp-doc__wait { color: var(--soft); }
.fp-more { display: none; }
.doc__head { padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.doc__kicker { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.doc__title { margin-top: 14px; font-size: clamp(25px, 2.4vw, 32px); letter-spacing: -.03em; line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; }
.doc__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 20px 0 0; font-size: 14.5px; }
.doc__meta div { display: grid; gap: 2px; }
.doc__meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.doc__meta dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.doc__disc { margin-top: 18px; padding: 12px 14px; background: var(--bg-2); font-size: 14px; color: var(--text); }
.doc__sec { position: relative; margin: 0 -14px; padding: 22px 14px 4px; transition: background-color .4s ease; }
.doc__sec::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 0; width: 3px; background: var(--blue); opacity: 0; transition: opacity .3s ease; }
.doc__sec.is-focus::before { opacity: .35; }
.doc__sec.is-fa { animation: fpFlashA 1.4s var(--ease); }
.doc__sec.is-fb { animation: fpFlashB 1.4s var(--ease); }
.doc__sec.is-fa::before, .doc__sec.is-fb::before { opacity: 1; }
@keyframes fpFlashA { 0% { background: #eef1ff; } 100% { background: transparent; } }
@keyframes fpFlashB { 0% { background: #eef1ff; } 100% { background: transparent; } }
.doc__sec h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0; font-size: 19px; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.doc__sec h3 > span { font-size: 14px; color: var(--blue); font-weight: 500; }
.doc__flag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 4px; font: 400 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--grey-bg); align-self: center; }
.doc__flag svg { width: 13px; height: 13px; }
.doc__sec h4 { margin: 16px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.doc__sec p { margin: 10px 0 0; }
.doc__sec ul { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.doc__sec li { position: relative; padding-left: 18px; }
.doc__sec li::before { content: ""; position: absolute; left: 0; top: .66em; width: 6px; height: 6px; background: var(--blue); }
.doc__sec li b { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.doc__gap { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px dashed #b9bec7; background: #fafafb; font-size: 14.5px; color: var(--text); }
.doc__gap svg { margin-top: 3px; color: var(--soft); }
.doc__gap b { color: var(--ink); font-weight: 600; }
.doc__sec .table-wrap { margin-top: 12px; }
.doc__table { font-size: 14px; }
.doc__table th, .doc__table td { padding: 9px 10px; }
.doc__table thead th { font-size: 10.5px; }
.doc__table td:first-child { white-space: nowrap; }
.doc__table td:nth-child(2) { min-width: 150px; color: var(--text); }
.doc__table td:nth-child(3) { min-width: 170px; }
.doc__td-gap { color: var(--soft); font-style: italic; }
.doc__apx { margin-top: 18px; border-top: 1px solid var(--line); }
.doc__apx[hidden] { display: none; }
.doc__foot { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }

.fp-note { margin-top: 40px; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px 32px; padding: 26px 28px; border-top: 2px solid var(--ink); background: var(--bg-2); }
.fp-note .mono { margin: 0; color: var(--blue); padding-top: 3px; }
.fp-note p:not(.mono) { margin: 0; color: var(--text); max-width: 60em; font-size: 15.5px; }

/* Test your policy */
.fp-test { padding: clamp(80px, 10vw, 130px) 0; background: var(--bg-2); }
.fp-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 18px; padding: 0; list-style: none; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--text); }
.fp-key li { display: inline-flex; align-items: center; gap: 8px; }
.fp-key i { width: 10px; height: 10px; }
.fp-key .v-allow i { background: var(--green); }
.fp-key .v-review i { background: var(--blue); }
.fp-key .v-approve i { background: var(--amber); }
.fp-key .v-no i { background: var(--red); }
.fp-key .v-open i { box-shadow: inset 0 0 0 1.5px var(--soft); }
.fp-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); min-height: 200px; }
.fp-case { --vc: var(--soft); --vb: var(--grey-bg); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; align-content: start; padding: 22px 22px 20px; background: #fff; }
.fp-case__n { grid-row: span 3; font-size: 12px; color: var(--blue); padding-top: 3px; }
.fp-case__q { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink); }
.fp-case__v { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin: 4px 0 0; padding: 6px 10px; background: var(--vb); color: var(--vc); font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; }
.fp-case__v b { font-weight: 500; }
.fp-case__why { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.fp-case__why .mono { margin-left: 4px; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.fp-case.v-allow { --vc: var(--green); --vb: var(--green-bg); }
.fp-case.v-review { --vc: var(--blue); --vb: #eef1ff; }
.fp-case.v-approve { --vc: var(--amber); --vb: var(--amber-bg); }
.fp-case.v-no { --vc: var(--red); --vb: var(--red-bg); }
.fp-case.v-open .fp-case__v { box-shadow: inset 0 0 0 1px #b9bec7; background: #fff; color: var(--ink); }
.fp-case.is-fa .fp-case__v { animation: fpPopA .55s var(--ease); }
.fp-case.is-fb .fp-case__v { animation: fpPopB .55s var(--ease); }
@keyframes fpPopA { from { transform: scale(.85); opacity: .3; } }
@keyframes fpPopB { from { transform: scale(.85); opacity: .3; } }
.fp-tally { margin: 16px 0 0; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--soft); }
.fp-after { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; margin-top: 48px; align-items: start; }
.fp-after .lx-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 1000px) {
  .fp-build { grid-template-columns: 1fr; grid-template-rows: none; gap: 24px; }
  .fp-form, .fp-result, .fp-pane { grid-column: auto; grid-row: auto; }
  .fp-pane { position: relative; top: 0; max-height: none; }
  .fp-doc { overflow: visible; }
  .fp-head, .fp-after { grid-template-columns: 1fr; }
  .fp-pane:not(.is-open) .fp-doc { height: 760px; overflow: hidden; }
  .fp-pane:not(.is-open) .fp-doc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%); pointer-events: none; }
  .fp-more { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin: 0; padding: 0 16px; font: 500 15px var(--sans); color: #fff; background: var(--navy); border: 0; cursor: pointer; }
  .fp-more:hover { background: var(--navy-2); }
  .fp-more:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  .fp-pane.is-open .fp-more svg { transform: rotate(180deg); }
}
@media (max-width: 760px) {
  .fp-head { margin-bottom: 32px; }
  .fp-q { padding: 22px 16px 20px; }
  .fp-q legend { font-size: 20px; }
  .fp-org { padding: 16px; }
  .fp-opts, .fp-opts--3 { grid-template-columns: 1fr; }
  .fp-class { grid-template-columns: 1fr; }
  .fp-cases { grid-template-columns: 1fr; }
  .fp-case { padding: 20px 16px; }
  .fp-result { padding: 24px 16px; }
  .fp-tool { flex: 1 1 100%; justify-content: flex-start; }
  .fp-doc { margin: 0; padding: 26px 18px 32px; box-shadow: none; }
  .doc__meta { grid-template-columns: 1fr; }
  .doc__sec { margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
  .fp-note { grid-template-columns: 1fr; padding: 22px 18px; }
  .fp-gaplist { max-height: none; }
}
@media (max-width: 520px) {
  .fp-steps ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fp-nav { flex-wrap: wrap; }
  .fp-nav__pos { order: -1; width: 100%; text-align: center; }
  .fp-nav .fp-btn { flex: 1 1 0; padding: 0 10px; }
  .fp-row { grid-template-columns: 1fr; }
  .fp-gaplist li { grid-template-columns: 16px minmax(0, 1fr); }
  .fp-goq { grid-column: 2; justify-self: start; margin: -6px 0 -10px -8px; }
  .fp-head__btns .fp-btn { flex: 1 1 100%; }
  .doc__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc__table, .doc__table tbody, .doc__table tr, .doc__table td { display: block; width: 100%; }
  .doc__table tr { padding: 10px 12px; }
  .doc__table td { padding: 2px 0; min-width: 0 !important; white-space: normal !important; }
  .doc__table td:first-child { font-size: 15px; }
}
@media (max-width: 340px) {
  .fp-seg span { font-size: 13.5px; }
  .fp-check > span { padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-q.is-on.is-enter, .doc__sec.is-fa, .doc__sec.is-fb, .fp-case.is-fa .fp-case__v, .fp-case.is-fb .fp-case__v, .fp-big b.is-ba, .fp-big b.is-bb { animation: none; }
}

/* Print: the policy document only */
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; font-size: 11pt; }
  .skip, .nav, .phero, .fp-head, .fp-form, .fp-result, .fp-bar, .fp-note, .fp-test, .lx-guide, .cta, .foot, .lx-toast { display: none !important; }
  .fp-builder { padding: 0; }
  .fp-builder .wrap { max-width: none; padding: 0; }
  .fp-print-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .fp-build { display: block; }
  .fp-pane { position: static; max-height: none; background: none; }
  .fp-doc, .fp-pane:not(.is-open) .fp-doc { height: auto; max-height: none; overflow: visible; margin: 0; padding: 0; box-shadow: none; font-size: 10.5pt; color: #000; }
  .fp-doc::after, .fp-more { display: none !important; }
  .js [data-rise] { opacity: 1 !important; transform: none !important; }
  .doc__sec { margin: 0; padding-left: 0; padding-right: 0; animation: none !important; }
  .doc__sec::before { display: none; }
  .doc__sec h3 { break-after: avoid; }
  .doc__table tr { break-inside: avoid; }
  .ptable thead th { background: #0d2463 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ptable tbody tr:nth-child(odd), .doc__disc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .table-wrap { overflow: visible; }
}
