<?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_9940b5a1-6c99-48c1-a04a-e1de02060019">
        <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:RegnFileNb
      contextRef="C_9940b5a1-6c99-48c1-a04a-e1de02060019"
      id="F_b4dbac34-17ff-4ea0-97f8-e42049b6d723">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_9940b5a1-6c99-48c1-a04a-e1de02060019"
      id="F_2ab7171b-0e70-41b6-9179-eebbe3f34ef9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9940b5a1-6c99-48c1-a04a-e1de02060019"
      id="F_fb237e62-6f5c-4708-a71e-4cfc3ce96542">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_9940b5a1-6c99-48c1-a04a-e1de02060019"
      id="F_7395fb8f-624f-4333-811b-3424975b9db8">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_9940b5a1-6c99-48c1-a04a-e1de02060019"
      id="F_ccd644ea-e9fa-4f8c-ae91-c4dd967c97b4">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_9940b5a1-6c99-48c1-a04a-e1de02060019"
      id="F_a108da1b-6d34-44dd-bf5a-aabd7021af2a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_9940b5a1-6c99-48c1-a04a-e1de02060019"
      id="F_4c83ee11-907e-4bc6-8598-6dd9a1b04219">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_9940b5a1-6c99-48c1-a04a-e1de02060019"
      id="F_1e249bac-0261-402c-8062-15f95e0fe39b">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_9940b5a1-6c99-48c1-a04a-e1de02060019"
      id="F_163bad77-1d86-4bc4-a0ae-630115c5f34a">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9940b5a1-6c99-48c1-a04a-e1de02060019"
      id="F_02330657-3016-4519-80e5-3d163dac381e">&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;5,645,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_9940b5a1-6c99-48c1-a04a-e1de02060019"
      decimals="-3"
      id="F_fe8a8ae7-6aec-4081-9c88-86791075423d"
      unitRef="U_USD">5645000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
