<?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_1ed873da-01c8-478f-966e-61bd532bd234">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1ed873da-01c8-478f-966e-61bd532bd234"
      id="F_20493a16-57f1-4146-8bc5-c1ec5ed8135d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1ed873da-01c8-478f-966e-61bd532bd234"
      id="F_6e01348c-9244-4d7c-955e-acd243936923">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_1ed873da-01c8-478f-966e-61bd532bd234"
      id="F_dad18a7b-549c-4c37-a704-e8b289bf560a">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_1ed873da-01c8-478f-966e-61bd532bd234"
      id="F_e9aba588-57cb-430c-b0f0-67c43d482553">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1ed873da-01c8-478f-966e-61bd532bd234"
      id="F_a757565d-59c4-4efe-9a16-053c97f57701">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_1ed873da-01c8-478f-966e-61bd532bd234"
      id="F_c0c0805c-4d39-4a05-9604-8e7827e22354">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_1ed873da-01c8-478f-966e-61bd532bd234"
      id="F_b3df61bf-3d90-4830-a9a1-513a8492a639">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_1ed873da-01c8-478f-966e-61bd532bd234"
      id="F_7aa824f2-f2e8-4b4b-ab60-6808893d4408">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_1ed873da-01c8-478f-966e-61bd532bd234"
      id="F_4a8d4586-00f3-4494-9e35-9147d61943dc">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1ed873da-01c8-478f-966e-61bd532bd234"
      id="F_48f12cb6-6c91-495b-94ad-ee8b4ca2123c">&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;3,492,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_1ed873da-01c8-478f-966e-61bd532bd234"
      decimals="-3"
      id="F_41ae57d5-e95b-4863-9e3f-e6b76b549807"
      unitRef="U_USD">3492000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
