<?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_46442476-a860-40c0-8a76-acfc3c1695a2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_46442476-a860-40c0-8a76-acfc3c1695a2"
      id="F_390f2094-7a7d-4630-8c4f-93a09e29ecb0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_46442476-a860-40c0-8a76-acfc3c1695a2"
      id="F_aa9fc190-20c5-4576-8834-c59d11aec315">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_46442476-a860-40c0-8a76-acfc3c1695a2"
      id="F_133b6939-cfb9-43ca-8ef0-48326f5ff2d2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_46442476-a860-40c0-8a76-acfc3c1695a2"
      id="F_c1658577-a232-4b9b-8ca4-13a3550915d0">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_46442476-a860-40c0-8a76-acfc3c1695a2"
      id="F_d9ab6f41-6f37-4538-871e-e5a4f17893ef">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_46442476-a860-40c0-8a76-acfc3c1695a2"
      id="F_0dfe062a-2031-4a0d-b660-48f1d3e1fe9d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_46442476-a860-40c0-8a76-acfc3c1695a2"
      id="F_fd727ff7-f859-4b3e-b712-3695c8175e72">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_46442476-a860-40c0-8a76-acfc3c1695a2"
      id="F_59207e40-53e4-4b9c-8086-c8d321491566">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_46442476-a860-40c0-8a76-acfc3c1695a2"
      id="F_13c536bc-df53-49af-b4d1-9fcfb9db271b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_46442476-a860-40c0-8a76-acfc3c1695a2"
      id="F_eeeff563-5f6d-4647-b9b0-cdd161bfb585">&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,606,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_46442476-a860-40c0-8a76-acfc3c1695a2"
      decimals="-3"
      id="F_490007ff-2d18-4788-a47d-4b39a41783c9"
      unitRef="U_USD">1606000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
