/* Accounting practice partnership page.
   Follows the Hire Me page (css/hire-me.css): Bootstrap 5 base, #212529 text,
   #198754 green, square corners, uppercase eyebrows, dark summary card. */

/* header.php prints this link when $page_hiring is set; hire-me.css isn't loaded here. */
.hire-skip-link { position: absolute; left: 1rem; top: -5rem; padding: .8rem 1.2rem; color: #fff; background: #212529; z-index: 200; }
.hire-skip-link:focus { top: .5rem; color: #fff; }

.ap-page { color: #212529; font-size: 1rem; line-height: 1.5; }
.ap-page [id] { scroll-margin-top: 2rem; }
.ap-page a:focus-visible,
.ap-page button:focus-visible,
.ap-page textarea:focus-visible { outline: 3px solid #198754; outline-offset: 4px; }
.ap-page .bg-dark a:focus-visible { outline-color: #dee2e6; }
.ap-page h3 { font-weight: 700; }
.ap-page .btn { font-size: 1rem; font-weight: 600; padding: .8rem 1.2rem; white-space: normal; }
.ap-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .09em; line-height: 1.6; text-transform: uppercase; color: #146c43; margin-bottom: 1rem; }
.ap-muted { color: #5c636a; }
.ap-small { font-size: .9rem; }

/* Hero and offer card */
.ap-hero { display: grid; grid-template-columns: 1.65fr 1fr; gap: 4rem; align-items: start; padding: 4rem 0 5rem; }
.ap-hero h1 { max-width: 18ch; margin-bottom: 1.5rem; }
.ap-lead { font-size: 1.3rem; line-height: 1.6; }
.ap-proof { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: 2rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid #dee2e6; font-size: .92rem; color: #5c636a; }
.ap-proof strong { color: #212529; }
.ap-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.ap-summary { color: #fff; padding: 2rem; border-top: 5px solid #198754; }
.ap-summary .ap-eyebrow { color: #dee2e6; }
.ap-summary h2 { font-size: 1.6rem; margin-bottom: 0; }
.ap-summary dl { border-top: 1px solid #495057; padding-top: .5rem; margin: 1.5rem 0 1.25rem; }
.ap-summary dt { font-size: .8rem; color: #dee2e6; margin-top: .9rem; }
.ap-summary dd { margin: .25rem 0 0; font-size: .95rem; }
.ap-summary a { color: #fff; }
.ap-summary .ap-summary-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Sections */
.ap-section { border-top: 1px solid #dee2e6; padding: 4rem 0; }
.ap-section-heading { max-width: 48rem; margin-bottom: 2.5rem; }
.ap-section-heading h2 { margin-bottom: 1rem; }
.ap-section-heading p:last-child { margin-bottom: 0; }

/* Winning clients */
.ap-examples { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ap-examples li { border: 1px solid #adb5bd; background: #fff; padding: .35rem .75rem; font-size: .95rem; }
.ap-pipeline { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0 0 2.5rem; background: #212529; color: #fff; }
.ap-pipeline li { padding: 1.5rem; border-right: 1px solid #495057; }
.ap-pipeline li:last-child { border-right: 0; }
.ap-pipeline span { display: block; font-size: .8rem; color: #dee2e6; margin-bottom: .7rem; }
.ap-pipeline strong { display: block; font-size: 1.1rem; }
.ap-pipeline p { margin: .6rem 0 0; font-size: .92rem; line-height: 1.6; }
.ap-example-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
.ap-example-grid h3 { font-size: 1.1rem; margin-bottom: .9rem; }
.ap-outline { border: 1px solid #212529; padding: 1.25rem; background: #fff; }
.ap-outline p { font-weight: 700; margin-bottom: .75rem; }
.ap-outline ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.ap-outline .ap-fake-button { display: inline-block; background: #198754; color: #fff; font-size: .85rem; font-weight: 600; padding: .35rem .7rem; text-transform: uppercase; }
.ap-table-box { overflow-x: auto; }
.ap-table { border-collapse: collapse; width: 100%; font-size: .96rem; }
.ap-table caption { caption-side: bottom; color: #5c636a; font-size: .85rem; padding-top: .75rem; }
.ap-table th, .ap-table td { padding: .75rem .5rem; border-bottom: 1px solid #dee2e6; text-align: right; }
.ap-table th:first-child, .ap-table td:first-child { text-align: left; padding-left: 0; }
.ap-table thead th { color: #146c43; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.ap-table tfoot th, .ap-table tfoot td { font-weight: 700; border-bottom: 0; }

/* Recurring work (as the Hire Me skills table) */
.ap-jobs-head { display: none; }
.ap-jobs { list-style: none; padding: 0; margin: 0; border-top: 1px solid #dee2e6; }
.ap-jobs li { padding: 1.25rem 0; border-bottom: 1px solid #dee2e6; }
.ap-jobs h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.ap-jobs p { margin: 0 0 .6rem; }
.ap-jobs p:last-child { margin-bottom: 0; }
.ap-job-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #146c43; margin-bottom: .1rem; }
.ap-ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; margin-top: 2rem; }
.ap-ai-grid .ap-result { margin-top: 0; }
.ap-result { background: #f8f9fa; border-left: 3px solid #198754; padding: 1.2rem 1.5rem; margin-top: 1.5rem; }
.ap-result h3, .ap-result h4 { font-size: 1rem; margin: 0 0 .6rem; }
.ap-result ul { margin-bottom: .75rem; padding-left: 1.25rem; }
.ap-result p:last-child, .ap-result ul:last-child { margin-bottom: 0; }

/* Work */
.ap-case { display: grid; grid-template-columns: 1fr 1.8fr; gap: 4rem; padding: 3rem 0; border-top: 1px solid #dee2e6; }
.ap-case-intro h3 { font-size: 2rem; margin-bottom: 1rem; }
.ap-case-subtitle { font-size: 1.2rem; line-height: 1.5; }
.ap-stack { font-size: .86rem; font-weight: 600; color: #5c636a; margin: 1.25rem 0; }
.ap-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.ap-links a { display: inline-flex; align-items: center; min-height: 44px; }
.ap-shot { position: relative; border: 1px solid #212529; margin: 0; }
.ap-shot img { display: block; width: 100%; height: auto; }
.ap-pin { position: absolute; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; background: #198754; color: #fff; font-size: .85rem; font-weight: 700; box-shadow: 0 0 0 3px #fff; transform: translate(-50%, -50%); }
.ap-notes { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.5rem; }
.ap-notes li { display: grid; grid-template-columns: 1.9rem 1fr; gap: .75rem; font-size: .95rem; }
.ap-notes .n { width: 1.9rem; height: 1.9rem; display: grid; place-items: center; background: #198754; color: #fff; font-size: .85rem; font-weight: 700; }
.ap-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding-top: 3rem; border-top: 1px solid #dee2e6; }
.ap-tool h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.ap-research { margin-top: 3rem; }
.ap-case-intro .ap-paper-title { font-size: 1.4rem; line-height: 1.3; }
.ap-paper-title a { color: inherit; }
.ap-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 1rem 0; font-size: .85rem; }
.ap-flow span { border: 1px solid #212529; background: #fff; padding: .3rem .55rem; }
.ap-flow b { font-weight: 400; color: #5c636a; }

/* Working together */
.ap-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.ap-roles div { border-top: 3px solid #212529; padding-top: 1rem; }
.ap-roles h3 { font-size: 1.25rem; }
.ap-roles p { margin-bottom: 0; }
.ap-equity { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; align-items: start; }
.ap-equity h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.ap-agree { background: #f8f9fa; border-left: 3px solid #198754; padding: 1.5rem; }
.ap-agree h4 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.ap-agree ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.ap-agree li { margin-bottom: .4rem; }
.ap-agree p { margin: 0; font-size: .92rem; color: #5c636a; }

/* Reply */
.ap-reply { padding: 3rem; margin: 1rem 0 3rem; background: #f8f9fa; border-top: 4px solid #198754; }
.ap-reply h2 { margin-bottom: 1rem; }
.ap-reply-intro { max-width: 44rem; }
.ap-simple { max-width: 46rem; }
.ap-simple-text { font-size: 1.2rem; line-height: 1.6; }
.ap-simple .ap-actions { align-items: center; margin-top: 1.25rem; }
.ap-email-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.ap-head-start { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #dee2e6; }
.ap-head-start h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.ap-reply-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; margin-top: 2rem; align-items: start; }
.ap-questions { display: flex; flex-direction: column; gap: 1.75rem; }
.ap-page fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ap-page legend { float: none; width: auto; font-size: 1.1rem; font-weight: 700; line-height: 1.4; margin-bottom: .75rem; padding: 0; }
.ap-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ap-chip { position: relative; }
.ap-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ap-chip label { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .45rem .9rem .45rem .75rem; border: 1px solid #6c757d; background: #fff; font-weight: 500; cursor: pointer; user-select: none; }
.ap-chip label::before { content: ''; flex: none; width: 1rem; height: 1rem; border: 1.5px solid #495057; background: #fff; }
.ap-chip label:hover { border-color: #198754; }
.ap-chip input:checked + label { background: #d1e7dd; border-color: #198754; font-weight: 600; }
.ap-chip input:checked + label::before { background: #198754; border-color: #198754; box-shadow: inset 0 0 0 .18rem #fff; }
.ap-chip input:focus-visible + label { outline: 3px solid #198754; outline-offset: 2px; }
.ap-note-field label { display: block; font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.ap-note-field .ap-hint { display: block; color: #5c636a; font-size: .9rem; margin-bottom: .5rem; }
.ap-note-field textarea { min-height: 6.5rem; border-color: #6c757d; }
.ap-draft { background: #fff; border: 1px solid #212529; }
.ap-draft-head { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; border-bottom: 1px solid #212529; }
.ap-draft-head h3 { font-size: 1.1rem; margin: 0; }
.ap-draft-meta { display: grid; grid-template-columns: 5.75rem minmax(0, 1fr); margin: 0; font-size: .92rem; border-bottom: 1px solid #dee2e6; }
.ap-draft-meta dt, .ap-draft-meta dd { margin: 0; padding: .5rem 0; border-bottom: 1px solid #dee2e6; font-weight: 400; }
.ap-draft-meta dt { padding-left: 1.25rem; color: #5c636a; }
.ap-draft-meta dd { padding-right: 1.25rem; overflow-wrap: anywhere; }
.ap-draft-meta dt:nth-last-child(2), .ap-draft-meta dd:last-child { border-bottom: 0; }
.ap-preview { margin: 0; padding: 1rem 1.25rem; min-height: 11rem; font-family: inherit; font-size: 1rem; line-height: 1.6; color: #212529; white-space: pre-wrap; overflow-wrap: anywhere; }
.ap-draft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-top: 1px solid #dee2e6; background: #fff; }
.ap-status { flex-basis: 100%; min-height: 1.5rem; margin: 0; font-size: .92rem; font-weight: 600; color: #146c43; }
.ap-draft-foot { margin: 0; padding: 0 1.25rem 1rem; background: #fff; font-size: .9rem; color: #5c636a; }
.ap-fallback { max-width: 40rem; margin-top: 1.5rem; }
.ap-fallback ol { padding-left: 1.25rem; }
.ap-page [hidden] { display: none !important; }

@media (max-width: 991px) {
  .ap-hero, .ap-case { gap: 2rem; }
  .ap-pipeline { grid-template-columns: repeat(2, 1fr); }
  .ap-pipeline li:nth-child(2) { border-right: 0; }
  .ap-pipeline li:nth-child(-n+2) { border-bottom: 1px solid #495057; }
  .ap-notes { grid-template-columns: 1fr 1fr; }
  .ap-reply { padding: 2rem; }
  .ap-reply-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (min-width: 768px) {
  .ap-jobs-head { display: grid; grid-template-columns: 24% minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding-bottom: .75rem; color: #146c43; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .ap-jobs li { display: grid; grid-template-columns: 24% minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
  .ap-jobs h3, .ap-jobs p { margin: 0; }
  .ap-job-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (max-width: 767px) {
  .ap-hero, .ap-case, .ap-example-grid, .ap-tools, .ap-roles, .ap-equity, .ap-ai-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .ap-hero { padding: 2rem 0 3rem; }
  .ap-lead { font-size: 1.15rem; }
  .ap-proof { gap: .35rem 1.5rem; margin-top: 1.5rem; }
  .ap-section { padding: 3rem 0; }
  .ap-section-heading { margin-bottom: 2rem; }
  .ap-case { padding: 2.5rem 0; }
  .ap-case-intro { border-left: 3px solid #198754; padding-left: 1.25rem; }
  .ap-notes { grid-template-columns: 1fr; }
  .ap-summary, .ap-reply { padding: 1.5rem; }
  .ap-equity { margin-top: 2rem; }
}

@media (max-width: 479px) {
  .ap-pipeline { grid-template-columns: 1fr; }
  .ap-pipeline li { border-right: 0; border-bottom: 1px solid #495057; }
  .ap-pipeline li:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .ap-chip label { transition: background-color .12s, border-color .12s; }
}
