<?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_e18e8fc7-39a9-4bbe-af68-4d33f7db543c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-08</startDate>
            <endDate>2026-09-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_e18e8fc7-39a9-4bbe-af68-4d33f7db543c"
      id="F_d9e997ff-6071-42ef-b996-323783ef33f8">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_e18e8fc7-39a9-4bbe-af68-4d33f7db543c"
      id="F_5cc359e7-dda1-439c-a093-0a58e554fb59">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e18e8fc7-39a9-4bbe-af68-4d33f7db543c"
      id="F_97652322-b1d1-47ef-88ae-8533d50dd3a6">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_e18e8fc7-39a9-4bbe-af68-4d33f7db543c"
      id="F_143e6d8f-9354-4c64-a4f4-0124739418fc">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_e18e8fc7-39a9-4bbe-af68-4d33f7db543c"
      id="F_6cc7bc69-4785-45bf-a87b-26ce41154507">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_e18e8fc7-39a9-4bbe-af68-4d33f7db543c"
      id="F_b7e206fd-b01a-43a4-8e4e-2d3c2b30eb93">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_e18e8fc7-39a9-4bbe-af68-4d33f7db543c"
      id="F_302ba3c9-3e8b-47f8-8937-46ceceed573d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e18e8fc7-39a9-4bbe-af68-4d33f7db543c"
      id="F_b592a4a8-5193-4889-acdc-12f4e4595bf7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e18e8fc7-39a9-4bbe-af68-4d33f7db543c"
      id="F_12571ec4-97af-437f-b64a-af01208e16b4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e18e8fc7-39a9-4bbe-af68-4d33f7db543c"
      id="F_640a1b76-093c-46f8-8f39-1eab8047359b">&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;34,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_e18e8fc7-39a9-4bbe-af68-4d33f7db543c"
      decimals="-6"
      id="F_d5d0b93c-f39a-46a7-ae86-5f63bf5450bc"
      unitRef="U_USD">34000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
