<?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_415e039f-2f97-4704-8267-45f63a21b68e">
        <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>
    <ffd:FormTp
      contextRef="C_415e039f-2f97-4704-8267-45f63a21b68e"
      id="F_f40d611f-1e70-48e4-8566-f75685f95936">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_415e039f-2f97-4704-8267-45f63a21b68e"
      id="F_e0c91d49-d08c-4b10-a4f0-d6a0ee7a89d5">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_415e039f-2f97-4704-8267-45f63a21b68e"
      id="F_4e1fbe53-f275-436f-97fc-02039507eaab">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_415e039f-2f97-4704-8267-45f63a21b68e"
      id="F_d118f343-0726-4e2f-b047-edec0b3f622b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_415e039f-2f97-4704-8267-45f63a21b68e"
      id="F_76fc24b5-a11d-4ea6-b84b-5ae5c60c0bea">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_415e039f-2f97-4704-8267-45f63a21b68e"
      id="F_cee489b5-d553-4908-8c00-e2d236ac4c21">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_415e039f-2f97-4704-8267-45f63a21b68e"
      id="F_b610b1fb-bd60-4b75-a5a0-840255cb1703">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_415e039f-2f97-4704-8267-45f63a21b68e"
      id="F_8d1ccc48-68d0-45fc-ac6c-6937b544c2fe">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_415e039f-2f97-4704-8267-45f63a21b68e"
      id="F_286ec394-0614-4fbd-8076-b80240c36c66">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_415e039f-2f97-4704-8267-45f63a21b68e"
      id="F_452f2a68-0995-4bdc-88a0-1c620a71c68f">&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;137,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_415e039f-2f97-4704-8267-45f63a21b68e"
      decimals="-3"
      id="F_8864a912-c3e8-4684-99aa-5757a37f0c43"
      unitRef="U_USD">137000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
