<?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_c4aba098-8ec6-41b9-aaa1-a3eaa74a99c4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_c4aba098-8ec6-41b9-aaa1-a3eaa74a99c4"
      id="F_9683414b-1e3d-4b4f-84fe-ae6d3e80356b">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_c4aba098-8ec6-41b9-aaa1-a3eaa74a99c4"
      id="F_8f1e5afc-a950-4ca3-9ee8-ca67df8ffd74">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c4aba098-8ec6-41b9-aaa1-a3eaa74a99c4"
      id="F_16cf07a6-170d-4f97-9785-40477b897d3a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_c4aba098-8ec6-41b9-aaa1-a3eaa74a99c4"
      id="F_91c76511-aedb-4abb-b68b-92cd6e9d53a8">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c4aba098-8ec6-41b9-aaa1-a3eaa74a99c4"
      id="F_da6b6181-eebe-4bc7-84d9-5d0b8c285933">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c4aba098-8ec6-41b9-aaa1-a3eaa74a99c4"
      id="F_233c6131-8571-4e0b-a2c3-b1cf430563e5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_c4aba098-8ec6-41b9-aaa1-a3eaa74a99c4"
      id="F_ac8637d4-d4d1-4628-89de-e1aec585f8f1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_c4aba098-8ec6-41b9-aaa1-a3eaa74a99c4"
      id="F_157cde34-b9f4-447e-893f-a7f3378b33c8">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_c4aba098-8ec6-41b9-aaa1-a3eaa74a99c4"
      id="F_73ab51fa-a83a-4c1b-bf07-82b9712d7ffd">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c4aba098-8ec6-41b9-aaa1-a3eaa74a99c4"
      id="F_946612bf-64d3-4600-b7d6-2c840fde772a">&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;9,939,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_c4aba098-8ec6-41b9-aaa1-a3eaa74a99c4"
      decimals="0"
      id="F_181de241-4faf-4160-b3e2-0700337acfdf"
      unitRef="U_USD">9939000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
