<?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_db168ba3-9967-47b1-a3d4-6b4c89efa2a1">
        <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>
    <ffd:FormTp
      contextRef="C_db168ba3-9967-47b1-a3d4-6b4c89efa2a1"
      id="F_0653d164-7578-4c62-a6af-221d6ad1abca">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_db168ba3-9967-47b1-a3d4-6b4c89efa2a1"
      id="F_de8d1ef5-3b7f-4de1-bd71-6e208397d167">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_db168ba3-9967-47b1-a3d4-6b4c89efa2a1"
      id="F_094eae67-8a5f-45ce-8568-60c4c32883ef">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_db168ba3-9967-47b1-a3d4-6b4c89efa2a1"
      id="F_5db1b999-e83e-471b-8ff3-ab0c023dbe27">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_db168ba3-9967-47b1-a3d4-6b4c89efa2a1"
      id="F_c2612157-3858-4fee-b8ef-997010e301a8">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_db168ba3-9967-47b1-a3d4-6b4c89efa2a1"
      id="F_e18e5045-5a88-40a5-8910-5755065292bd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_db168ba3-9967-47b1-a3d4-6b4c89efa2a1"
      id="F_ab3c8a4e-0677-49c4-a040-0e7603d0f6c8">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_db168ba3-9967-47b1-a3d4-6b4c89efa2a1"
      id="F_74083a83-c9db-414c-8e73-7e0e9c198ee1">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_db168ba3-9967-47b1-a3d4-6b4c89efa2a1"
      id="F_4fa92b87-d8ee-43f4-b945-5ef5f17eb667">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_db168ba3-9967-47b1-a3d4-6b4c89efa2a1"
      id="F_b0fceae4-39d1-484f-816f-80636b2eec71">&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;35,301,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_db168ba3-9967-47b1-a3d4-6b4c89efa2a1"
      decimals="-3"
      id="F_ec710f25-3e44-466c-aa43-cd7251fa48b8"
      unitRef="U_USD">35301000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
