<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_89c97984-78e9-4fe7-8749-2ec4cc01cec1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_89c97984-78e9-4fe7-8749-2ec4cc01cec1"
      id="F_b1b74b54-ffde-4045-9128-d5806118e2bc">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_89c97984-78e9-4fe7-8749-2ec4cc01cec1"
      id="F_5632b6cd-21c4-4c52-8e95-eaece974fe5e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_89c97984-78e9-4fe7-8749-2ec4cc01cec1"
      id="F_ddf1f9e5-fe18-4fe1-9849-4352bdf6f390">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_89c97984-78e9-4fe7-8749-2ec4cc01cec1"
      id="F_643f1a1c-2512-4a92-a7b9-5e169cbcd81d">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_89c97984-78e9-4fe7-8749-2ec4cc01cec1"
      id="F_164f21eb-d3d4-48ac-ba14-5cddaffb92f1">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_89c97984-78e9-4fe7-8749-2ec4cc01cec1"
      id="F_c6ced80d-0293-4f6b-a484-808948f4fe79">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_89c97984-78e9-4fe7-8749-2ec4cc01cec1"
      id="F_35d00c81-7aa0-45dc-bc66-ae6f9c9b99b7">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_89c97984-78e9-4fe7-8749-2ec4cc01cec1"
      id="F_f1aaf33d-9058-4d37-b140-719f5e614f2d">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_89c97984-78e9-4fe7-8749-2ec4cc01cec1"
      id="F_3a53211d-eea2-456e-af82-3b8337beb085">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_89c97984-78e9-4fe7-8749-2ec4cc01cec1"
      id="F_d82e5ce5-a6c5-4170-af16-063eb5dbc8dc">&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;600,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_89c97984-78e9-4fe7-8749-2ec4cc01cec1"
      decimals="0"
      id="F_582bff7a-6ace-4220-a3a2-5819a25f814c"
      unitRef="U_USD">600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
