<?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_05e6902e-b921-4748-9847-ef64c0d65307">
        <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_05e6902e-b921-4748-9847-ef64c0d65307"
      id="F_07f71d3c-2b3a-4bbe-aec9-bcd1ee281a76">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_05e6902e-b921-4748-9847-ef64c0d65307"
      id="F_98b25ff9-4c6d-4d50-8705-728c3d2261fc">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_05e6902e-b921-4748-9847-ef64c0d65307"
      id="F_373d6573-df24-47e1-a3ff-e6e7254448d4">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_05e6902e-b921-4748-9847-ef64c0d65307"
      id="F_cc22b00a-3b24-42c2-9abb-c3820c831fca">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_05e6902e-b921-4748-9847-ef64c0d65307"
      id="F_8a89abe2-ce0f-44f3-acdc-65ff47266d2a">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_05e6902e-b921-4748-9847-ef64c0d65307"
      id="F_43a653bc-9a3d-4d57-988c-0cef95f28033">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_05e6902e-b921-4748-9847-ef64c0d65307"
      id="F_0726260f-8892-43b9-bf19-0be85e19a94f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_05e6902e-b921-4748-9847-ef64c0d65307"
      id="F_858defa6-dd83-480a-a06e-3efe55c2f04b">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_05e6902e-b921-4748-9847-ef64c0d65307"
      id="F_05e71891-8a74-4e80-b7b7-9ea74222f5ae">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_05e6902e-b921-4748-9847-ef64c0d65307"
      id="F_2d372cef-ebee-4972-9746-445467c3bb4c">&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;515,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_05e6902e-b921-4748-9847-ef64c0d65307"
      decimals="-3"
      id="F_75c1305d-033d-4f3f-b142-505db2f923db"
      unitRef="U_USD">515000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
