<?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_1c328bc8-97d7-440e-814d-224b885fec5d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_1c328bc8-97d7-440e-814d-224b885fec5d"
      id="F_b2b222e6-2eea-4688-ad8d-e28375844b4d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_1c328bc8-97d7-440e-814d-224b885fec5d"
      id="F_e6132250-73e6-4fed-a37f-9f3a86d84755">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1c328bc8-97d7-440e-814d-224b885fec5d"
      id="F_b8f09c13-70f0-4202-b3ff-8d9731821d10">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_1c328bc8-97d7-440e-814d-224b885fec5d"
      id="F_f7ee6aec-92c7-4bb7-8600-fd2f7e5abdb2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1c328bc8-97d7-440e-814d-224b885fec5d"
      id="F_cd288b8a-72e6-46e2-8a19-24d0e574c05c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_1c328bc8-97d7-440e-814d-224b885fec5d"
      id="F_eaf36e96-0aa1-40c4-9981-bedad30812a1">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_1c328bc8-97d7-440e-814d-224b885fec5d"
      id="F_592cfd3a-746f-4014-93e4-d032569d2d33">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_1c328bc8-97d7-440e-814d-224b885fec5d"
      id="F_f601c661-1179-4a25-b9cd-48d4e49baa5a">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1c328bc8-97d7-440e-814d-224b885fec5d"
      id="F_aef9d66e-5416-41fb-84ec-7144ee7283bc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1c328bc8-97d7-440e-814d-224b885fec5d"
      id="F_b9689c2e-6539-421b-b84c-291fb8143af3">&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;320,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_1c328bc8-97d7-440e-814d-224b885fec5d"
      decimals="-3"
      id="F_83d8e38d-6b72-49f6-af47-60d5201a55e7"
      unitRef="U_USD">320000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
