<?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_43aaf9b7-79f5-4093-8606-f47886680a8e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_43aaf9b7-79f5-4093-8606-f47886680a8e"
      id="F_d0037aeb-7e8e-480f-8682-f032bc9f3471">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_43aaf9b7-79f5-4093-8606-f47886680a8e"
      id="F_5f456e47-dc1a-44d9-8d62-8190bbfdc5ec">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_43aaf9b7-79f5-4093-8606-f47886680a8e"
      id="F_fb90bf28-2234-4066-9a01-a0eab2da64f0">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_43aaf9b7-79f5-4093-8606-f47886680a8e"
      id="F_e6957956-f689-49c1-9f92-38aa40d01a85">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_43aaf9b7-79f5-4093-8606-f47886680a8e"
      id="F_4a9854b3-e546-4808-afe5-48cbcebe62a3">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_43aaf9b7-79f5-4093-8606-f47886680a8e"
      id="F_dc81b0d7-bf95-4913-a601-3090f284e675">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_43aaf9b7-79f5-4093-8606-f47886680a8e"
      id="F_77fe78d6-7411-4ce3-a4f6-2ee033915405">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_43aaf9b7-79f5-4093-8606-f47886680a8e"
      id="F_227e0427-5cfd-471b-b79a-a974a81f4454">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_43aaf9b7-79f5-4093-8606-f47886680a8e"
      id="F_774207f9-b1b0-42da-81a5-fcfe1f5dfe78">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_43aaf9b7-79f5-4093-8606-f47886680a8e"
      id="F_f40e3eec-578e-4e8d-86ce-c3ddfc3795ff">&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_43aaf9b7-79f5-4093-8606-f47886680a8e"
      decimals="0"
      id="F_7f692f51-43b3-4f84-991d-ca5369b8605b"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
