<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_135d01fb-e1a7-4c17-9a2a-3434e22ec125">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-27</startDate>
            <endDate>2026-04-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_135d01fb-e1a7-4c17-9a2a-3434e22ec125"
      id="F_da305508-c53b-4872-a08d-79b0346c77ad">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_135d01fb-e1a7-4c17-9a2a-3434e22ec125"
      id="F_d5a8a4a0-135c-44eb-ac36-0c2137ab8191">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_135d01fb-e1a7-4c17-9a2a-3434e22ec125"
      id="F_63fa0dd0-aeae-4b5e-8568-70085042a502">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_135d01fb-e1a7-4c17-9a2a-3434e22ec125"
      id="F_50fd7813-bc5b-4247-8e44-2842e0bca080">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_135d01fb-e1a7-4c17-9a2a-3434e22ec125"
      id="F_6b98bc9e-fa3e-462a-97cb-ab29839320cf">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_135d01fb-e1a7-4c17-9a2a-3434e22ec125"
      id="F_f7c7e38b-2fa5-453f-b51b-cfa2929cbc3b">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_135d01fb-e1a7-4c17-9a2a-3434e22ec125"
      id="F_090eb73c-54f3-4840-94bb-62b2bed5ef40">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_135d01fb-e1a7-4c17-9a2a-3434e22ec125"
      id="F_f7ee92a1-8ab7-4818-a377-b876ff4ad45c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_135d01fb-e1a7-4c17-9a2a-3434e22ec125"
      id="F_eeefc729-1ec2-4bd0-b64b-b0c5bb3b8040">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_135d01fb-e1a7-4c17-9a2a-3434e22ec125"
      id="F_88cbcae9-1ec8-4d3b-90ec-50315929256f">&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;4,000,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_135d01fb-e1a7-4c17-9a2a-3434e22ec125"
      decimals="0"
      id="F_89867fbb-c836-4e5b-9d18-4eba2a2563b2"
      unitRef="U_USD">4000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>