<?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_00cc04e4-c057-46af-b111-9b0a16d1385a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-11</startDate>
            <endDate>2026-05-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_00cc04e4-c057-46af-b111-9b0a16d1385a"
      id="F_7392800b-f126-45c8-bfe6-abf3f34e66ea">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_00cc04e4-c057-46af-b111-9b0a16d1385a"
      id="F_3b6a57e3-abe3-4a59-ae23-644a319f7d2b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_00cc04e4-c057-46af-b111-9b0a16d1385a"
      id="F_6580aa33-66e3-42fb-9d2c-8de37c70373e">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_00cc04e4-c057-46af-b111-9b0a16d1385a"
      id="F_407ab4bf-ba8a-40a9-b15c-171ef237fa52">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_00cc04e4-c057-46af-b111-9b0a16d1385a"
      id="F_08f89f6f-962e-455c-bc70-43ea51e5a1f0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_00cc04e4-c057-46af-b111-9b0a16d1385a"
      id="F_b822468f-12bf-4967-99e0-e095aa83a87e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_00cc04e4-c057-46af-b111-9b0a16d1385a"
      id="F_c226edaa-f647-47ce-903a-4ecdd0e47fd0">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_00cc04e4-c057-46af-b111-9b0a16d1385a"
      id="F_d6fd0f72-22d0-4330-a4f6-675903fd4dcb">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_00cc04e4-c057-46af-b111-9b0a16d1385a"
      id="F_fd85a87e-1c6f-42b6-abf2-5a7e853be69e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_00cc04e4-c057-46af-b111-9b0a16d1385a"
      id="F_275cb036-0925-4197-a0ff-a4f1ac75acd8">&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;300,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_00cc04e4-c057-46af-b111-9b0a16d1385a"
      decimals="0"
      id="F_2ef6db2c-ce12-4273-9595-0dff14b1d320"
      unitRef="U_USD">300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
