<?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_e5a710a7-f565-4792-9387-78764514e524">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e5a710a7-f565-4792-9387-78764514e524"
      id="F_73dae5e6-9f65-4be3-b173-37c98499e1c8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_e5a710a7-f565-4792-9387-78764514e524"
      id="F_fdee6d18-c5be-414b-ba9c-98b5f2ae5d08">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_e5a710a7-f565-4792-9387-78764514e524"
      id="F_dd66d890-d066-40ec-9165-09b814463afd">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e5a710a7-f565-4792-9387-78764514e524"
      id="F_93915689-311a-433f-96aa-6ba06c79124d">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e5a710a7-f565-4792-9387-78764514e524"
      id="F_20a3a570-8ca5-4d6a-9a1d-ae125d7440c0">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_e5a710a7-f565-4792-9387-78764514e524"
      id="F_07d55612-168e-4a56-bea1-125511708767">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_e5a710a7-f565-4792-9387-78764514e524"
      id="F_36eaa17b-200d-4f96-9a60-854ac4b4a141">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e5a710a7-f565-4792-9387-78764514e524"
      id="F_712034e3-be5a-468c-b4fd-40e8f09cede4">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e5a710a7-f565-4792-9387-78764514e524"
      id="F_2b53e9e9-9ff6-49e9-a02a-2f79f8525fbe">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e5a710a7-f565-4792-9387-78764514e524"
      id="F_2c9ec33e-997b-4218-9ac3-68d984c4c216">&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;800,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_e5a710a7-f565-4792-9387-78764514e524"
      decimals="-3"
      id="F_ec6347b2-a62e-490a-830f-5c2ace387705"
      unitRef="U_USD">800000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
