<?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_cced18e9-3e16-4305-9f66-0d2abbff5e5b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-25</startDate>
            <endDate>2026-06-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cced18e9-3e16-4305-9f66-0d2abbff5e5b"
      id="F_8c40efed-1d50-4896-91d3-dc67b7122d60">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_cced18e9-3e16-4305-9f66-0d2abbff5e5b"
      id="F_a4cdc09f-5de7-4d53-8850-32a2ad5dc9ba">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_cced18e9-3e16-4305-9f66-0d2abbff5e5b"
      id="F_3e23c910-d9d2-4377-92c5-d5d7e98114aa">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_cced18e9-3e16-4305-9f66-0d2abbff5e5b"
      id="F_b74f588c-ddc0-4a97-8233-d3c5356998a3">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_cced18e9-3e16-4305-9f66-0d2abbff5e5b"
      id="F_60485919-9208-4246-bb4b-fe23c4fce009">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_cced18e9-3e16-4305-9f66-0d2abbff5e5b"
      id="F_bedefce6-cb53-43f0-8585-2a0646caafc5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_cced18e9-3e16-4305-9f66-0d2abbff5e5b"
      id="F_e8561a34-aee7-4b60-adab-7cb4ce6a14c9">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_cced18e9-3e16-4305-9f66-0d2abbff5e5b"
      id="F_403963d6-38d5-41e3-aa6b-6d4e8082085a">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cced18e9-3e16-4305-9f66-0d2abbff5e5b"
      id="F_d2ecebf2-4c80-4cbc-aae4-5447b23f11b8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_cced18e9-3e16-4305-9f66-0d2abbff5e5b"
      id="F_4718abcc-5458-49eb-82db-58e80f238d33">&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;3,528,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_cced18e9-3e16-4305-9f66-0d2abbff5e5b"
      decimals="-3"
      id="F_f43a0eaa-9c20-4082-9dd5-1aa18ba40039"
      unitRef="U_USD">3528000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
