<?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_ac226a98-f3b3-4fe2-a4ba-fbcabd010bb7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_ac226a98-f3b3-4fe2-a4ba-fbcabd010bb7"
      id="F_14bf9f98-3321-49b4-887f-5788c1a46252">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_ac226a98-f3b3-4fe2-a4ba-fbcabd010bb7"
      id="F_02a4a06e-8fb6-48f8-988b-06ad42efbc37">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_ac226a98-f3b3-4fe2-a4ba-fbcabd010bb7"
      id="F_5ae59f3d-fb60-4762-8d44-65e1a14cf89a">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ac226a98-f3b3-4fe2-a4ba-fbcabd010bb7"
      id="F_b896cf5f-1a8a-4fea-9d68-843ad95537ff">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ac226a98-f3b3-4fe2-a4ba-fbcabd010bb7"
      id="F_ca59ff9f-08f6-4f01-9892-e8aa21bbf0c8">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_ac226a98-f3b3-4fe2-a4ba-fbcabd010bb7"
      id="F_7620c60c-f315-4fc5-aa67-fb4e2e165113">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_ac226a98-f3b3-4fe2-a4ba-fbcabd010bb7"
      id="F_c1e1e065-a1a5-4d37-a425-e20341cae6b9">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_ac226a98-f3b3-4fe2-a4ba-fbcabd010bb7"
      id="F_d639b06f-2de5-477c-be3f-91f985a30564">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_ac226a98-f3b3-4fe2-a4ba-fbcabd010bb7"
      id="F_3dcf528b-488f-4afe-8f51-224bb3f47a9e">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ac226a98-f3b3-4fe2-a4ba-fbcabd010bb7"
      id="F_3ac47184-35a8-46b6-9c5d-1d934a2357c4">&lt;p style="tab-size:26.66px;font-size:12pt;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;4,914,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_ac226a98-f3b3-4fe2-a4ba-fbcabd010bb7"
      decimals="-3"
      id="F_86918251-1ec1-4c08-9a28-ecdf381794e5"
      unitRef="U_USD">4914000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
