<?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_af3fda61-f9a1-4a5e-84e5-f1048d1fa865">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-17</startDate>
            <endDate>2026-06-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_af3fda61-f9a1-4a5e-84e5-f1048d1fa865"
      id="F_012a6c52-9d74-48b2-96f0-c8f90b6dbf87">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_af3fda61-f9a1-4a5e-84e5-f1048d1fa865"
      id="F_55aa8c57-a2dd-4ebd-b0e4-c2f01ede356d">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_af3fda61-f9a1-4a5e-84e5-f1048d1fa865"
      id="F_56de6232-c640-4563-b4c2-e8c80b621153">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_af3fda61-f9a1-4a5e-84e5-f1048d1fa865"
      id="F_86fe50d2-920e-45ac-a2f6-7dc23c96b72b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_af3fda61-f9a1-4a5e-84e5-f1048d1fa865"
      id="F_db1d7604-2390-426f-a039-8dbd7dba5459">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_af3fda61-f9a1-4a5e-84e5-f1048d1fa865"
      id="F_ee6e1416-33cb-4bd9-a74b-6549998368a4">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_af3fda61-f9a1-4a5e-84e5-f1048d1fa865"
      id="F_91945043-4082-4cde-8829-b0e88af9230d">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_af3fda61-f9a1-4a5e-84e5-f1048d1fa865"
      id="F_ed34be7a-0bd2-43a1-a050-ac216716a054">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_af3fda61-f9a1-4a5e-84e5-f1048d1fa865"
      id="F_0bb6531a-bd56-4b9a-86ed-e20a3ce45c95">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_af3fda61-f9a1-4a5e-84e5-f1048d1fa865"
      id="F_b5a923e5-a82f-4e53-be7b-da390b1b4816">&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,070,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_af3fda61-f9a1-4a5e-84e5-f1048d1fa865"
      decimals="-3"
      id="F_5db1146c-4f22-409a-85e3-1e047f768a7d"
      unitRef="U_USD">1070000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
