<?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_c7c9d034-c5fd-4b3f-a6d7-c71227c6417b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-30</startDate>
            <endDate>2026-03-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_c7c9d034-c5fd-4b3f-a6d7-c71227c6417b"
      id="F_61fdee75-f4e2-45fc-b3be-fdf6ed11529e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_c7c9d034-c5fd-4b3f-a6d7-c71227c6417b"
      id="F_142e783d-9e74-4c33-a39e-49b868a6d1ee">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_c7c9d034-c5fd-4b3f-a6d7-c71227c6417b"
      id="F_ad8ea6c4-0662-4c6f-a02f-36fec3ba0f5d">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_c7c9d034-c5fd-4b3f-a6d7-c71227c6417b"
      id="F_573f7c6b-e276-43aa-85bb-330142e62236">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_c7c9d034-c5fd-4b3f-a6d7-c71227c6417b"
      id="F_24875603-549a-487b-aaa6-1beedf91fc70">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_c7c9d034-c5fd-4b3f-a6d7-c71227c6417b"
      id="F_5ebaeac3-f5ec-496d-9c2c-a64d31ea921a">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c7c9d034-c5fd-4b3f-a6d7-c71227c6417b"
      id="F_8675a7ce-21bb-4dd0-9155-c85f22e80bc5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_c7c9d034-c5fd-4b3f-a6d7-c71227c6417b"
      id="F_51555144-c8ad-4b20-a4c5-52fae2fe4afe">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c7c9d034-c5fd-4b3f-a6d7-c71227c6417b"
      id="F_68f9e1c9-1ccf-47a6-9c9b-66fcc460ed5e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c7c9d034-c5fd-4b3f-a6d7-c71227c6417b"
      id="F_892e0939-2949-4165-b8ae-e45a345ebd50">&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,604,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_c7c9d034-c5fd-4b3f-a6d7-c71227c6417b"
      decimals="0"
      id="F_f331042d-6355-40b0-a928-68d02c44867a"
      unitRef="U_USD">1604000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
