<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_1ae95a9b-e2ff-4a87-8158-eac8f0903366">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_1ae95a9b-e2ff-4a87-8158-eac8f0903366"
      id="F_237cf5ce-4e72-4846-9b9d-e9259c4373bb">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_1ae95a9b-e2ff-4a87-8158-eac8f0903366"
      id="F_d44bed08-a9cb-43f7-b1b9-79ba0b2173e2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_1ae95a9b-e2ff-4a87-8158-eac8f0903366"
      id="F_3cc577b1-ab00-49ae-aae1-8fcf7026ffed">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1ae95a9b-e2ff-4a87-8158-eac8f0903366"
      id="F_eacecbd6-ba6f-4a53-aca0-c7aad5614a9e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_1ae95a9b-e2ff-4a87-8158-eac8f0903366"
      id="F_9341ff49-f21a-4153-b2b7-3dbea014d4a4">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_1ae95a9b-e2ff-4a87-8158-eac8f0903366"
      id="F_a077f503-6759-406e-b0ef-d05d9d7d5500">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_1ae95a9b-e2ff-4a87-8158-eac8f0903366"
      id="F_ec77cbf2-3fba-4b38-91f7-fbd107e0e03f">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_1ae95a9b-e2ff-4a87-8158-eac8f0903366"
      id="F_385e9ae7-6ace-403a-bfe1-f20a7fce5ad5">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_1ae95a9b-e2ff-4a87-8158-eac8f0903366"
      id="F_212b108c-b20a-4f3c-ad63-bb3e6b2fbdc9">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1ae95a9b-e2ff-4a87-8158-eac8f0903366"
      id="F_3dd54a26-dfbf-44d2-b7fe-2ad2458683f3">&lt;p style="tab-size:26.66px;font-size:12pt;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;274,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_1ae95a9b-e2ff-4a87-8158-eac8f0903366"
      decimals="-3"
      id="F_925fa0fc-7c6d-4f8e-b3e8-cede0725e698"
      unitRef="U_USD">274000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
