<?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_e81241a8-6b0b-4d11-8bd2-1b8158df33ec">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-05</startDate>
            <endDate>2026-06-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_e81241a8-6b0b-4d11-8bd2-1b8158df33ec"
      id="F_9d7819e8-9c71-4b3f-8c51-e04f6794327b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_e81241a8-6b0b-4d11-8bd2-1b8158df33ec"
      id="F_885656e4-4682-4060-997c-45ab40dfffb1">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_e81241a8-6b0b-4d11-8bd2-1b8158df33ec"
      id="F_8057af6e-b457-43a3-9402-37f02819b865">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_e81241a8-6b0b-4d11-8bd2-1b8158df33ec"
      id="F_2b3d45f1-2295-4eaa-b107-fd9163bff430">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e81241a8-6b0b-4d11-8bd2-1b8158df33ec"
      id="F_998c6425-05cb-4e4e-940d-b7ce0c3af34d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_e81241a8-6b0b-4d11-8bd2-1b8158df33ec"
      id="F_3086abfd-7760-475a-b89a-693c055aa3e3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_e81241a8-6b0b-4d11-8bd2-1b8158df33ec"
      id="F_0170911a-a981-448d-905c-75bb485e9386">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e81241a8-6b0b-4d11-8bd2-1b8158df33ec"
      id="F_0ffe6d32-14a0-4ec0-8012-82df1c2f8c7d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_e81241a8-6b0b-4d11-8bd2-1b8158df33ec"
      id="F_fc4b77e4-25a2-4156-bd23-2096447e7e63">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e81241a8-6b0b-4d11-8bd2-1b8158df33ec"
      id="F_07d5d6b3-b41c-46fc-a95e-be75bfd6e9e8">&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;300,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_e81241a8-6b0b-4d11-8bd2-1b8158df33ec"
      decimals="-3"
      id="F_5a531703-4506-4726-bcb6-23bd80a7d6dc"
      unitRef="U_USD">300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
