<?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_a59982b0-b278-4366-95b7-994026f6f991">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a59982b0-b278-4366-95b7-994026f6f991"
      id="F_7511933a-a8ab-48ea-8593-0594a6c2b3c5">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_a59982b0-b278-4366-95b7-994026f6f991"
      id="F_d8f55c96-4618-43c9-a391-9c5eec86b340">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a59982b0-b278-4366-95b7-994026f6f991"
      id="F_30613b93-79a3-4688-b207-2616e9545d6c">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a59982b0-b278-4366-95b7-994026f6f991"
      id="F_6e0ac4b3-92c1-469c-83e1-d44826229892">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_a59982b0-b278-4366-95b7-994026f6f991"
      id="F_58388086-6447-447b-b5cb-f2c0c4e07754">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a59982b0-b278-4366-95b7-994026f6f991"
      id="F_7a4ecdc6-f3a4-4f3f-9a44-fdb88a735f42">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a59982b0-b278-4366-95b7-994026f6f991"
      id="F_838759da-246d-4081-b7b5-cf699f681288">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_a59982b0-b278-4366-95b7-994026f6f991"
      id="F_84ef1c67-5310-4598-9268-6f3010edd012">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a59982b0-b278-4366-95b7-994026f6f991"
      id="F_61133be5-fd06-4a17-a662-afd8f166fe90">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a59982b0-b278-4366-95b7-994026f6f991"
      id="F_97c35e07-3b9f-4d64-abec-dc503a39331f">&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;2,870,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_a59982b0-b278-4366-95b7-994026f6f991"
      decimals="-3"
      id="F_b513b052-72c8-4ac3-a48d-d26f33f2d8de"
      unitRef="U_USD">2870000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
