<?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_5ed3a445-4e66-4f50-9d2d-f15147320d75">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_5ed3a445-4e66-4f50-9d2d-f15147320d75"
      id="F_4458c838-ad2a-449c-b4cc-c8b1e86a1bb3">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_5ed3a445-4e66-4f50-9d2d-f15147320d75"
      id="F_f169fd7b-ec46-4af4-bfa1-a9edfc31130c">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5ed3a445-4e66-4f50-9d2d-f15147320d75"
      id="F_f690f50c-3062-487f-a2a2-c71401a8cd2d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5ed3a445-4e66-4f50-9d2d-f15147320d75"
      id="F_874a4556-31ce-42b2-b5b2-654b6304b0db">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_5ed3a445-4e66-4f50-9d2d-f15147320d75"
      id="F_284637b7-b4e5-45eb-bd04-927db396c39e">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5ed3a445-4e66-4f50-9d2d-f15147320d75"
      id="F_a9013f03-fcdd-4300-bb98-02512f002fa2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5ed3a445-4e66-4f50-9d2d-f15147320d75"
      id="F_426a0ba3-ac48-42a3-b6af-a5539078d0d8">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5ed3a445-4e66-4f50-9d2d-f15147320d75"
      id="F_3f35613e-834c-485e-9da7-473ee6b56603">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_5ed3a445-4e66-4f50-9d2d-f15147320d75"
      id="F_806aeb13-a476-468e-af5a-0a288d6a8aba">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_5ed3a445-4e66-4f50-9d2d-f15147320d75"
      id="F_12b2a461-35e3-48e1-889a-e258d74a99a5">&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;925,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_5ed3a445-4e66-4f50-9d2d-f15147320d75"
      decimals="-3"
      id="F_98cc344d-97a8-4c4b-85e1-e30d48cff92f"
      unitRef="U_USD">925000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
