<?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_33f46995-d0d4-4f4c-affd-7ed5dacb97e4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_33f46995-d0d4-4f4c-affd-7ed5dacb97e4"
      id="F_9caff247-84be-4139-a07d-c1993be3c2ef">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_33f46995-d0d4-4f4c-affd-7ed5dacb97e4"
      id="F_4e0a4529-4616-4ef8-a258-97bcfa6c5315">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_33f46995-d0d4-4f4c-affd-7ed5dacb97e4"
      id="F_5d0b4db4-23cf-4cdf-82f5-0e982c88bc2e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_33f46995-d0d4-4f4c-affd-7ed5dacb97e4"
      id="F_3a26edbd-e662-4f22-84be-b38a7facb190">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_33f46995-d0d4-4f4c-affd-7ed5dacb97e4"
      id="F_cebc4253-d74c-44bc-ae8d-fd01a5305b3b">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_33f46995-d0d4-4f4c-affd-7ed5dacb97e4"
      id="F_37931beb-cd63-4165-8f63-d0c51680a001">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_33f46995-d0d4-4f4c-affd-7ed5dacb97e4"
      id="F_0736c5b1-aa18-44ab-8394-60b7b299644e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_33f46995-d0d4-4f4c-affd-7ed5dacb97e4"
      id="F_c81b2f16-6129-4592-a980-0443a3788d2e">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_33f46995-d0d4-4f4c-affd-7ed5dacb97e4"
      id="F_969294a1-eb96-41c5-b039-5d02c0f5aac2">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_33f46995-d0d4-4f4c-affd-7ed5dacb97e4"
      id="F_86f79ef5-96e2-4918-9264-bcdbfa154949">&lt;p style="font-size:10pt;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;3,100,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_33f46995-d0d4-4f4c-affd-7ed5dacb97e4"
      decimals="-3"
      id="F_518fb923-48c2-4ba2-a92a-7107e258b19a"
      unitRef="U_USD">3100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
