<?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_5fbdcbc8-986c-4640-a64c-5eb09357322c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_5fbdcbc8-986c-4640-a64c-5eb09357322c"
      id="F_b8d9cd04-4a73-437d-a816-e2d3244f70f2">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_5fbdcbc8-986c-4640-a64c-5eb09357322c"
      id="F_eef3eda6-cf69-4fba-b0c7-fc1f0be93806">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_5fbdcbc8-986c-4640-a64c-5eb09357322c"
      id="F_cd01a842-2740-4b33-a873-19490bc3522c">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5fbdcbc8-986c-4640-a64c-5eb09357322c"
      id="F_eaf21283-5e25-400c-a40a-cdafdb424689">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_5fbdcbc8-986c-4640-a64c-5eb09357322c"
      id="F_fb400d5f-c894-49b4-929c-a466979b1327">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_5fbdcbc8-986c-4640-a64c-5eb09357322c"
      id="F_ff15ed3d-6283-4aca-8cf2-f9e1caf52457">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_5fbdcbc8-986c-4640-a64c-5eb09357322c"
      id="F_b81de6fb-f36a-4f63-9544-995ece20d49b">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5fbdcbc8-986c-4640-a64c-5eb09357322c"
      id="F_94703a7d-c7af-4797-b3a3-828c097a933f">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5fbdcbc8-986c-4640-a64c-5eb09357322c"
      id="F_3a7d9a04-8f24-4a11-82f5-79edc762d533">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5fbdcbc8-986c-4640-a64c-5eb09357322c"
      id="F_c75e9e06-4c26-4a03-a6bf-599898715f86">&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;542,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_5fbdcbc8-986c-4640-a64c-5eb09357322c"
      decimals="-3"
      id="F_3fa9a95d-27de-40b8-930d-0e06ec98ff23"
      unitRef="U_USD">542000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
