<?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_7bc9937b-96f5-48b9-9f9e-16f868989229">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-01</startDate>
            <endDate>2026-05-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_7bc9937b-96f5-48b9-9f9e-16f868989229"
      id="F_1405d164-0099-46fb-b69a-af4fb7174496">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_7bc9937b-96f5-48b9-9f9e-16f868989229"
      id="F_a808df4a-abe7-4017-8a67-476da4160ef9">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7bc9937b-96f5-48b9-9f9e-16f868989229"
      id="F_377f607f-553f-4277-b6e5-3a73e37dbc15">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7bc9937b-96f5-48b9-9f9e-16f868989229"
      id="F_55b04eab-0d90-4af2-95a2-18d5f868d11a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_7bc9937b-96f5-48b9-9f9e-16f868989229"
      id="F_f3ab2e45-dc73-4004-a57f-e08a5110cdaa">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_7bc9937b-96f5-48b9-9f9e-16f868989229"
      id="F_c7e8533f-4552-4e25-94e0-912c325b7da2">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_7bc9937b-96f5-48b9-9f9e-16f868989229"
      id="F_b69a4db9-e351-4d89-86dd-4cf06f808d33">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_7bc9937b-96f5-48b9-9f9e-16f868989229"
      id="F_c6d9f6dc-ce73-4345-aae0-5822affd06e1">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_7bc9937b-96f5-48b9-9f9e-16f868989229"
      id="F_9a559179-b345-4137-9fdd-5ff233fb2eae">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7bc9937b-96f5-48b9-9f9e-16f868989229"
      id="F_fbdffe4c-276d-47ef-9973-d84f9c93a933">&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;1,930,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_7bc9937b-96f5-48b9-9f9e-16f868989229"
      decimals="0"
      id="F_73ec5f96-e5f3-40a1-aed0-d3f156b3e599"
      unitRef="U_USD">1930000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
