<?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_154b0003-55ff-4a9b-aeee-49445cff1df2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_154b0003-55ff-4a9b-aeee-49445cff1df2"
      id="F_f7237617-8379-44b5-b944-15f3308b2cd4">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_154b0003-55ff-4a9b-aeee-49445cff1df2"
      id="F_32f31ed1-e719-4fd1-b489-9d7c0ba3e596">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_154b0003-55ff-4a9b-aeee-49445cff1df2"
      id="F_2cb4c4b3-5038-461d-a865-0c35a8b0f910">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_154b0003-55ff-4a9b-aeee-49445cff1df2"
      id="F_ae33b835-054d-4188-9ef4-761e56f39fd5">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_154b0003-55ff-4a9b-aeee-49445cff1df2"
      id="F_ca9b0173-2ee6-4e49-8968-562e0607d3e2">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_154b0003-55ff-4a9b-aeee-49445cff1df2"
      id="F_1102f9cd-87e9-4741-aea2-b98b71d0c682">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_154b0003-55ff-4a9b-aeee-49445cff1df2"
      id="F_970563e9-bdfa-4d57-8037-db88b84de6ba">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_154b0003-55ff-4a9b-aeee-49445cff1df2"
      id="F_8d73d951-f6d0-4aef-818e-64bce9655efd">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_154b0003-55ff-4a9b-aeee-49445cff1df2"
      id="F_f318cac5-cb7f-46bf-9484-4c2c756a5858">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_154b0003-55ff-4a9b-aeee-49445cff1df2"
      id="F_13e881ee-5a74-410e-866f-904117cb16bc">&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;1,943,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_154b0003-55ff-4a9b-aeee-49445cff1df2"
      decimals="-3"
      id="F_41c1889d-6804-47c0-ae2c-4be9b6a4c523"
      unitRef="U_USD">1943000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
