<?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_f9fc004b-c1a6-438d-9d3b-eee8dff614e2">
        <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:OfferingTableNa
      contextRef="C_f9fc004b-c1a6-438d-9d3b-eee8dff614e2"
      id="F_f9263d01-a301-4d8a-bdd0-0d139253ea5f">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_f9fc004b-c1a6-438d-9d3b-eee8dff614e2"
      id="F_bd7cd8f3-2ffb-48fb-b524-aa2c1e908216">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_f9fc004b-c1a6-438d-9d3b-eee8dff614e2"
      id="F_e4e2ad91-e57c-40ec-8869-51d17f41dac8">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f9fc004b-c1a6-438d-9d3b-eee8dff614e2"
      id="F_79e59540-a3ac-4e45-8f92-27b0f53b49c2">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_f9fc004b-c1a6-438d-9d3b-eee8dff614e2"
      id="F_5fc4a8d0-e9d3-4b04-b983-8bdbef663680">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f9fc004b-c1a6-438d-9d3b-eee8dff614e2"
      id="F_6bffb0b2-f264-4312-82b9-3317f02d11e9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f9fc004b-c1a6-438d-9d3b-eee8dff614e2"
      id="F_b05d43d9-77c9-41a1-b556-fa997500a6c2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_f9fc004b-c1a6-438d-9d3b-eee8dff614e2"
      id="F_25d05e94-fd5d-434d-92ca-c8fd85fe93b1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_f9fc004b-c1a6-438d-9d3b-eee8dff614e2"
      id="F_1cd73626-a7f7-48cf-8828-8d86e34a022d">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_f9fc004b-c1a6-438d-9d3b-eee8dff614e2"
      id="F_b1d475c7-99f1-46ff-8150-63729da5731a">&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,403,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_f9fc004b-c1a6-438d-9d3b-eee8dff614e2"
      decimals="-3"
      id="F_fef4b6b0-4897-4690-b7ca-f0fbe91ee520"
      unitRef="U_USD">1403000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
