<?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_78bc0a7f-952d-4f21-9588-50a1abda1031">
        <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:RegnFileNb
      contextRef="C_78bc0a7f-952d-4f21-9588-50a1abda1031"
      id="F_9fd9e270-9eb6-4e94-8806-c9b022b96f7c">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_78bc0a7f-952d-4f21-9588-50a1abda1031"
      id="F_f6d49c31-4355-49fd-a8f1-f31c1c66e8b9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_78bc0a7f-952d-4f21-9588-50a1abda1031"
      id="F_8687f3be-8744-4e57-a2f4-e8a43c56bd89">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_78bc0a7f-952d-4f21-9588-50a1abda1031"
      id="F_808048b2-067f-4b60-9a57-b166f055d213">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_78bc0a7f-952d-4f21-9588-50a1abda1031"
      id="F_2ee93b4f-7223-4a34-8058-ed42b9ee4f6d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_78bc0a7f-952d-4f21-9588-50a1abda1031"
      id="F_34edbbea-607c-4e56-a711-5b315d547b12">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_78bc0a7f-952d-4f21-9588-50a1abda1031"
      id="F_ce7cd349-d077-46b0-ba5e-0586d74bc34c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_78bc0a7f-952d-4f21-9588-50a1abda1031"
      id="F_493d5b3f-2169-41b4-ba69-ea903d9e7a2b">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_78bc0a7f-952d-4f21-9588-50a1abda1031"
      id="F_8f1402b5-7de9-426d-82b2-81e11584a88e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_78bc0a7f-952d-4f21-9588-50a1abda1031"
      id="F_4a9231d4-b59c-4c45-8a16-9ab2703ddfe3">&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;5,150,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_78bc0a7f-952d-4f21-9588-50a1abda1031"
      decimals="-3"
      id="F_dc6a20c1-3962-4d9c-ab42-6c470f0cb294"
      unitRef="U_USD">5150000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
