/* hand font: "Covered By Your Grace" must be self-hosted before it is loaded (no Google Fonts request in production); until then the fallback in .hw applies */
/* V7.9 home: rules beyond k.css. Scoped under .p-home.
   The hand font above is the one the approved preview loads; the site already loads its other web fonts from the same host. Self-host it in k.css when the file is in the repo. */

/* one giveaway element on this page: the tile in the Paul block replaces the band above the footer */
body.p-home .gband{display:none}

/* "Find firms by": the built browse block as plain rows (table look: bold label, grey values, faint lines) */
.p-home .fby{margin-top:72px}
.p-home .fby h3{font-size:24px}
.p-home .fby-l{margin-top:20px;border-top:1px solid var(--ink)}
.p-home .fby-r{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:center;min-height:64px;border-bottom:1px solid var(--line)}
.p-home .fby-r h4{margin:0;font:700 16px/1.3 var(--d);letter-spacing:-.01em;color:var(--ink)}
.p-home .fby-r p{display:flex;flex-wrap:wrap;gap:0 28px;margin:0}
.p-home .fby-r a{display:inline-flex;align-items:baseline;gap:6px;padding-block:10px;font:500 16px/1.3 var(--b);color:#707070;text-decoration:none}
.p-home .fby-r a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.p-home .fby-r small{font-size:13.5px;color:#a3a3a0}

/* a firm's own code: the offer wording of the review page, quiet, may wrap */
.p-home .deal .q{font-size:14.5px;line-height:1.35}

/* side card without a code row: the button keeps its place at the bottom */
.p-home .fc-side:not(:has(.deal)){grid-template-rows:auto auto 1fr auto}

/* giveaway tile at the end of the Paul block */
.p-home .pgive{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:20px 48px;align-items:center;background:var(--tile);border-radius:var(--r);padding:32px 36px}
.p-home .pgive[hidden]{display:none}
.p-home .pg-tx{display:flex;align-items:center;gap:18px}
.p-home .pg-tx p{font-size:16px;line-height:1.45;color:var(--copy);margin:0}
.p-home .pg-tx b{display:block;font:800 22px/1.2 var(--d);letter-spacing:-.02em;color:var(--ink);margin-bottom:6px}
.p-home .pg-f{display:grid;gap:10px}
.p-home .pg-form{display:grid;gap:10px;margin:0}
.p-home .pg-form[hidden],.p-home .pg-box[hidden],.p-home .pgive [hidden]{display:none}
.p-home .pg-row{display:flex;gap:8px}
.p-home .pgive .pg-row input{flex:1;min-width:0;height:52px;padding:0 22px;border:0;border-radius:999px;background:#fff;font:500 16px var(--b);color:var(--ink);box-shadow:none}
.p-home .pgive .pg-row input::placeholder{color:#9a9a97}
.p-home .pgive .pg-row input:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.p-home .pgive .pg-row input[aria-invalid=true]{outline:2px solid var(--red,#f23645);outline-offset:2px}
/* the entry script rewrites the button text, so the arrow disc is drawn here instead of an inline svg */
.p-home .pgive .pg-row button{flex:none;height:52px;justify-content:space-between;gap:18px;padding:0 8px 0 28px;border:0;cursor:pointer}
.p-home .pgive .pg-row button::after{content:"";width:36px;height:36px;border-radius:50%;flex:none;background:var(--green,#22ab94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/18px no-repeat}
.p-home .pgive .pg-row button:disabled{opacity:.6;cursor:default}
.p-home .pg-l{font-size:13px;line-height:1.45;color:var(--muted);margin:0;padding-left:22px}
.p-home .pg-l a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.p-home #giveawayPageError{font-size:14px;color:var(--ink);margin:0;padding-left:22px}
.p-home .pg-box{font-size:15.5px;line-height:1.45;color:var(--copy)}
.p-home .pg-box strong{display:block;font:800 18px/1.25 var(--d);color:var(--ink)}
.p-home .pg-box p{margin:4px 0 0}
.p-home .pg-box:focus{outline:0}

@media (max-width:900px){
  .p-home .chip.sm{height:40px}
  .p-home .fig .seg button{min-height:40px}
  .p-home .fby{margin-top:48px}
  .p-home .fby-r{grid-template-columns:1fr;gap:0;padding:14px 0 6px}
  .p-home .fby-r p{gap:0 22px}
  .p-home .pgive{grid-template-columns:1fr;gap:20px;padding:24px 22px}
  .p-home .pg-tx{align-items:flex-start}
  .p-home .pg-tx b{font-size:20px}
  .p-home .pg-row{flex-direction:column}
  .p-home .pgive .pg-row input{flex:none;width:100%}
  .p-home .pgive .pg-row button{width:100%}
  .p-home .pg-l,.p-home #giveawayPageError{padding-left:0}
}
