/* v3 task-led overview: only the blocks the live page does not have.
   Everything else on the page keeps the live guide CSS. Tokens: --color-*, radius 0.75rem (rounded-xl). */

/* Ask field (inline assistant), directly under the hero */
.pmt-ask { margin: 0 0 1.5rem; padding: 1rem; }
@media (min-width: 640px) { .pmt-ask { padding: 1.25rem 1.5rem; } }
.pmt-ask__h { margin: 0 0 0.625rem; font-size: 1.125rem; font-weight: 700; color: var(--color-primary); line-height: 1.3; }
.pmt-ask__compose { margin: 0 !important; }
.pmt-ask__sugg { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0.75rem 0 0; padding: 0; }
.pmt-ask__sugg button {
  min-height: 36px; padding: 0.375rem 0.75rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface);
  color: var(--color-primary); font: inherit; font-size: 0.875rem; line-height: 1.3; cursor: pointer; text-align: left;
}
.pmt-ask__sugg button:hover { border-color: rgb(37 99 235 / 0.4); color: var(--color-accent); }
.pmt-ask__sugg button:focus-visible, .pmt-ask__close:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.pmt-ask__thread:not(:empty) { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.pmt-ask__close { margin-top: 0.75rem; padding: 0; border: 0; background: none; color: var(--color-accent); font: inherit; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* Penmate offer: the live purple card, kept compact on phones so the action cards follow quickly */
.pmt-offer { margin-top: 0 !important; }
@media (max-width: 767px) {
  .pmt-offer .inmate-search-card__illustration { display: none !important; }
  .pmt-offer .inmate-search-card__content { margin-top: 0 !important; padding: 1.5rem 1.25rem !important; gap: 1rem !important; }
  .pmt-offer .inmate-search-card__title { font-size: 1.375rem !important; }
  .pmt-offer .inmate-search-card__inputs { display: grid !important; grid-template-columns: 1fr 1fr; }
  .pmt-offer .inmate-search-card__button { grid-column: 1 / -1; }
}

/* Action cards */
.pmt-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .pmt-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pmt-card { display: flex; flex-direction: column; padding: 1.25rem; }
.pmt-title { margin: 0 0 0.375rem; font-size: 1.125rem; font-weight: 600; color: var(--color-primary); line-height: 1.3; }
.pmt-one { margin: 0 0 0.75rem; font-size: 0.9375rem; line-height: 1.55; color: var(--color-secondary); }
.pmt-direct {
  display: inline-flex; align-items: center; gap: 0.375rem; align-self: flex-start; min-height: 44px; padding: 0 1rem;
  border-radius: 0.5rem; background: var(--color-brand); color: #fff; font-weight: 600; font-size: 0.9375rem; text-decoration: none;
}
.pmt-direct:hover { background: #2d1e56; color: #fff; }
.pmt-direct:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.pmt-direct svg, .pmt-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pmt-who { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--color-secondary); }
.pmt-who span { font-weight: 600; color: var(--color-primary); }
.pmt-more { margin-top: 0.75rem; border-top: 1px solid var(--color-border); padding-top: 0.5rem; }
.pmt-more summary { cursor: pointer; font-size: 0.875rem; font-weight: 500; color: var(--color-accent); padding: 0.375rem 0; list-style-position: inside; }
.pmt-more__body { padding-top: 0.25rem; font-size: 0.875rem; line-height: 1.6; color: var(--color-secondary); }
.pmt-more__body p { margin: 0 0 0.625rem; }
.pmt-more__body strong { color: var(--color-primary); }
.pmt-links { list-style: none; margin: 0 0 0.625rem; padding: 0; }
.pmt-links li + li { margin-top: 0.25rem; }
.pmt-links a { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--color-accent); font-weight: 500; text-decoration: none; }
.pmt-links a:hover { text-decoration: underline; }
.pmt-src { font-size: 0.75rem !important; }
.pmt-src a { color: var(--color-accent); }

/* Inline answers reuse the assistant answer styles; tighten for in-page use */
.pmt-ask .pmga__a { font-size: 0.9375rem; }
.pmt-ask .pmga__q { max-width: 90%; }

/* Adaptive state: the page reorders around the visitor's stated goal (simulated) */
.pmt-goal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: -0.25rem 0 0.75rem; font-size: 0.8125rem; color: var(--color-secondary); }
.pmt-goal strong { color: var(--color-primary); }
.pmt-goal button { padding: 0; border: 0; background: none; color: var(--color-accent); font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.pmt-focus { box-shadow: 0 0 0 3px rgb(55 37 104 / 0.18); border-color: rgb(55 37 104 / 0.45) !important; }
.inmate-search-card.pmt-focus { box-shadow: 0 0 0 4px rgb(55 37 104 / 0.25); }
.pmt-adapted-note { margin: 0 0 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-accent); }
.pmga__choices { display: grid; gap: 0.5rem; margin: 0.5rem 0 0.75rem; }
.pmga__choices button { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 48px; padding: 0.5rem 0.875rem; border: 1px solid var(--color-border); border-radius: 0.75rem; background: #fff; color: var(--color-primary); font: inherit; font-weight: 600; font-size: 0.9375rem; text-align: left; cursor: pointer; }
.pmga__choices button:hover { border-color: rgb(55 37 104 / 0.4); background: var(--color-surface); }
.pmga__choices button:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.pmga__choices svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.pmt-adapted:not(:empty) { margin-bottom: 1.5rem; }
.pmt-part-on { margin-left: -0.75rem !important; padding: 0.5rem 0.75rem; border-left: 3px solid var(--color-brand); background: rgb(55 37 104 / 0.05); border-radius: 0 0.5rem 0.5rem 0; }
.pmt-more__body .inmate-search-card { margin: 0.5rem 0 0.25rem; }
#task-find .pmt-more__body > .inmate-search-card .inmate-search-card__illustration { display: none !important; }
#task-find .pmt-more__body > .inmate-search-card .inmate-search-card__content { margin-top: 0 !important; padding: 1.25rem !important; gap: 1rem !important; }
#task-find .pmt-more__body > .inmate-search-card .inmate-search-card__header { text-align: left !important; }
#task-find .pmt-more__body > .inmate-search-card .inmate-search-card__title { font-size: 1.25rem !important; }
#task-find .pmt-more__body > .inmate-search-card .inmate-search-card__inputs { display: grid !important; grid-template-columns: 1fr 1fr; }
#task-find .pmt-more__body > .inmate-search-card .inmate-search-card__button { grid-column: 1 / -1; width: 100% !important; }
.pmt-more--direct { border-top: 0; padding-top: 0; margin-top: 0; }
.pmt-more--direct > summary.pmt-direct { list-style: none; display: inline-flex; color: #fff; padding: 0 1rem; font-size: 0.9375rem; }
.pmt-more--direct > summary.pmt-direct::-webkit-details-marker { display: none; }
.pmt-more--direct[open] > summary.pmt-direct { display: none; }
.pmt-ask .pmga__send svg, .pmt-ask svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pmt-ask .pmga__actions svg, .pmt-ask .pmga__choices svg { width: 16px; height: 16px; }
.pmt-card > span:first-child { align-self: flex-start; }
/* Fable 1D fixes: 2x2 grid, arrow text links instead of filled buttons */
@media (min-width: 640px) { .pmt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.pmt-direct { min-height: 0; padding: 0.25rem 0; background: none !important; color: var(--color-accent) !important; font-size: 0.9375rem; border-radius: 0; }
.pmt-direct:hover { text-decoration: underline; }
.pmt-more--direct > summary.pmt-direct { color: var(--color-accent) !important; padding: 0.25rem 0; cursor: pointer; }
.pmga__choices button.is-chosen { border-color: var(--color-brand); background: rgb(55 37 104 / 0.05); cursor: default; }

/* Lower half (§1H): Next steps + Find a guide. Guide-card style without images. */
.pmt-next__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 1024px) { .pmt-next__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pmt-next__list li { background: #fff; border: 1px solid var(--color-border); border-radius: 0.75rem; padding: 1rem 1.125rem; }
.pmt-next__list a { display: block; font-weight: 600; color: var(--color-primary); text-decoration: none; line-height: 1.35; }
.pmt-next__list a:hover { color: var(--color-accent); text-decoration: underline; }
.pmt-next__list span { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: var(--color-secondary); line-height: 1.45; }
.pmt-finder__label { display: block; margin-bottom: 0.375rem; font-size: 0.875rem; font-weight: 600; color: var(--color-primary); }
.pmt-finder__row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.pmt-finder__row input {
  flex: 1 1 14rem; min-width: 0; min-height: 48px; padding: 0.75rem 1rem; border: 1px solid var(--color-border); border-radius: 0.5rem;
  font: inherit; font-size: 1rem; background: #fff; color: var(--color-primary);
}
.pmt-finder__row input:focus { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 3px rgb(55 37 104 / 0.12); }
.pmt-finder__clear, .pmt-finder__ask { padding: 0; border: 0; background: none; color: var(--color-accent); font: inherit; font-size: 0.875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.pmt-finder__status { margin: 0.75rem 0 0.5rem; font-size: 0.875rem; color: var(--color-secondary); min-height: 1px; }
.pmt-finder__status:empty { margin: 0.25rem 0; }
.pmt-finder__results { list-style: none; margin: 0 0 1rem; padding: 0; background: #fff; border: 1px solid var(--color-border); border-radius: 0.75rem; }
.pmt-finder__results li { padding: 0.75rem 1rem; border-top: 1px solid var(--color-border); }
.pmt-finder__results li:first-child { border-top: 0; }
.pmt-finder__results a { font-weight: 600; color: var(--color-primary); text-decoration: none; }
.pmt-finder__results a:hover { color: var(--color-accent); text-decoration: underline; }
.pmt-finder__results small { display: block; margin-top: 0.125rem; font-size: 0.75rem; color: var(--color-secondary); }
.pmt-finder__groups { overflow: hidden; }
.pmt-finder__group + .pmt-finder__group { border-top: 1px solid var(--color-border); }
.pmt-finder__group > summary { display: flex; align-items: baseline; gap: 0.375rem; padding: 0.875rem 1rem; cursor: pointer; list-style: none; }
.pmt-finder__group > summary::-webkit-details-marker { display: none; }
.pmt-finder__group > summary::after { content: "▾"; margin-left: auto; color: var(--color-secondary); font-size: 0.875rem; }
.pmt-finder__group[open] > summary::after { content: "▴"; }
.pmt-finder__group > summary:hover { background: rgb(249 250 251 / 0.8); }
.pmt-finder__gh { display: inline; margin: 0; font-size: 1rem; font-weight: 600; color: var(--color-primary); }
.pmt-finder__count { font-size: 0.875rem; color: var(--color-secondary); }
.pmt-finder__list { list-style: none; margin: 0; padding: 0 1rem 0.75rem; }
.pmt-finder__list li { padding: 0.5rem 0; border-top: 1px solid rgb(229 231 235 / 0.6); }
.pmt-finder__list a { color: var(--color-accent); font-weight: 500; text-decoration: none; line-height: 1.4; }
.pmt-finder__list a:hover { text-decoration: underline; }
/* Fable 1I: 'Show all guides' sits under the field */
.pmt-finder__row { flex-direction: column; align-items: stretch; }
.pmt-finder__row input { flex: none; width: 100%; }
.pmt-finder__clear { align-self: flex-start; margin-top: 0.25rem; }

/* v4 one field (§1J joint position) */
.pmt-one__form { display: flex; flex-direction: column; gap: 0.5rem; }
.pmt-one__form input { width: 100%; min-height: 48px; padding: 0.75rem 1rem; border: 1px solid var(--color-border); border-radius: 0.75rem; font: inherit; font-size: 1rem; background: #fff; color: var(--color-primary); }
.pmt-one__form input:focus { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 3px rgb(55 37 104 / 0.12); }
.pmt-one__get { align-self: flex-start; min-height: 44px; padding: 0 1.125rem; border: 0; border-radius: 0.5rem; background: var(--color-brand); color: #fff; font: inherit; font-weight: 600; font-size: 0.9375rem; cursor: pointer; }
.pmt-one__get:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.pmt-one .pmga__q { display: none; }
.pmt-one__answer[data-loading] { min-height: 7.5rem; }
.pmt-one__guides { margin-top: 1rem; }
.pmt-one__gh { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--color-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.pmt-one__status:not(:empty) { margin: 0.75rem 0 0; font-size: 0.9375rem; color: var(--color-secondary); }
.pmt-one__slots { display: grid; gap: 0.625rem; margin: 0.5rem 0 0.75rem; }
.pmt-one__official { margin: 0; padding: 0.75rem 0.875rem; border: 1px solid var(--color-border); border-radius: 0.75rem; background: var(--color-surface); }
.pmt-one__official span { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-secondary); }
.pmt-one__official a { font-weight: 600; color: var(--color-accent); }
.pmt-one__official small { display: block; font-size: 0.75rem; color: var(--color-secondary); }
.pmt-one__penmate { margin: 0; }
.pmt-one__penmate a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 0.5rem; background: var(--color-brand); color: #fff !important; font-weight: 600; text-decoration: none; }
.pmt-one__guide { margin: 0; }
.pmt-one__guide a { color: var(--color-accent); font-weight: 500; }
.pmt-one__up { margin: 0 0 0.75rem; font-size: 0.9375rem; }
.pmt-one__up a { color: var(--color-accent); font-weight: 600; }

/* One seeded question in the Visit card (lead 2026-11-25) */
.pmt-seed { margin-top: 0.875rem; padding: 0.875rem 1rem; border-radius: 0.75rem; background: var(--color-surface); border: 1px solid var(--color-border); }
.pmt-seed__q { margin: 0 0 0.25rem; font-weight: 600; color: var(--color-primary); font-size: 0.9375rem; }
.pmt-seed__a { margin: 0 0 0.5rem; font-size: 0.875rem; line-height: 1.55; color: var(--color-secondary); }
.pmt-seed__links { margin: 0 0 0.5rem; font-size: 0.8125rem; color: var(--color-secondary); }
.pmt-seed__links a { color: var(--color-accent); }
.pmt-seed__ask { padding: 0; border: 0; background: none; color: var(--color-accent); font: inherit; font-size: 0.875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.pmt-seed__ask:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.pmt-one__ctx { display: inline-flex; align-items: center; gap: 0.375rem; margin: 0 0 0.5rem; padding: 0.25rem 0.375rem 0.25rem 0.75rem; border-radius: 999px; background: rgb(55 37 104 / 0.08); color: var(--color-brand); font-size: 0.8125rem; font-weight: 600; }
.pmt-one__ctx button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; color: var(--color-brand); font: inherit; line-height: 1; cursor: pointer; }
.pmt-seed__label { margin: 0 0 0.25rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-secondary); }
.pmt-seed__src { margin: 0 0 0.5rem; font-size: 0.75rem; }
.pmt-seed__src a { color: var(--color-secondary); }

/* One field: Nick's final feedback (subtitle, identity label, ask + shortcuts in one block) */
.pmt-subtitle { margin: 0 0 1rem; font-size: 1.0625rem; line-height: 1.45; color: var(--color-primary); max-width: 46ch; }
.pmt-idlabel { display: inline-block; margin: 1rem 0 0; padding: 0.125rem 0.5rem; border-radius: 0.375rem; background: rgb(55 37 104 / 0.06); color: var(--color-brand); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
.pmt-ask.pmt-one { border: 0 !important; background: none !important; padding: 0 !important; }
.pmt-one__explain { margin: -0.375rem 0 0.75rem; font-size: 0.875rem; color: var(--color-secondary); }
.pmt-one__shortcuts { margin-top: 1.5rem; }
.pmt-one__tasks-h { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 600; color: var(--color-primary); }
.pmt-one__groups { display: grid; gap: 0.75rem; margin-top: 1rem; }
@media (min-width: 640px) { .pmt-one__groups { grid-template-columns: auto 1fr; gap: 1.5rem; } }
.pmt-one__glabel { margin: 0 0 0.375rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-secondary); }
.pmt-one__group ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.pmt-one__group a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.875rem; border: 1px solid var(--color-border); border-radius: 999px; background: #fff; color: var(--color-primary); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.pmt-one__group a:hover { border-color: rgb(37 99 235 / 0.4); color: var(--color-accent); }
.pmt-one__group:first-child a { border-color: rgb(55 37 104 / 0.35); color: var(--color-brand); font-weight: 600; }
.pmt-one__tasks-h:empty { display: none; }
.pmt-title:focus { outline: none; }
.pmt-title:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 4px; }
