<?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_dc1d9a05-bcc6-4457-a427-064ec008fdc9">
        <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:OffsetTableNa
      contextRef="C_dc1d9a05-bcc6-4457-a427-064ec008fdc9"
      id="F_04edf78c-88be-4522-8f15-12e7f412c61a">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_dc1d9a05-bcc6-4457-a427-064ec008fdc9"
      id="F_d52e0692-1650-4e49-80b1-b4f0ae5a0276">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_dc1d9a05-bcc6-4457-a427-064ec008fdc9"
      id="F_cf9e1deb-8329-487d-bebd-a037710d8ac3">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dc1d9a05-bcc6-4457-a427-064ec008fdc9"
      id="F_0fc7cc44-5bbb-45c1-aee0-fdf79bab5965">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_dc1d9a05-bcc6-4457-a427-064ec008fdc9"
      id="F_e2e6ebdf-d61a-45d0-819a-e5f5defaf965">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_dc1d9a05-bcc6-4457-a427-064ec008fdc9"
      id="F_d7a00ecb-54c4-448f-91c6-1dd66f069f71">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_dc1d9a05-bcc6-4457-a427-064ec008fdc9"
      id="F_73f79495-5ca2-49be-a700-acc3fe7e1e2a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_dc1d9a05-bcc6-4457-a427-064ec008fdc9"
      id="F_c001de41-8f31-4f41-9061-2ea30434849c">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_dc1d9a05-bcc6-4457-a427-064ec008fdc9"
      id="F_ff54cb6a-f297-4929-bb3a-2b667371e33f">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_dc1d9a05-bcc6-4457-a427-064ec008fdc9"
      id="F_83b2d81c-80c7-428a-bf5e-1b23e812f91d">&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;512,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_dc1d9a05-bcc6-4457-a427-064ec008fdc9"
      decimals="0"
      id="F_22147dc8-808d-423b-a66a-33d6baf39a5e"
      unitRef="U_USD">512000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
