<?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_eea24aed-d2fb-4474-b3d5-2f39911869ec">
        <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>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eea24aed-d2fb-4474-b3d5-2f39911869ec"
      id="F_0dd16129-3309-44ae-99fc-2baca412a0d1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_eea24aed-d2fb-4474-b3d5-2f39911869ec"
      id="F_1c071472-aa5d-4de6-917d-f8415b352128">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_eea24aed-d2fb-4474-b3d5-2f39911869ec"
      id="F_23892116-9014-4663-9e10-ce05d44dde1e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_eea24aed-d2fb-4474-b3d5-2f39911869ec"
      id="F_4b5edfac-a1da-4d4b-ba15-083a4c919fad">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_eea24aed-d2fb-4474-b3d5-2f39911869ec"
      id="F_ec7ec397-6552-4470-828c-e11e36aa0cab">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_eea24aed-d2fb-4474-b3d5-2f39911869ec"
      id="F_14566601-d12c-4e9b-9224-6a40bec08dba">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_eea24aed-d2fb-4474-b3d5-2f39911869ec"
      id="F_ad5fcaef-fd05-4159-829e-f0064fa5a221">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_eea24aed-d2fb-4474-b3d5-2f39911869ec"
      id="F_5fa2e104-e47c-464d-97fe-336991fefb07">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_eea24aed-d2fb-4474-b3d5-2f39911869ec"
      id="F_56d78aa5-0925-48aa-af47-42069da6b79e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_eea24aed-d2fb-4474-b3d5-2f39911869ec"
      id="F_4c4e892f-44ec-4489-be32-f1ec7566dd00">&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,669,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_eea24aed-d2fb-4474-b3d5-2f39911869ec"
      decimals="-3"
      id="F_50c62154-a943-4e61-a697-f33e22430d3f"
      unitRef="U_USD">4669000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
