<?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_3f9e21c6-aab3-499f-a889-d0789f331750">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3f9e21c6-aab3-499f-a889-d0789f331750"
      id="F_1f43485b-4b32-4c2e-bf79-813599cee0be">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3f9e21c6-aab3-499f-a889-d0789f331750"
      id="F_71fdf05d-599d-420d-ae5c-d37ddc21b514">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_3f9e21c6-aab3-499f-a889-d0789f331750"
      id="F_d0c29602-309e-4319-b2c5-8c5506a4a0f3">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_3f9e21c6-aab3-499f-a889-d0789f331750"
      id="F_f3905d5d-6243-4aba-9e11-d44a14f18922">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3f9e21c6-aab3-499f-a889-d0789f331750"
      id="F_6548cf46-1a4a-49ad-a30c-5ec3e156e3d2">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3f9e21c6-aab3-499f-a889-d0789f331750"
      id="F_dda89c50-c1f8-4615-9748-a265a188ca5e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_3f9e21c6-aab3-499f-a889-d0789f331750"
      id="F_33ce191e-3271-44af-81f3-d7a8b08e4722">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3f9e21c6-aab3-499f-a889-d0789f331750"
      id="F_5a95e97d-f104-4940-b3ff-d9949c04e600">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_3f9e21c6-aab3-499f-a889-d0789f331750"
      id="F_f000baf6-8fc0-4d82-beed-3bc1e737d6b0">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3f9e21c6-aab3-499f-a889-d0789f331750"
      id="F_6ba9de33-b5e2-4bc4-a9c0-367454b5ca78">&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;3,522,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_3f9e21c6-aab3-499f-a889-d0789f331750"
      decimals="0"
      id="F_9cbe03e0-3091-4128-9dac-c31d1ba8311e"
      unitRef="U_USD">3522000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
