<?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_6f372b28-04cd-4d65-bc6a-9d7678359979">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_6f372b28-04cd-4d65-bc6a-9d7678359979"
      id="F_47158147-19bb-4756-8ce1-422abf44cd36">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_6f372b28-04cd-4d65-bc6a-9d7678359979"
      id="F_9fba706e-5918-48f8-988c-1a80d75e287a">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_6f372b28-04cd-4d65-bc6a-9d7678359979"
      id="F_a1294ec4-49bf-4670-aac9-9c70c8e5e29b">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6f372b28-04cd-4d65-bc6a-9d7678359979"
      id="F_55097e18-6b47-4193-9230-4b7ab53cd8d9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6f372b28-04cd-4d65-bc6a-9d7678359979"
      id="F_a7752450-ccf3-4f13-b31c-fdc50531fbea">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_6f372b28-04cd-4d65-bc6a-9d7678359979"
      id="F_c9069b48-dbba-45b3-9ece-b4612358917f">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_6f372b28-04cd-4d65-bc6a-9d7678359979"
      id="F_d0870b92-d78e-4b50-ba9b-d8acc3d01af7">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6f372b28-04cd-4d65-bc6a-9d7678359979"
      id="F_9f782045-e2e9-43b1-8319-c989a17c0e14">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_6f372b28-04cd-4d65-bc6a-9d7678359979"
      id="F_d4427182-0586-4f02-802f-7c6fa4a6c869">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6f372b28-04cd-4d65-bc6a-9d7678359979"
      id="F_830eb75d-616c-4659-84ca-db9e0e0c2054">&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;1,748,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_6f372b28-04cd-4d65-bc6a-9d7678359979"
      decimals="-3"
      id="F_99c63064-dc22-4288-9d95-e02770e14f24"
      unitRef="U_USD">1748000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
