<?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_7e31a79d-22db-4e43-bc57-006b99dd55db">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-23</startDate>
            <endDate>2026-09-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_7e31a79d-22db-4e43-bc57-006b99dd55db"
      id="F_fe19fe61-213f-4f7c-b50d-69bcfc65783a">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_7e31a79d-22db-4e43-bc57-006b99dd55db"
      id="F_0ec7942d-1ed7-4319-b9d0-cbc1155052b4">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7e31a79d-22db-4e43-bc57-006b99dd55db"
      id="F_a5cb7445-74b4-42d6-b13c-85ef059fde0f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_7e31a79d-22db-4e43-bc57-006b99dd55db"
      id="F_5d258c70-699a-429b-8544-9d6ae31df4c7">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_7e31a79d-22db-4e43-bc57-006b99dd55db"
      id="F_31c38e7f-f65f-42af-8001-38921a829354">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_7e31a79d-22db-4e43-bc57-006b99dd55db"
      id="F_45ab7420-bcae-4e0b-a836-2c62e656a18c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_7e31a79d-22db-4e43-bc57-006b99dd55db"
      id="F_4527d047-b596-42be-b7fe-1e18127708ba">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_7e31a79d-22db-4e43-bc57-006b99dd55db"
      id="F_0d7e1ad5-90b8-4813-b345-c82033ae42da">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_7e31a79d-22db-4e43-bc57-006b99dd55db"
      id="F_ecf84132-fbd9-4317-a743-91cb65b39a6b">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7e31a79d-22db-4e43-bc57-006b99dd55db"
      id="F_7cf8eedf-260e-4ead-af16-64a12712fa13">&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;795,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_7e31a79d-22db-4e43-bc57-006b99dd55db"
      decimals="-3"
      id="F_bcfc489b-c0ba-4505-bf76-e14d730a1d75"
      unitRef="U_USD">795000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
