<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_a49b520e-a194-413e-8c38-a228310563d6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_a49b520e-a194-413e-8c38-a228310563d6"
      id="F_f581ebc6-f71a-4af6-aa8b-8717a92e96f2">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a49b520e-a194-413e-8c38-a228310563d6"
      id="F_80964d0a-8cbe-4ef5-9014-1b722e77c801">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_a49b520e-a194-413e-8c38-a228310563d6"
      id="F_1e95b861-16fa-4974-93fe-ad78ed190af1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a49b520e-a194-413e-8c38-a228310563d6"
      id="F_c9c6e1c2-9c8c-4121-8d5b-486a3e04aa2f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_a49b520e-a194-413e-8c38-a228310563d6"
      id="F_86c0ff42-35f1-4d89-8845-9223bb0d6aba">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a49b520e-a194-413e-8c38-a228310563d6"
      id="F_b8a352da-458b-4cd1-9947-c829e41dbd81">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_a49b520e-a194-413e-8c38-a228310563d6"
      id="F_a6cfead3-0e8b-4c5d-a980-1d7a9f348c9c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_a49b520e-a194-413e-8c38-a228310563d6"
      id="F_d881b30e-ac60-43a2-8891-10908cae2c1b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a49b520e-a194-413e-8c38-a228310563d6"
      id="F_1ca8f8a7-5474-43a9-90be-429e7b99a33d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a49b520e-a194-413e-8c38-a228310563d6"
      id="F_cca1fdbc-9026-4c31-a7ca-56c3a8bfab1f">&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;7,640,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_a49b520e-a194-413e-8c38-a228310563d6"
      decimals="0"
      id="F_17c7196e-f6f9-433f-9004-e131f110ff3d"
      unitRef="U_USD">7640000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
