<?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_c40b14e6-e9b7-4e9e-93c9-ff7942a6631a">
        <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:EntityRegistrantName
      contextRef="C_c40b14e6-e9b7-4e9e-93c9-ff7942a6631a"
      id="F_cfc2db31-2f76-4fca-901e-9c5577fffbd0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_c40b14e6-e9b7-4e9e-93c9-ff7942a6631a"
      id="F_72bb1650-43c5-4734-ac93-55c4864085a5">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_c40b14e6-e9b7-4e9e-93c9-ff7942a6631a"
      id="F_a2358eb9-a426-42df-abb5-a1227ff19808">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c40b14e6-e9b7-4e9e-93c9-ff7942a6631a"
      id="F_a0cffffe-f6b3-4b97-8f76-0b55650db965">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_c40b14e6-e9b7-4e9e-93c9-ff7942a6631a"
      id="F_c555fcc0-ba00-4707-9c31-7661deb08e16">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c40b14e6-e9b7-4e9e-93c9-ff7942a6631a"
      id="F_d78eb1ff-c12d-482f-9859-fd35f48226e1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_c40b14e6-e9b7-4e9e-93c9-ff7942a6631a"
      id="F_3b0ef3c9-4870-4f6d-a1ac-58d0faebff5b">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c40b14e6-e9b7-4e9e-93c9-ff7942a6631a"
      id="F_93a6b535-0bed-46b7-ae75-b6e39d6b830b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_c40b14e6-e9b7-4e9e-93c9-ff7942a6631a"
      id="F_8ce96ffe-8a08-4cfe-8cfe-65442e4c8df3">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c40b14e6-e9b7-4e9e-93c9-ff7942a6631a"
      id="F_2b4659d0-ccb1-4ec3-8fba-a2df1ec06ed4">&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,291,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_c40b14e6-e9b7-4e9e-93c9-ff7942a6631a"
      decimals="-3"
      id="F_5e0ec0a2-db04-4430-843d-f160b9ac5363"
      unitRef="U_USD">1291000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
