<?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_f7e32dd6-637b-415e-acb4-1d572448cd8e">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_f7e32dd6-637b-415e-acb4-1d572448cd8e"
      id="F_6a63f025-d869-483b-ab61-964abe138d1c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_f7e32dd6-637b-415e-acb4-1d572448cd8e"
      id="F_de846405-3fe9-4c24-90b9-c2cbf7766a80">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_f7e32dd6-637b-415e-acb4-1d572448cd8e"
      id="F_35d7a360-1825-495c-b8dd-e681a556e608">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_f7e32dd6-637b-415e-acb4-1d572448cd8e"
      id="F_770bad0b-2af3-4bb4-961f-af94edd50a1f">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f7e32dd6-637b-415e-acb4-1d572448cd8e"
      id="F_4dcf5e3d-460a-48bc-bbca-0c2c379c2d75">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f7e32dd6-637b-415e-acb4-1d572448cd8e"
      id="F_56da893f-100e-45cc-8d09-539bc6233a5e">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_f7e32dd6-637b-415e-acb4-1d572448cd8e"
      id="F_c44942b1-cd4e-464c-a856-1153399b18e1">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f7e32dd6-637b-415e-acb4-1d572448cd8e"
      id="F_5d428de9-dce8-4e6f-a989-3f381e472537">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f7e32dd6-637b-415e-acb4-1d572448cd8e"
      id="F_e8cdee62-1c7d-4c12-8744-fcb0eb37393c">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f7e32dd6-637b-415e-acb4-1d572448cd8e"
      id="F_41b91e2b-e773-46cb-bdae-80d71f9d0e1f">&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,156,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_f7e32dd6-637b-415e-acb4-1d572448cd8e"
      decimals="-3"
      id="F_105942d4-b9f8-4e0a-8847-f3b39496c5a8"
      unitRef="U_USD">1156000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
