<?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_d40a7a49-23b3-45f8-852b-ac5c3a4cfbd2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_d40a7a49-23b3-45f8-852b-ac5c3a4cfbd2"
      id="F_e6664f33-8af7-40b7-a865-c1cfc262d408">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_d40a7a49-23b3-45f8-852b-ac5c3a4cfbd2"
      id="F_9190e8de-2a85-42b8-b25e-ecef0309f424">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d40a7a49-23b3-45f8-852b-ac5c3a4cfbd2"
      id="F_16a5637a-4eee-40a9-8aa4-f530037c6836">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d40a7a49-23b3-45f8-852b-ac5c3a4cfbd2"
      id="F_2ad9206c-643d-4cda-928a-4bce6e7fad8c">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_d40a7a49-23b3-45f8-852b-ac5c3a4cfbd2"
      id="F_75af77ac-9fcb-451e-be78-9b795dbaa99f">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_d40a7a49-23b3-45f8-852b-ac5c3a4cfbd2"
      id="F_a46a2787-0b69-46d7-980d-9620c1d3415a">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d40a7a49-23b3-45f8-852b-ac5c3a4cfbd2"
      id="F_20b43db6-30fa-4d7a-9cea-1f0be6b199a4">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_d40a7a49-23b3-45f8-852b-ac5c3a4cfbd2"
      id="F_791ed5cd-c9cb-4aae-94d6-d6dd2ca199ca">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_d40a7a49-23b3-45f8-852b-ac5c3a4cfbd2"
      id="F_951038b8-e947-4312-970d-4d100db65c18">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_d40a7a49-23b3-45f8-852b-ac5c3a4cfbd2"
      id="F_6cc7a863-7304-4af1-ba71-285e495869ed">&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;619,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_d40a7a49-23b3-45f8-852b-ac5c3a4cfbd2"
      decimals="-3"
      id="F_e8ba72b9-af27-4f7c-9555-6be7d44a4b3e"
      unitRef="U_USD">619000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
