/* CPA page only (moved from foundation.css on Nov 11, 2026 so other pages stop downloading it). Foundation layer, as before. */
@layer legacy, foundation;
@layer foundation {
  /* CPA page (design pass 3, Nov 2026) */
  .cpa-hero .cpa-btn-ghost { color: var(--white); border: 1.5px solid rgba(255, 255, 255, .7); background: transparent; }
  .cpa-hero .cpa-btn-ghost:hover { border-color: var(--white); }
  .cpa-hero .crumbs ol, .cpa-hero .crumbs li, .cpa-hero .crumbs a { font-size: var(--fs-small); }
  /* Session 27 (visual pass item 8): the CPA hero joins the site's summary-card hero; the three trust lines moved into the card */
  .cpa-hero .cpa-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
  .cpa-hero .answer-card { background: #1C3625; border: 1px solid rgba(244, 243, 238, .18); border-radius: 16px; padding: 28px; color: #F4F3EE; }
  .cpa-hero .answer-card h2 { font-size: 20px; line-height: 1.3; color: #F5C66A; margin: 0 0 12px; }
  .cpa-hero .answer-card dl { margin: 0; }
  .cpa-hero .answer-card dt { font-size: 15px; font-weight: 700; color: #fff; margin-top: 14px; }
  .cpa-hero .answer-card dd { margin: 4px 0 0; color: #F4F3EE; font-size: 17px; line-height: 1.5; }
  @media (max-width: 960px) { .cpa-hero .cpa-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
  /* Session 27 (visual pass item 11): the CPA page lists the 12 Industries groups as the homepage and R&D tiles do
     (_includes/industry-tiles.njk), replacing 24 page chips in no set order; same sizes as css/industry-v2.css */
  .cpa-ind .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
  .cpa-ind .tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 16px; font-size: 17px; font-weight: 600; line-height: 1.3; color: #0D1F14; text-decoration: none; background: #fff; border: 1px solid rgba(13, 31, 20, .55); border-radius: 10px; }
  .cpa-ind .tile .arr { flex: none; box-sizing: border-box; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: #1D6B35; stroke: #fff; stroke-width: 2.5; fill: none; transition: background .15s; }
  .cpa-ind .tile:hover, .cpa-ind .tile:focus-visible { border-color: #1D6B35; box-shadow: 0 0 0 1px #1D6B35, 0 8px 20px rgba(0, 0, 0, .08); }
  .cpa-ind .tile:hover .arr { background: #155227; }
  @media (max-width: 960px) { .cpa-ind .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 767px) { .cpa-ind .tiles { gap: 8px; } .cpa-ind .tile { min-height: 64px; padding: 10px 10px 10px 12px; gap: 8px; font-size: 15px; } .cpa-ind .tile .arr { width: 26px; height: 26px; padding: 6px; } }
  @media (max-width: 379px) { .cpa-ind .tile { font-size: 15px; gap: 6px; padding: 10px 8px 10px 10px; } .cpa-ind .tile .arr { width: 24px; height: 24px; padding: 5px; } }
  @media (max-width: 359px) { .cpa-ind .tiles { grid-template-columns: minmax(0, 1fr); } }
  /* Session 36: industry tile icons, same as the R&D page (Taylor, Nov 17, 2026: uniform). From 768 px; the tiles are hidden on phones. */
  .cpa-ind .ic-t { display: none; place-items: center; flex: none; }
  .cpa-ind .ic-t svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  @media (min-width: 768px) { .cpa-ind .tile { justify-content: flex-start; } .cpa-ind .tile .arr { margin-left: auto; } .cpa-ind .ic-t { display: inline-grid; width: 32px; height: 32px; padding: 6px; border-radius: 9px; color: #1D6B35; background: #EEF5EF; border: 1px solid #DCE5DE; } }
  @media (min-width: 961px) { .cpa-ind .ic-t { width: 40px; height: 40px; padding: 8px; border-radius: 12px; } }
}
/* Session 33 (Taylor approved the cut list and mockup): the CPA page on phones, 13.8 to about 11.4 screens with the proof card.
   Phones only, except the whole-row links: At a Glance hidden (its lines repeat the hero, the form and the team); the industry
   tiles hidden (See All Industries stays); team cards keep name, title, credential, the "Usually ..." line and contact links, with
   Meet the Partners for the full bios; the calculators and guides become one-line rows; "Prefer to Talk First?" hidden (the
   sticky bar and the hero both book the call). Every tool and guide card is one link across the whole card, at every width. */
@layer foundation {
  #tools .cpa-tool, #guides .cpa-card { position: relative; }
  #tools .cpa-more::after, #guides .cpa-more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
  #tools .cpa-tool:hover, #guides .cpa-card:hover { box-shadow: 0 6px 18px rgba(13, 31, 20, .12); }
  .cpa-meet { display: none; }
  @media (max-width: 640px) {
    .cpa-hero .answer-card { display: none; }
    #who-to-refer .cpa-ind .tiles, #who-to-refer .cpa-ind .related-ind-h { display: none; }
    #who-to-refer .cpa-ind { margin-top: 8px; }
    #team .cpa-person p:not(.us) { display: none; }
    .cpa-meet { display: inline-flex; margin-top: 16px; }
    #tools .cpa-tool, #guides .cpa-card { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 16px; }
    #tools .cpa-tool .pill, #tools .cpa-tool p, #guides .cpa-card .pill, #guides .cpa-card p { display: none; }
    #tools .cpa-tool h3, #guides .cpa-card h3 { margin: 0; font-size: 17px; }
    #tools .cpa-more, #guides .cpa-more { margin: 0; min-width: 24px; min-height: 24px; }
    #tools .cpa-more .cm-t, #guides .cpa-more .cm-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    #tools .cpa-more span[aria-hidden], #guides .cpa-more span[aria-hidden] { font-size: 20px; }
    #tools .cpa-tools, #guides .cpa-g4 { gap: 8px; }
    #ctaSection .cpa-talk { display: none; }
    #proof.section { padding-top: 40px; padding-bottom: 40px; }
  }
}
