<?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_f2a8d797-a000-475f-9806-a83cd3ee016c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_f2a8d797-a000-475f-9806-a83cd3ee016c"
      id="F_ace620e9-2cd1-4ad1-9a9e-54be3f556a92">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_f2a8d797-a000-475f-9806-a83cd3ee016c"
      id="F_a1dd4118-963e-452c-8340-8dd9efaba2ea">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_f2a8d797-a000-475f-9806-a83cd3ee016c"
      id="F_a1044024-d648-402f-a4ac-cd70807174a4">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_f2a8d797-a000-475f-9806-a83cd3ee016c"
      id="F_97f06bc0-c2c5-4dfc-90c9-9a06b981c2e7">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f2a8d797-a000-475f-9806-a83cd3ee016c"
      id="F_ac7903b4-439c-4d4f-bf62-d584c31c46be">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_f2a8d797-a000-475f-9806-a83cd3ee016c"
      id="F_3fb883da-bd7b-40fa-88f2-61985bcc4def">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f2a8d797-a000-475f-9806-a83cd3ee016c"
      id="F_4e0bb63a-790f-4b06-9714-e8b1ecc07052">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f2a8d797-a000-475f-9806-a83cd3ee016c"
      id="F_f43eedb8-cd4e-4fe6-82e0-4a377ac9c647">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_f2a8d797-a000-475f-9806-a83cd3ee016c"
      id="F_ba02a3fb-bc1d-4467-a315-85ba22b33d5d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f2a8d797-a000-475f-9806-a83cd3ee016c"
      id="F_47824cd3-b7f9-4caa-aa96-d6c94c0675d6">&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;4,530,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_f2a8d797-a000-475f-9806-a83cd3ee016c"
      decimals="-3"
      id="F_f325c0f7-c531-4313-954f-991dcb4b0c85"
      unitRef="U_USD">4530000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
