<?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_1f2925b0-f1d3-481a-981a-631c9c58ee3c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_1f2925b0-f1d3-481a-981a-631c9c58ee3c"
      id="F_135b003c-72f0-4cd6-8e5d-d4cee3f2ec2c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_1f2925b0-f1d3-481a-981a-631c9c58ee3c"
      id="F_f69fee79-c94c-47b7-bd31-6992c024590e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_1f2925b0-f1d3-481a-981a-631c9c58ee3c"
      id="F_f0678906-2afd-40a9-b309-f2ea1a35c95a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_1f2925b0-f1d3-481a-981a-631c9c58ee3c"
      id="F_f0251fa7-7d50-4b42-b801-c993dca42268">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1f2925b0-f1d3-481a-981a-631c9c58ee3c"
      id="F_e6aff0da-5004-4dac-aaac-f70d28b727cf">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1f2925b0-f1d3-481a-981a-631c9c58ee3c"
      id="F_f5756f6f-1239-4251-8795-9048063b4afa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_1f2925b0-f1d3-481a-981a-631c9c58ee3c"
      id="F_e27140cd-99db-40e7-ad6b-d1de52fb25b8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_1f2925b0-f1d3-481a-981a-631c9c58ee3c"
      id="F_e6efce00-d26b-46be-bb0a-cfe0263ec272">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1f2925b0-f1d3-481a-981a-631c9c58ee3c"
      id="F_36396faf-33bb-4f41-a470-9f645d95f207">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1f2925b0-f1d3-481a-981a-631c9c58ee3c"
      id="F_292c9338-145e-4b70-986f-9e8c10ec59ad">&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;2,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_1f2925b0-f1d3-481a-981a-631c9c58ee3c"
      decimals="0"
      id="F_de2dc02c-04de-40f1-aa8c-7ed29e3078e0"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
