<?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_209e53a9-ec77-4084-af15-57dd94b0c734">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_209e53a9-ec77-4084-af15-57dd94b0c734"
      id="F_80f0f87d-52d9-4a19-aad8-734230fb671b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_209e53a9-ec77-4084-af15-57dd94b0c734"
      id="F_6b9ee986-8dd2-4066-be79-da2cb6290ab9">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_209e53a9-ec77-4084-af15-57dd94b0c734"
      id="F_c1cf52d2-b774-47f9-8947-bf162358128f">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_209e53a9-ec77-4084-af15-57dd94b0c734"
      id="F_c4f6f82c-bace-411d-b9af-42788a9898c3">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_209e53a9-ec77-4084-af15-57dd94b0c734"
      id="F_de3ca05a-6696-4c67-ab79-b515c08f65cc">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_209e53a9-ec77-4084-af15-57dd94b0c734"
      id="F_0fd2fb79-cd3c-4756-9ca7-c60a52149614">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_209e53a9-ec77-4084-af15-57dd94b0c734"
      id="F_b82936e3-6480-41c3-9a10-4495df57b0a4">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_209e53a9-ec77-4084-af15-57dd94b0c734"
      id="F_f930d824-b5f9-49b5-8746-f56e8361a5e4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_209e53a9-ec77-4084-af15-57dd94b0c734"
      id="F_69f47c6b-d8e6-4201-bb4f-2fc6cd68d6dc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_209e53a9-ec77-4084-af15-57dd94b0c734"
      id="F_30a0c9b5-8971-4e52-88ca-3139be501682">&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;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_209e53a9-ec77-4084-af15-57dd94b0c734"
      decimals="-6"
      id="F_3c404070-a2d8-40be-8b25-8295d7b1cf20"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
