<?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_ccae6a3b-04cf-4250-a599-a96c1456d4f6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_ccae6a3b-04cf-4250-a599-a96c1456d4f6"
      id="F_a41cff1c-e1fc-4ff4-afdb-6bfbd64eb506">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_ccae6a3b-04cf-4250-a599-a96c1456d4f6"
      id="F_d8c9d27c-e008-4577-a324-1a123932e43b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_ccae6a3b-04cf-4250-a599-a96c1456d4f6"
      id="F_9d7030b9-1bae-406e-8392-d66aa0506563">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ccae6a3b-04cf-4250-a599-a96c1456d4f6"
      id="F_a43c324b-43c7-4d30-be7d-97abb5730b0e">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_ccae6a3b-04cf-4250-a599-a96c1456d4f6"
      id="F_bd45a87b-35e8-43e8-856f-300b533db5ec">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_ccae6a3b-04cf-4250-a599-a96c1456d4f6"
      id="F_a869117b-3567-4851-a61b-766246396e81">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ccae6a3b-04cf-4250-a599-a96c1456d4f6"
      id="F_bc2f702f-4353-4471-89f5-f690bd9752c6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ccae6a3b-04cf-4250-a599-a96c1456d4f6"
      id="F_8c7db7b1-c381-45e3-af92-4aee9abcff28">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_ccae6a3b-04cf-4250-a599-a96c1456d4f6"
      id="F_ea6b6f7c-f267-4435-8982-5cff5c42348a">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ccae6a3b-04cf-4250-a599-a96c1456d4f6"
      id="F_574fce86-5b69-4904-9100-92d6c4a0c2c7">&lt;p style="font-size:10pt;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,275,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_ccae6a3b-04cf-4250-a599-a96c1456d4f6"
      decimals="-3"
      id="F_333e4104-c378-4997-aaac-3881b8d94803"
      unitRef="U_USD">1275000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
