<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_43a42a8e-087e-427a-b808-49665a62bb3f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-07</startDate>
            <endDate>2026-07-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_43a42a8e-087e-427a-b808-49665a62bb3f"
      id="F_7f3aec3c-410d-4e88-934b-edfcc2e49875">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_43a42a8e-087e-427a-b808-49665a62bb3f"
      id="F_190d1d20-291c-4f3e-a989-280f5760b13d">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_43a42a8e-087e-427a-b808-49665a62bb3f"
      id="F_803405ff-ecac-4173-a06e-7115a1f12917">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_43a42a8e-087e-427a-b808-49665a62bb3f"
      id="F_b2859156-687a-4a58-a347-e0e614eb60cf">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_43a42a8e-087e-427a-b808-49665a62bb3f"
      id="F_6c23d7f3-fa14-469c-9a74-094b36037909">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_43a42a8e-087e-427a-b808-49665a62bb3f"
      id="F_cfdde2b6-882b-47b4-8eca-bcfab5efb86a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_43a42a8e-087e-427a-b808-49665a62bb3f"
      id="F_146b96ff-3ded-4b5f-afb5-e8dbe4257fec">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_43a42a8e-087e-427a-b808-49665a62bb3f"
      id="F_899d9e81-4940-4de2-b116-22c01fa8301a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_43a42a8e-087e-427a-b808-49665a62bb3f"
      id="F_b503d345-9ec5-4869-83b6-0d6db04986eb">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_43a42a8e-087e-427a-b808-49665a62bb3f"
      id="F_ac65e55b-9694-4cc7-9c41-61d90db2323f">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;2,174,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_43a42a8e-087e-427a-b808-49665a62bb3f"
      decimals="-3"
      id="F_07b14ebe-321b-4f62-81ca-ace936714e7d"
      unitRef="U_USD">2174000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
