<?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_003019bd-3731-4ff0-98a4-b0a1dd880ccf">
        <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:OffsetTableNa
      contextRef="C_003019bd-3731-4ff0-98a4-b0a1dd880ccf"
      id="F_7dda501a-d2d0-49ac-954d-ac57460ba04c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_003019bd-3731-4ff0-98a4-b0a1dd880ccf"
      id="F_b3bc6f80-1c1f-4868-b735-230c19a26992">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_003019bd-3731-4ff0-98a4-b0a1dd880ccf"
      id="F_3ad0b135-80d9-4931-8429-5e7818d0fa3e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_003019bd-3731-4ff0-98a4-b0a1dd880ccf"
      id="F_0772a610-fd05-4c56-a950-e05d4c6e78c9">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_003019bd-3731-4ff0-98a4-b0a1dd880ccf"
      id="F_83169ccd-8419-46c4-9948-a8fb5e19ab3f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_003019bd-3731-4ff0-98a4-b0a1dd880ccf"
      id="F_77f910af-3aad-4a94-b5d0-73dd880dc485">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_003019bd-3731-4ff0-98a4-b0a1dd880ccf"
      id="F_e344e770-282c-4a67-88d2-02adfdeefbdf">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_003019bd-3731-4ff0-98a4-b0a1dd880ccf"
      id="F_1845747b-812a-4d09-a56b-7c99f82e2ee8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_003019bd-3731-4ff0-98a4-b0a1dd880ccf"
      id="F_d1a52448-ee69-4242-a74e-72d2fbab14ec">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_003019bd-3731-4ff0-98a4-b0a1dd880ccf"
      id="F_fe915ee9-942f-443f-b8c0-333a31d977cb">&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;8,549,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_003019bd-3731-4ff0-98a4-b0a1dd880ccf"
      decimals="-3"
      id="F_850e1e7e-74d3-4e90-8b4f-660f9bedef6f"
      unitRef="U_USD">8549000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
