<?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_5e4d07cc-5bac-48d5-b2c4-f31f37a7d9d7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_5e4d07cc-5bac-48d5-b2c4-f31f37a7d9d7"
      id="F_8765a557-c29c-4a25-b052-0c99afa40abb">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5e4d07cc-5bac-48d5-b2c4-f31f37a7d9d7"
      id="F_0ce62f02-b1cb-47a6-9bcd-5717bf875b7e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_5e4d07cc-5bac-48d5-b2c4-f31f37a7d9d7"
      id="F_ecf4c925-bc77-4443-9f63-b02d2e40a4a7">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5e4d07cc-5bac-48d5-b2c4-f31f37a7d9d7"
      id="F_46d8f189-3822-45bd-a174-ef0d63e28677">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5e4d07cc-5bac-48d5-b2c4-f31f37a7d9d7"
      id="F_3e331362-93d4-4be4-8f37-d2332658d6a9">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_5e4d07cc-5bac-48d5-b2c4-f31f37a7d9d7"
      id="F_c4c3ecce-fbed-4ee7-840b-dc22c9abd20a">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5e4d07cc-5bac-48d5-b2c4-f31f37a7d9d7"
      id="F_dfc0001b-22be-4f3a-9ec4-598e0c7a43ff">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5e4d07cc-5bac-48d5-b2c4-f31f37a7d9d7"
      id="F_b7403041-55b5-4c14-b510-be5f5c102fdf">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5e4d07cc-5bac-48d5-b2c4-f31f37a7d9d7"
      id="F_8219f593-84a0-4aea-bc89-2db99c02089d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_5e4d07cc-5bac-48d5-b2c4-f31f37a7d9d7"
      id="F_85f8302f-ae45-44c2-8f07-1c33e183c60e">&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;740,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_5e4d07cc-5bac-48d5-b2c4-f31f37a7d9d7"
      decimals="0"
      id="F_454abbc9-f8f4-43af-bd08-57bef7404ca2"
      unitRef="U_USD">740000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
