<?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_55170f6c-1f25-479d-923d-3c94e411e1f7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-24</startDate>
            <endDate>2026-07-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_55170f6c-1f25-479d-923d-3c94e411e1f7"
      id="F_bafacc07-3fd0-4065-bc49-8bd5a836322b">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_55170f6c-1f25-479d-923d-3c94e411e1f7"
      id="F_0df9877e-cb6c-4fe6-a368-f63c4b4474a9">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_55170f6c-1f25-479d-923d-3c94e411e1f7"
      id="F_a0762a48-4255-490b-aedc-a94805d684ff">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_55170f6c-1f25-479d-923d-3c94e411e1f7"
      id="F_35a7f3f9-c0b9-4d0b-882f-1f89977fb0ba">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_55170f6c-1f25-479d-923d-3c94e411e1f7"
      id="F_e40bdcc1-5258-425a-8931-6711c4d683d8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_55170f6c-1f25-479d-923d-3c94e411e1f7"
      id="F_c360d5eb-b6e6-4a2f-9c8e-3df12509b4d1">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_55170f6c-1f25-479d-923d-3c94e411e1f7"
      id="F_dd666518-536a-4b9e-a4b0-1ecbdb3f41b1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_55170f6c-1f25-479d-923d-3c94e411e1f7"
      id="F_898dde62-0629-4348-992a-baf0678cf586">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_55170f6c-1f25-479d-923d-3c94e411e1f7"
      id="F_2a683eb1-c39c-44e4-98a8-d7f19ef182f1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_55170f6c-1f25-479d-923d-3c94e411e1f7"
      id="F_890c7d25-1021-460a-b157-6dda89f05b15">&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;2,000,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_55170f6c-1f25-479d-923d-3c94e411e1f7"
      decimals="-6"
      id="F_a097ba91-615b-4fa6-9493-06d537b0371f"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
