<?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_baee33b0-1cc8-4a4a-881b-ebb924bc921d">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_baee33b0-1cc8-4a4a-881b-ebb924bc921d"
      id="F_4d49a940-e8be-4dd6-85ff-8535b6834b87">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_baee33b0-1cc8-4a4a-881b-ebb924bc921d"
      id="F_699d68b4-de18-43ee-86ea-2975833718a7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_baee33b0-1cc8-4a4a-881b-ebb924bc921d"
      id="F_8bb03894-cca2-4636-ab3b-4167b7bb3ee1">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_baee33b0-1cc8-4a4a-881b-ebb924bc921d"
      id="F_fb392a90-e6ca-4d80-bfc3-f8e3d25689de">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_baee33b0-1cc8-4a4a-881b-ebb924bc921d"
      id="F_5097aba6-a61e-4fc1-81f2-440683b90de8">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_baee33b0-1cc8-4a4a-881b-ebb924bc921d"
      id="F_c5a41c62-5129-42d5-af3e-471dee003d80">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_baee33b0-1cc8-4a4a-881b-ebb924bc921d"
      id="F_453a9dc5-4840-45fa-bd8d-8f86b006e6a0">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_baee33b0-1cc8-4a4a-881b-ebb924bc921d"
      id="F_c91c73b0-0f23-4565-9e53-dd76f08238d1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_baee33b0-1cc8-4a4a-881b-ebb924bc921d"
      id="F_3169aa15-8729-4b69-bb49-6d00dbf6d187">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_baee33b0-1cc8-4a4a-881b-ebb924bc921d"
      id="F_cd8575f5-0db9-4ab1-b00b-a64083a753ce">&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;10,000,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_baee33b0-1cc8-4a4a-881b-ebb924bc921d"
      decimals="0"
      id="F_6e105b32-f0e3-4a04-ad35-a2c7ba0c8b96"
      unitRef="U_USD">10000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
