<?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_fcf8d65c-f5f1-4b7f-9d62-c1f052c94585">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_fcf8d65c-f5f1-4b7f-9d62-c1f052c94585"
      id="F_dd00d099-9b19-4789-a3d5-2ce99b0c9126">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_fcf8d65c-f5f1-4b7f-9d62-c1f052c94585"
      id="F_11c5cb60-f05e-4267-872f-8f4f79f91c18">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_fcf8d65c-f5f1-4b7f-9d62-c1f052c94585"
      id="F_8a25393a-b6d6-42ec-928b-90130b88c968">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fcf8d65c-f5f1-4b7f-9d62-c1f052c94585"
      id="F_26109bfd-51e3-40de-becc-e567d311eeb6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_fcf8d65c-f5f1-4b7f-9d62-c1f052c94585"
      id="F_9b9f22c9-70e3-4b3a-90aa-961bc1a99ff9">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_fcf8d65c-f5f1-4b7f-9d62-c1f052c94585"
      id="F_42fdd5d7-39dd-4e73-81a4-f849eb8d59f0">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_fcf8d65c-f5f1-4b7f-9d62-c1f052c94585"
      id="F_cf169fee-544b-4b19-b7d0-527996894c2d">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_fcf8d65c-f5f1-4b7f-9d62-c1f052c94585"
      id="F_c1a43d91-b91a-411b-a643-96c67342d145">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_fcf8d65c-f5f1-4b7f-9d62-c1f052c94585"
      id="F_c616740f-e144-4781-8bf5-5eeb4778a84d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_fcf8d65c-f5f1-4b7f-9d62-c1f052c94585"
      id="F_3ca45abc-7f3f-4de8-a156-2548b91bf48a">&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;831,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_fcf8d65c-f5f1-4b7f-9d62-c1f052c94585"
      decimals="-3"
      id="F_aa70eff5-747a-4ba1-ba6f-bca224cce585"
      unitRef="U_USD">831000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
