<?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_fd84fba9-b5c2-4825-b8f3-3b5b55b0f21b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_fd84fba9-b5c2-4825-b8f3-3b5b55b0f21b"
      id="F_bbea3287-df93-47df-a588-4c6784337f03">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_fd84fba9-b5c2-4825-b8f3-3b5b55b0f21b"
      id="F_3ab30b40-72d2-4b84-91da-a48a09a0ae7d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_fd84fba9-b5c2-4825-b8f3-3b5b55b0f21b"
      id="F_51f5b643-e386-482c-9697-266f507902c8">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_fd84fba9-b5c2-4825-b8f3-3b5b55b0f21b"
      id="F_739e7cf6-5a8f-4125-b90b-1fed14ffd1cc">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_fd84fba9-b5c2-4825-b8f3-3b5b55b0f21b"
      id="F_5c78503a-c1ed-4a56-9ba3-c1ca67694ec8">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_fd84fba9-b5c2-4825-b8f3-3b5b55b0f21b"
      id="F_a9c6fc37-1fb5-4cb3-9ccd-6e06122c834c">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_fd84fba9-b5c2-4825-b8f3-3b5b55b0f21b"
      id="F_b444404b-5d55-4c02-b625-1a4dc4f97306">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fd84fba9-b5c2-4825-b8f3-3b5b55b0f21b"
      id="F_fd6211b7-9ab8-47aa-b3ba-3aaca919392c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_fd84fba9-b5c2-4825-b8f3-3b5b55b0f21b"
      id="F_bc3b89f6-bfcb-4583-b74e-33b37096c2fc">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_fd84fba9-b5c2-4825-b8f3-3b5b55b0f21b"
      id="F_72dceb2d-e2e8-4422-8cf9-4542fbae7cfa">&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;68,273,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_fd84fba9-b5c2-4825-b8f3-3b5b55b0f21b"
      decimals="-3"
      id="F_89ae2ade-c4dc-4bd0-88f8-24572882a0d7"
      unitRef="U_USD">68273000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
