<?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_c87b4df7-cd0c-4726-bbe9-cb4f2e9169ab">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_c87b4df7-cd0c-4726-bbe9-cb4f2e9169ab"
      id="F_1b974fb4-eac2-4b16-b3b9-0c20e0510f1e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c87b4df7-cd0c-4726-bbe9-cb4f2e9169ab"
      id="F_0db17ae7-171b-4cb6-806a-d4035330f1b6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c87b4df7-cd0c-4726-bbe9-cb4f2e9169ab"
      id="F_3f4ee151-a72c-4148-8fe1-581a4080e3c4">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_c87b4df7-cd0c-4726-bbe9-cb4f2e9169ab"
      id="F_6f02625d-b1a4-401f-b641-3e02aa068cfa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_c87b4df7-cd0c-4726-bbe9-cb4f2e9169ab"
      id="F_c4e974e3-15e1-46b5-a5a7-d513f332c8bf">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c87b4df7-cd0c-4726-bbe9-cb4f2e9169ab"
      id="F_13273c68-1ff6-483f-907f-f30804385461">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c87b4df7-cd0c-4726-bbe9-cb4f2e9169ab"
      id="F_0022fbbf-12c4-49d6-94f0-02235ef71430">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_c87b4df7-cd0c-4726-bbe9-cb4f2e9169ab"
      id="F_c3904683-0d09-461f-80e7-698448eac15e">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_c87b4df7-cd0c-4726-bbe9-cb4f2e9169ab"
      id="F_d174ade8-027c-45b8-acba-c7e25d7bfdfe">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c87b4df7-cd0c-4726-bbe9-cb4f2e9169ab"
      id="F_1cc973bb-e8c1-436f-a8a5-ce638cd858c7">&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,661,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_c87b4df7-cd0c-4726-bbe9-cb4f2e9169ab"
      decimals="-3"
      id="F_6537c2fc-6901-4534-891b-b6c28393ed08"
      unitRef="U_USD">5661000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
