<?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_fb725762-f025-46d9-a4a4-f877ee4dfb7b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fb725762-f025-46d9-a4a4-f877ee4dfb7b"
      id="F_0bc81367-2404-4ee7-86aa-3d29f9e46117">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fb725762-f025-46d9-a4a4-f877ee4dfb7b"
      id="F_31225c71-8f84-4d22-9be6-809778c43c2e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_fb725762-f025-46d9-a4a4-f877ee4dfb7b"
      id="F_67ce5fc1-aa0e-4200-b5ed-adf2f7f6de08">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_fb725762-f025-46d9-a4a4-f877ee4dfb7b"
      id="F_e9cfd76b-4c44-4d3d-8ee3-58cd740a76e1">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_fb725762-f025-46d9-a4a4-f877ee4dfb7b"
      id="F_d4434d00-3de3-48f7-9bec-70ce7665adeb">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_fb725762-f025-46d9-a4a4-f877ee4dfb7b"
      id="F_28fe265d-82c2-419b-8672-5cc0e48498ef">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_fb725762-f025-46d9-a4a4-f877ee4dfb7b"
      id="F_9473c60e-7291-45ba-9f13-44058e8a89c9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_fb725762-f025-46d9-a4a4-f877ee4dfb7b"
      id="F_947aee04-d6a0-4770-b8bb-b56e7338c58b">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_fb725762-f025-46d9-a4a4-f877ee4dfb7b"
      id="F_7656e5af-36b4-4c6d-8f1f-4535c2f5abe8">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_fb725762-f025-46d9-a4a4-f877ee4dfb7b"
      id="F_3b9216c2-9a33-46ed-97ac-5c71023e898a">&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,066,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_fb725762-f025-46d9-a4a4-f877ee4dfb7b"
      decimals="-3"
      id="F_b8ecaab4-8716-47b1-9d01-02230ffaa421"
      unitRef="U_USD">3066000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
