<?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_6fd72bce-afd1-421a-bf36-16066d012351">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6fd72bce-afd1-421a-bf36-16066d012351"
      id="F_192fa781-8a33-4208-962e-6f7718140b60">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6fd72bce-afd1-421a-bf36-16066d012351"
      id="F_6b5a3061-fcec-414a-adff-b5fbd9a355be">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6fd72bce-afd1-421a-bf36-16066d012351"
      id="F_7ab4d4c1-fdf7-4b8c-b213-544327d85765">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_6fd72bce-afd1-421a-bf36-16066d012351"
      id="F_ccc34831-9ddd-4358-9bbd-057c0eb1ed98">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6fd72bce-afd1-421a-bf36-16066d012351"
      id="F_f802b8e7-71ab-4b90-9119-c1abba197129">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_6fd72bce-afd1-421a-bf36-16066d012351"
      id="F_18289286-f661-4991-bfa1-a973334d4d6f">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_6fd72bce-afd1-421a-bf36-16066d012351"
      id="F_9b09793e-c90f-45bb-b437-c324959247ef">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_6fd72bce-afd1-421a-bf36-16066d012351"
      id="F_2c6c2a80-29e1-47eb-8a09-42c74135ea9c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_6fd72bce-afd1-421a-bf36-16066d012351"
      id="F_e6ad8e23-0ecb-47ae-a130-a20223be3292">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_6fd72bce-afd1-421a-bf36-16066d012351"
      id="F_3c88c3a5-6f55-4095-8894-e0bde7de9482">&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;500,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_6fd72bce-afd1-421a-bf36-16066d012351"
      decimals="-3"
      id="F_5ddd8a1b-e168-4f98-917d-6543143c2139"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
