<?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_7530a172-dd5f-4ca7-afea-3e8bc91cdd5d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_7530a172-dd5f-4ca7-afea-3e8bc91cdd5d"
      id="F_08272379-c841-4ba9-abd2-214e15cd06c8">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_7530a172-dd5f-4ca7-afea-3e8bc91cdd5d"
      id="F_f82e2c7d-154d-4bfc-80b3-1b765643b757">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7530a172-dd5f-4ca7-afea-3e8bc91cdd5d"
      id="F_56ac31e2-e93c-45d7-8e8c-8f862bfe5334">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_7530a172-dd5f-4ca7-afea-3e8bc91cdd5d"
      id="F_ff496693-ea71-46d8-9715-9a6e02eb862f">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_7530a172-dd5f-4ca7-afea-3e8bc91cdd5d"
      id="F_7b22aa19-8fe2-4b24-b9c5-f76dbd69ad21">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_7530a172-dd5f-4ca7-afea-3e8bc91cdd5d"
      id="F_fcd8ed5e-4c36-474a-ab89-cc6e0fdab406">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_7530a172-dd5f-4ca7-afea-3e8bc91cdd5d"
      id="F_5580d93e-39d7-4160-b156-abe4424b3b61">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_7530a172-dd5f-4ca7-afea-3e8bc91cdd5d"
      id="F_6b93be78-e694-4d73-96be-195f61034a9d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_7530a172-dd5f-4ca7-afea-3e8bc91cdd5d"
      id="F_9f5bfac5-384a-49ff-80b3-fb5ee4e1de99">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7530a172-dd5f-4ca7-afea-3e8bc91cdd5d"
      id="F_f5fd44af-a0ce-4571-a7e2-33bbd693099c">&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;1,202,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_7530a172-dd5f-4ca7-afea-3e8bc91cdd5d"
      decimals="-3"
      id="F_fa646df8-a9dc-4159-92a9-2414a572aa00"
      unitRef="U_USD">1202000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
