<?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_6431bd7e-2a2a-4acd-aae5-ab102b6560aa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_6431bd7e-2a2a-4acd-aae5-ab102b6560aa"
      id="F_40327d7c-6e83-4970-a8eb-e595af477e1b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_6431bd7e-2a2a-4acd-aae5-ab102b6560aa"
      id="F_2b70dcca-d0e6-4ae5-90b1-c2301312d2af">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_6431bd7e-2a2a-4acd-aae5-ab102b6560aa"
      id="F_892bd08c-2872-401e-9109-15717f88fc68">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_6431bd7e-2a2a-4acd-aae5-ab102b6560aa"
      id="F_6edc93a2-9d01-4f1a-86db-26c2013d6343">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_6431bd7e-2a2a-4acd-aae5-ab102b6560aa"
      id="F_cde74d3a-b129-442a-8553-f6952c60a9cd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_6431bd7e-2a2a-4acd-aae5-ab102b6560aa"
      id="F_0d1fc3ad-0f2a-432c-842f-d14644e617db">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6431bd7e-2a2a-4acd-aae5-ab102b6560aa"
      id="F_2d832148-eff2-447d-aa3a-aa65f6eb7c5a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6431bd7e-2a2a-4acd-aae5-ab102b6560aa"
      id="F_75c5a26b-74d1-458f-848c-cc96ec34e5a9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_6431bd7e-2a2a-4acd-aae5-ab102b6560aa"
      id="F_5efb4146-a0a8-4067-bf37-c5988a59acf6">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_6431bd7e-2a2a-4acd-aae5-ab102b6560aa"
      id="F_050dc20b-fc95-4104-8ffe-4eeca65fef69">&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;500,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_6431bd7e-2a2a-4acd-aae5-ab102b6560aa"
      decimals="-3"
      id="F_7c614cb8-acda-41a8-8b71-fa9c837a590e"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
