<?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_ed79cb8d-6e65-49af-8057-3dc89706fe36">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_ed79cb8d-6e65-49af-8057-3dc89706fe36"
      id="F_19ecd743-3ff2-4bee-8ca7-eca019f6f606">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_ed79cb8d-6e65-49af-8057-3dc89706fe36"
      id="F_56b9965c-c01c-468e-9a20-5d219428e9e9">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ed79cb8d-6e65-49af-8057-3dc89706fe36"
      id="F_10d884a8-4329-4e87-8551-5ec43c5d6c4c">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_ed79cb8d-6e65-49af-8057-3dc89706fe36"
      id="F_46ae24c2-cd34-4c31-a497-0acc5f882add">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ed79cb8d-6e65-49af-8057-3dc89706fe36"
      id="F_88cbce1f-d45f-433d-9b29-ef3b8b7db928">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_ed79cb8d-6e65-49af-8057-3dc89706fe36"
      id="F_d3a106c0-8fd3-451c-905c-7367fa8b3fe5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_ed79cb8d-6e65-49af-8057-3dc89706fe36"
      id="F_2a9dac55-d5ce-4a7f-86ff-fe0b392a6379">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_ed79cb8d-6e65-49af-8057-3dc89706fe36"
      id="F_6a7503a5-34bf-4821-a754-61f6fb889562">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ed79cb8d-6e65-49af-8057-3dc89706fe36"
      id="F_1f6b08b6-f887-43da-a68e-de8a4b7a316c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ed79cb8d-6e65-49af-8057-3dc89706fe36"
      id="F_53a2e530-731a-4b82-a703-e2a8a62c7121">&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,952,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_ed79cb8d-6e65-49af-8057-3dc89706fe36"
      decimals="-3"
      id="F_cb935613-0ae2-4f15-9d6f-5df6121cf7cd"
      unitRef="U_USD">2952000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
