<?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_4d11f4a8-4269-4bb2-a217-2f9dac1508b0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-08</startDate>
            <endDate>2026-06-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_4d11f4a8-4269-4bb2-a217-2f9dac1508b0"
      id="F_26ac882f-1b11-431e-bd44-499f09a59c7f">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_4d11f4a8-4269-4bb2-a217-2f9dac1508b0"
      id="F_cc6e02c4-b275-4044-ac73-386a3eb8029d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4d11f4a8-4269-4bb2-a217-2f9dac1508b0"
      id="F_f1a4bb80-a01c-406a-a9bc-03250b4bea77">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4d11f4a8-4269-4bb2-a217-2f9dac1508b0"
      id="F_9d8d0b07-bbc2-4e1e-b0fb-ab42cb02775e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4d11f4a8-4269-4bb2-a217-2f9dac1508b0"
      id="F_1463a9f8-a25e-4c6c-a05e-e1dcb1cc2a0c">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_4d11f4a8-4269-4bb2-a217-2f9dac1508b0"
      id="F_e20ea5f1-18dc-4b01-b40b-82e74ad38a8f">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4d11f4a8-4269-4bb2-a217-2f9dac1508b0"
      id="F_4d9b369d-79fa-4b9d-8f42-17a581124612">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_4d11f4a8-4269-4bb2-a217-2f9dac1508b0"
      id="F_3a23f2f2-c6e7-471b-9c8e-498ff2e9b3ae">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_4d11f4a8-4269-4bb2-a217-2f9dac1508b0"
      id="F_01a828c0-d45f-4f13-a861-6de93a2d0200">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_4d11f4a8-4269-4bb2-a217-2f9dac1508b0"
      id="F_3b3019af-e228-4fdc-91a4-7b5fbbd17130">&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;1,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_4d11f4a8-4269-4bb2-a217-2f9dac1508b0"
      decimals="-6"
      id="F_bb767b78-891f-40ca-a0fa-e58a58df2fa4"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
