<?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_17d37626-43e2-4fa9-8b16-9831c1fd8247">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_17d37626-43e2-4fa9-8b16-9831c1fd8247"
      id="F_86acdd38-3f71-4a9f-b0c5-2dc1d951a84e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_17d37626-43e2-4fa9-8b16-9831c1fd8247"
      id="F_2763f0c4-e64a-4589-b335-6af8e06f1cc6">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_17d37626-43e2-4fa9-8b16-9831c1fd8247"
      id="F_572e7f7c-603d-4526-b8bf-8eb67ba331fd">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_17d37626-43e2-4fa9-8b16-9831c1fd8247"
      id="F_8375188f-fe8a-4b15-9701-f1e577c4452c">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_17d37626-43e2-4fa9-8b16-9831c1fd8247"
      id="F_4a78427b-52ce-40e4-ac6f-6bdaf357d466">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_17d37626-43e2-4fa9-8b16-9831c1fd8247"
      id="F_b8031452-e546-4d09-a81a-0b9cd123216e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_17d37626-43e2-4fa9-8b16-9831c1fd8247"
      id="F_1b3a6b2d-e649-4655-b6f3-eb221fe1c887">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_17d37626-43e2-4fa9-8b16-9831c1fd8247"
      id="F_0006fb82-4188-443c-bc08-9ab1ec5a6a79">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_17d37626-43e2-4fa9-8b16-9831c1fd8247"
      id="F_91231abb-20f6-4117-bec4-411eb0356174">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_17d37626-43e2-4fa9-8b16-9831c1fd8247"
      id="F_6d1183b0-96c4-4ba8-ab79-69019ac5ebac">&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,282,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_17d37626-43e2-4fa9-8b16-9831c1fd8247"
      decimals="-3"
      id="F_73331e83-1fc5-43ba-be3a-1477c6b4e8ec"
      unitRef="U_USD">1282000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
