<?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_09a830aa-aa97-4130-a463-521c5840a510">
        <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:OffsetTableNa
      contextRef="C_09a830aa-aa97-4130-a463-521c5840a510"
      id="F_b6f734f8-e3c9-486e-9bc7-5fff712f94d8">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_09a830aa-aa97-4130-a463-521c5840a510"
      id="F_ea9efad4-2da1-4b3a-88af-81b684afda3b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_09a830aa-aa97-4130-a463-521c5840a510"
      id="F_81b0c9c4-f2e8-47f4-bd75-9a9d66bdadda">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_09a830aa-aa97-4130-a463-521c5840a510"
      id="F_0547824d-9a6a-4c46-aecf-f09e3f21838c">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_09a830aa-aa97-4130-a463-521c5840a510"
      id="F_08ff9d3e-a7f7-4ba6-beca-a94c4bec10f5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_09a830aa-aa97-4130-a463-521c5840a510"
      id="F_3758f49c-bdcc-4ad9-96e1-7dc534b09f5f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_09a830aa-aa97-4130-a463-521c5840a510"
      id="F_f04cc4c7-b94b-48b1-8bac-60d28f292449">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_09a830aa-aa97-4130-a463-521c5840a510"
      id="F_2658fd81-be8f-4948-a987-b7facf27f0a1">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_09a830aa-aa97-4130-a463-521c5840a510"
      id="F_d4437149-2c01-4a05-97a0-d21f8e851fe9">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_09a830aa-aa97-4130-a463-521c5840a510"
      id="F_d7267203-ba83-4962-acf1-4393a9d5431e">&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;4,700,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_09a830aa-aa97-4130-a463-521c5840a510"
      decimals="-3"
      id="F_737d8a95-b683-4232-91e0-2b3b59b018b4"
      unitRef="U_USD">4700000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
