<?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_0b6b7070-723b-468d-9991-e8c73dda3e6b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-20</startDate>
            <endDate>2026-04-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_0b6b7070-723b-468d-9991-e8c73dda3e6b"
      id="F_23fa00f7-a0e2-4876-bf3e-9253f5053499">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_0b6b7070-723b-468d-9991-e8c73dda3e6b"
      id="F_83cd97f4-dac0-44b6-aa1d-f56943586e44">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_0b6b7070-723b-468d-9991-e8c73dda3e6b"
      id="F_c52e52ae-2d03-432b-b2cd-a250e3f80116">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0b6b7070-723b-468d-9991-e8c73dda3e6b"
      id="F_a8ed6546-f1d7-4c02-bd38-b85c2368250a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0b6b7070-723b-468d-9991-e8c73dda3e6b"
      id="F_769d4406-d22d-4919-868c-3e88b981cef2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_0b6b7070-723b-468d-9991-e8c73dda3e6b"
      id="F_b6e81390-bf93-49e8-b353-69c3df5c7ea4">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_0b6b7070-723b-468d-9991-e8c73dda3e6b"
      id="F_052e3d9f-6d8e-477b-9cde-e5bade09da66">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0b6b7070-723b-468d-9991-e8c73dda3e6b"
      id="F_753259f0-8928-4e5d-a95a-e69021400731">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0b6b7070-723b-468d-9991-e8c73dda3e6b"
      id="F_dcdd9886-cc39-45af-9668-3dcd9d438343">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0b6b7070-723b-468d-9991-e8c73dda3e6b"
      id="F_3a76ea35-5c10-4fdb-9c42-bad93f8418f7">&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;2,979,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_0b6b7070-723b-468d-9991-e8c73dda3e6b"
      decimals="0"
      id="F_03336c4a-2a8f-43fd-b364-bf7f533572b6"
      unitRef="U_USD">2979000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
