<?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_b0388ae9-74ea-4716-b0fe-e34ae99eb995">
        <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_b0388ae9-74ea-4716-b0fe-e34ae99eb995"
      id="F_0542cdbb-a295-460a-b26c-4fcde5b0d9e5">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b0388ae9-74ea-4716-b0fe-e34ae99eb995"
      id="F_4d83f143-1ccc-4adf-9b7c-3028357ab628">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b0388ae9-74ea-4716-b0fe-e34ae99eb995"
      id="F_1cf984b0-400f-4c7b-b82c-1ebabcda2893">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_b0388ae9-74ea-4716-b0fe-e34ae99eb995"
      id="F_99953d47-2a8a-44ec-821a-01d5f044c3d3">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b0388ae9-74ea-4716-b0fe-e34ae99eb995"
      id="F_4b3817dc-c15c-4bf0-bfa2-44fbab256b45">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_b0388ae9-74ea-4716-b0fe-e34ae99eb995"
      id="F_3e79dd33-3e9a-4bb5-ba29-de38075dd81c">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_b0388ae9-74ea-4716-b0fe-e34ae99eb995"
      id="F_417b739e-f179-4588-b704-def3304829fc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b0388ae9-74ea-4716-b0fe-e34ae99eb995"
      id="F_a87c2a28-fd7d-41e8-bd07-c709ed0095fb">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b0388ae9-74ea-4716-b0fe-e34ae99eb995"
      id="F_cd550311-09b8-4533-870a-63bd9194f505">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b0388ae9-74ea-4716-b0fe-e34ae99eb995"
      id="F_84a4c0d1-a951-438c-9f16-cab3074f3c0e">&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;517,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_b0388ae9-74ea-4716-b0fe-e34ae99eb995"
      decimals="0"
      id="F_db38fa75-3b1a-48c9-8cce-db9be37e887b"
      unitRef="U_USD">517000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
