<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>90</ContextCount>
  <ElementCount>25</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>11</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>2</UnitCount>
  <MyReports>
    <Report instance="cac-20250404.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>995100 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/dei/role/document/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="cac-20250404.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="DEF 14A" isProxy="true" isUsgaap="true" original="cac-20250404.htm">cac-20250404.htm</File>
    <File>cac-20250404.xsd</File>
    <File>cac-20250404_def.xml</File>
    <File>cac-20250404_lab.xml</File>
    <File>cac-20250404_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>cac-20250404_g1.jpg</File>
    <File>cac-20250404_g10.gif</File>
    <File>cac-20250404_g11.gif</File>
    <File>cac-20250404_g12.gif</File>
    <File>cac-20250404_g13.gif</File>
    <File>cac-20250404_g14.gif</File>
    <File>cac-20250404_g15.jpg</File>
    <File>cac-20250404_g16.jpg</File>
    <File>cac-20250404_g17.jpg</File>
    <File>cac-20250404_g18.jpg</File>
    <File>cac-20250404_g19.jpg</File>
    <File>cac-20250404_g2.jpg</File>
    <File>cac-20250404_g20.jpg</File>
    <File>cac-20250404_g21.jpg</File>
    <File>cac-20250404_g22.jpg</File>
    <File>cac-20250404_g23.jpg</File>
    <File>cac-20250404_g24.jpg</File>
    <File>cac-20250404_g25.jpg</File>
    <File>cac-20250404_g26.jpg</File>
    <File>cac-20250404_g27.jpg</File>
    <File>cac-20250404_g28.jpg</File>
    <File>cac-20250404_g29.jpg</File>
    <File>cac-20250404_g3.jpg</File>
    <File>cac-20250404_g30.jpg</File>
    <File>cac-20250404_g31.jpg</File>
    <File>cac-20250404_g32.jpg</File>
    <File>cac-20250404_g33.jpg</File>
    <File>cac-20250404_g34.jpg</File>
    <File>cac-20250404_g35.jpg</File>
    <File>cac-20250404_g36.jpg</File>
    <File>cac-20250404_g37.jpg</File>
    <File>cac-20250404_g38.jpg</File>
    <File>cac-20250404_g39.jpg</File>
    <File>cac-20250404_g4.gif</File>
    <File>cac-20250404_g40.jpg</File>
    <File>cac-20250404_g41.gif</File>
    <File>cac-20250404_g42.gif</File>
    <File>cac-20250404_g43.jpg</File>
    <File>cac-20250404_g44.jpg</File>
    <File>cac-20250404_g45.jpg</File>
    <File>cac-20250404_g46.jpg</File>
    <File>cac-20250404_g47.jpg</File>
    <File>cac-20250404_g48.jpg</File>
    <File>cac-20250404_g5.gif</File>
    <File>cac-20250404_g6.gif</File>
    <File>cac-20250404_g7.gif</File>
    <File>cac-20250404_g8.jpg</File>
    <File>cac-20250404_g9.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="5">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
    <BaseTaxonomy items="155">http://xbrl.sec.gov/ecd/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
