<?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_486750ba-3937-4254-a44d-2e21a477fff8">
        <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:RegnFileNb
      contextRef="C_486750ba-3937-4254-a44d-2e21a477fff8"
      id="F_86cf000a-df65-4726-b9f8-6a58b5f0d54c">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_486750ba-3937-4254-a44d-2e21a477fff8"
      id="F_5a14cf8f-e997-4ecf-8de9-4dc0ad15d20e">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_486750ba-3937-4254-a44d-2e21a477fff8"
      id="F_b62c798d-ab19-424f-87e0-45c3cab8d981">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_486750ba-3937-4254-a44d-2e21a477fff8"
      id="F_1987f44f-95d6-4442-9dbe-b0351e2eb7c8">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_486750ba-3937-4254-a44d-2e21a477fff8"
      id="F_064ff5b5-4ec5-4189-ba1c-49b7693d69dc">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_486750ba-3937-4254-a44d-2e21a477fff8"
      id="F_6ee2b7ba-7ddb-4d32-ad9a-6f2bce68c3f3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_486750ba-3937-4254-a44d-2e21a477fff8"
      id="F_e8454016-5756-4029-b4c9-a37b33c30f30">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_486750ba-3937-4254-a44d-2e21a477fff8"
      id="F_da6e8d76-0933-4a97-aa6e-df799a068839">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_486750ba-3937-4254-a44d-2e21a477fff8"
      id="F_5ffb8bae-f6ad-440d-b216-73d63c453c65">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_486750ba-3937-4254-a44d-2e21a477fff8"
      id="F_750d1d73-af83-4e3a-a13f-2d9263137602">&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,401,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_486750ba-3937-4254-a44d-2e21a477fff8"
      decimals="-3"
      id="F_08ab8e04-fc6f-45c9-bcb4-15d86ed95956"
      unitRef="U_USD">4401000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
