<?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_baa40013-7193-42f2-921b-970751a9d2d2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_baa40013-7193-42f2-921b-970751a9d2d2"
      id="F_6069b246-998d-4748-a8e9-f5788a5f0ef1">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_baa40013-7193-42f2-921b-970751a9d2d2"
      id="F_9a29c242-4a44-4431-826c-f8d6268eb3fa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_baa40013-7193-42f2-921b-970751a9d2d2"
      id="F_4e887745-84be-4442-bc06-cabaf4adf1e6">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_baa40013-7193-42f2-921b-970751a9d2d2"
      id="F_9d4bbf16-65a1-411c-8129-8d639eaa0fd4">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_baa40013-7193-42f2-921b-970751a9d2d2"
      id="F_e411c395-4e87-4443-a150-352505558208">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_baa40013-7193-42f2-921b-970751a9d2d2"
      id="F_40307483-5d10-478d-8201-2637fb7e1f07">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_baa40013-7193-42f2-921b-970751a9d2d2"
      id="F_97cbda0d-9c5f-4f3e-8750-af0b160374c7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_baa40013-7193-42f2-921b-970751a9d2d2"
      id="F_fd0f8e63-cc69-446e-8d59-580e7c3d2730">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_baa40013-7193-42f2-921b-970751a9d2d2"
      id="F_3f7fd6a1-9fd5-4ac6-9b52-2e47d4d6b23a">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_baa40013-7193-42f2-921b-970751a9d2d2"
      id="F_dfc7e43b-d085-4450-a8fd-f9149040e641">&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,532,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_baa40013-7193-42f2-921b-970751a9d2d2"
      decimals="-3"
      id="F_11a76587-a7aa-4a6c-b12d-5e1aa41a6153"
      unitRef="U_USD">1532000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
