<?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_35f3e15c-1f8b-46eb-82bd-a16649dbfd26">
        <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>
    <ffd:FormTp
      contextRef="C_35f3e15c-1f8b-46eb-82bd-a16649dbfd26"
      id="F_34726eb7-bfa7-4f6f-ae57-22b7b20cfff2">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_35f3e15c-1f8b-46eb-82bd-a16649dbfd26"
      id="F_f448520a-5f64-4cda-8b97-baa2baa8abb6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_35f3e15c-1f8b-46eb-82bd-a16649dbfd26"
      id="F_64b2ec14-540d-4f23-b060-dcc743956cde">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_35f3e15c-1f8b-46eb-82bd-a16649dbfd26"
      id="F_f807fbdb-ffb0-4a3f-938f-f9f5f2115b5d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_35f3e15c-1f8b-46eb-82bd-a16649dbfd26"
      id="F_0708084a-a9f9-4f5d-a77a-e083ea9b9047">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_35f3e15c-1f8b-46eb-82bd-a16649dbfd26"
      id="F_230f5196-3267-4d5c-b0ce-2d0c9a9a5f41">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_35f3e15c-1f8b-46eb-82bd-a16649dbfd26"
      id="F_5647f15c-9f04-48e3-ba5e-3086b0504845">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_35f3e15c-1f8b-46eb-82bd-a16649dbfd26"
      id="F_625e6860-948a-4173-8473-53f6bfa12c01">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_35f3e15c-1f8b-46eb-82bd-a16649dbfd26"
      id="F_999e9f89-100a-4cd4-b947-27cfc0216986">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_35f3e15c-1f8b-46eb-82bd-a16649dbfd26"
      id="F_d1848efa-6a53-4020-b905-1770cfff9e72">&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;600,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_35f3e15c-1f8b-46eb-82bd-a16649dbfd26"
      decimals="-3"
      id="F_3ba220f4-a81a-40db-ab3a-979c895efbd0"
      unitRef="U_USD">600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
