<?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_5c8932bd-4fbd-4bc3-88db-88d9889c242e">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_5c8932bd-4fbd-4bc3-88db-88d9889c242e"
      id="F_ce207711-65d0-4054-8bdd-a5670ff39fbd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_5c8932bd-4fbd-4bc3-88db-88d9889c242e"
      id="F_5b92db29-a4a0-406d-ba1e-e3bb11576fe1">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_5c8932bd-4fbd-4bc3-88db-88d9889c242e"
      id="F_eb1472ff-d8de-4562-9d2b-5fb0e40ccd82">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_5c8932bd-4fbd-4bc3-88db-88d9889c242e"
      id="F_24fa8bb0-0464-4d2c-88a3-6505844435fe">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_5c8932bd-4fbd-4bc3-88db-88d9889c242e"
      id="F_ac7ea983-d147-4900-95a6-49666bbc0762">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5c8932bd-4fbd-4bc3-88db-88d9889c242e"
      id="F_3d161432-751b-43fa-95c3-dd47cc0cd717">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_5c8932bd-4fbd-4bc3-88db-88d9889c242e"
      id="F_3ccc35f4-b266-4843-822d-8d9c76ecbc29">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5c8932bd-4fbd-4bc3-88db-88d9889c242e"
      id="F_3f903e48-bfe5-4ec2-b74a-b6fc2bbd2b52">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_5c8932bd-4fbd-4bc3-88db-88d9889c242e"
      id="F_5bd31832-63a3-4636-9dfd-562241f6ba6c">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_5c8932bd-4fbd-4bc3-88db-88d9889c242e"
      id="F_1311ee13-f7f8-4f74-b772-518878dc4515">&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;1,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_5c8932bd-4fbd-4bc3-88db-88d9889c242e"
      decimals="0"
      id="F_3d054524-392f-41f8-868c-b2a1767d05b8"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
