<?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_c7f7f0b7-26e5-4f5b-9c59-33b87131e83a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_c7f7f0b7-26e5-4f5b-9c59-33b87131e83a"
      id="F_da0edd28-bbd6-4ac2-b4ea-a3f00f05da24">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c7f7f0b7-26e5-4f5b-9c59-33b87131e83a"
      id="F_df0ec71f-4144-4a70-a6d5-9acc6884297c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_c7f7f0b7-26e5-4f5b-9c59-33b87131e83a"
      id="F_b47931eb-c1a6-4166-a098-455c693b6cc2">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c7f7f0b7-26e5-4f5b-9c59-33b87131e83a"
      id="F_498b89b4-3f6c-4137-92f8-a4ebea6d17bd">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c7f7f0b7-26e5-4f5b-9c59-33b87131e83a"
      id="F_10af0a83-c72f-41f1-a7b9-b92e5fd4049d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c7f7f0b7-26e5-4f5b-9c59-33b87131e83a"
      id="F_15671d10-f954-4454-8573-71fa2c05e2cb">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c7f7f0b7-26e5-4f5b-9c59-33b87131e83a"
      id="F_5a00ce72-ab45-4a59-b797-918d3cb33ace">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_c7f7f0b7-26e5-4f5b-9c59-33b87131e83a"
      id="F_fec0e8cc-ef1e-40b4-89f0-73db43861d5f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_c7f7f0b7-26e5-4f5b-9c59-33b87131e83a"
      id="F_080f4b20-87fc-4552-b9ab-2cefdf61a9a0">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c7f7f0b7-26e5-4f5b-9c59-33b87131e83a"
      id="F_58274a0e-915f-4598-a07e-52e581f61630">&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;5,827,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_c7f7f0b7-26e5-4f5b-9c59-33b87131e83a"
      decimals="-3"
      id="F_07a58f88-0cf5-4999-bfcf-94927b035690"
      unitRef="U_USD">5827000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
