<?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_8f488ca9-c139-4015-a25a-7ccd9200aa5d">
        <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:EntityCentralIndexKey
      contextRef="C_8f488ca9-c139-4015-a25a-7ccd9200aa5d"
      id="F_a5f55b8b-3e49-49f7-b068-892e9bf99b7a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_8f488ca9-c139-4015-a25a-7ccd9200aa5d"
      id="F_fd6ae1a9-87bc-474f-ace4-0f853a5604bb">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_8f488ca9-c139-4015-a25a-7ccd9200aa5d"
      id="F_7c9599c6-465b-4228-a0db-5eb113e3163e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_8f488ca9-c139-4015-a25a-7ccd9200aa5d"
      id="F_7f895b5f-45bf-47f7-a3d4-9f92a087c152">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_8f488ca9-c139-4015-a25a-7ccd9200aa5d"
      id="F_97922c3f-54b6-4cd8-af83-270d56db78fc">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8f488ca9-c139-4015-a25a-7ccd9200aa5d"
      id="F_7289e0aa-e4d0-4eed-a77f-adddd8e24a3b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_8f488ca9-c139-4015-a25a-7ccd9200aa5d"
      id="F_f8c8a526-be8c-4f4d-8d08-54f5ff92fb98">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_8f488ca9-c139-4015-a25a-7ccd9200aa5d"
      id="F_9ccf6cc8-558d-4b2d-8dc1-f04e9bf224cf">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8f488ca9-c139-4015-a25a-7ccd9200aa5d"
      id="F_e66f3986-6c71-49f9-b17e-ae7e684d7aa3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8f488ca9-c139-4015-a25a-7ccd9200aa5d"
      id="F_77071352-0c76-4fed-a2b4-7d8172b15765">&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;2,000,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_8f488ca9-c139-4015-a25a-7ccd9200aa5d"
      decimals="-6"
      id="F_723f7939-88fb-43e1-a067-154e3932cbe7"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
