<?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_4e53c622-e0be-47fe-96c8-5eab20554f17">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_4e53c622-e0be-47fe-96c8-5eab20554f17"
      id="F_b122d0fc-53a3-4525-92ee-efc2c80c3b8d">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_4e53c622-e0be-47fe-96c8-5eab20554f17"
      id="F_184629c9-66d3-4b43-b096-fc9f6888c8ff">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4e53c622-e0be-47fe-96c8-5eab20554f17"
      id="F_fbb9a5a9-6507-4604-bb2e-627fa1381286">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_4e53c622-e0be-47fe-96c8-5eab20554f17"
      id="F_84081c9d-2311-48f1-a627-f3f5b37f20a4">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4e53c622-e0be-47fe-96c8-5eab20554f17"
      id="F_fdf488fd-fdc3-402b-8a0e-d1e57645bb9a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4e53c622-e0be-47fe-96c8-5eab20554f17"
      id="F_3b66611d-866b-46b1-87d0-f6ca86773943">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_4e53c622-e0be-47fe-96c8-5eab20554f17"
      id="F_2dae28d6-d224-4c2b-9bf4-0ecd031c98d3">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_4e53c622-e0be-47fe-96c8-5eab20554f17"
      id="F_4b755a22-37f9-4d58-9a65-94e0ea778f75">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_4e53c622-e0be-47fe-96c8-5eab20554f17"
      id="F_8c41e600-1012-4c83-8488-628df244e4c3">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4e53c622-e0be-47fe-96c8-5eab20554f17"
      id="F_5a14d47b-cf78-4ed7-b986-36e9286fa8b4">&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,200,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_4e53c622-e0be-47fe-96c8-5eab20554f17"
      decimals="-3"
      id="F_72abe7a1-ecf3-4474-9137-d89594c30c4f"
      unitRef="U_USD">1200000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
