<?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_fdd646ad-3bcf-48d4-a1c6-ae40c4ed6b80">
        <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:SubmissnTp
      contextRef="C_fdd646ad-3bcf-48d4-a1c6-ae40c4ed6b80"
      id="F_b202df9e-1aec-4bc2-85f7-a7fac2fd2324">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_fdd646ad-3bcf-48d4-a1c6-ae40c4ed6b80"
      id="F_0e32081d-843a-43bb-95f4-6e45c22e09e7">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_fdd646ad-3bcf-48d4-a1c6-ae40c4ed6b80"
      id="F_938cff9b-4b01-45dd-bd67-75d6226ec297">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_fdd646ad-3bcf-48d4-a1c6-ae40c4ed6b80"
      id="F_f6a88c1b-475c-4e9a-8682-5af5c9b4b264">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fdd646ad-3bcf-48d4-a1c6-ae40c4ed6b80"
      id="F_62c0486a-70f8-42a6-b5f2-9f612f4c2e3b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fdd646ad-3bcf-48d4-a1c6-ae40c4ed6b80"
      id="F_c84b215a-f916-4232-a256-b9553ea80980">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_fdd646ad-3bcf-48d4-a1c6-ae40c4ed6b80"
      id="F_d343101e-0bbf-463a-8510-b210ccbaedeb">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_fdd646ad-3bcf-48d4-a1c6-ae40c4ed6b80"
      id="F_e152950f-a149-423a-a06a-628d8847e38d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_fdd646ad-3bcf-48d4-a1c6-ae40c4ed6b80"
      id="F_2b4fbc9d-d6a2-4199-a96d-77c607698a2b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_fdd646ad-3bcf-48d4-a1c6-ae40c4ed6b80"
      id="F_f3dba82f-690f-4527-9939-10a0cf70250e">&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;5,005,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_fdd646ad-3bcf-48d4-a1c6-ae40c4ed6b80"
      decimals="-3"
      id="F_a1f2b52a-c539-46a2-b74f-5aa6ddddbe14"
      unitRef="U_USD">5005000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
