<?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_5052450a-be33-41f8-bd18-627a98e329e2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_5052450a-be33-41f8-bd18-627a98e329e2"
      id="F_d657370c-abd6-4c59-8c82-66a360a6cadb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_5052450a-be33-41f8-bd18-627a98e329e2"
      id="F_6617ed49-96f3-4cd4-b28e-dcfe6a7f9fca">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_5052450a-be33-41f8-bd18-627a98e329e2"
      id="F_6afae661-e6d1-47e8-8fac-e7e788b15863">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5052450a-be33-41f8-bd18-627a98e329e2"
      id="F_2c67b97a-05fa-4e79-96cc-5ff11fec70fc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5052450a-be33-41f8-bd18-627a98e329e2"
      id="F_7b449ca1-fe88-4628-b62e-666fa5dc7c37">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_5052450a-be33-41f8-bd18-627a98e329e2"
      id="F_7b76fac1-f9d4-4cd0-a209-c351faa313a9">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_5052450a-be33-41f8-bd18-627a98e329e2"
      id="F_d2a3718f-2a15-45c9-adc3-90c01c410100">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5052450a-be33-41f8-bd18-627a98e329e2"
      id="F_ed575d1c-0c3a-4b0f-bb1e-8f34b983116d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_5052450a-be33-41f8-bd18-627a98e329e2"
      id="F_aede2ac9-60ca-4c1e-b418-81d3f1612429">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5052450a-be33-41f8-bd18-627a98e329e2"
      id="F_0c9e9bec-bed1-49a8-9c71-352fb4600bc6">&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;820,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_5052450a-be33-41f8-bd18-627a98e329e2"
      decimals="-3"
      id="F_a82408b6-58ef-420f-86a3-f7f5265a304e"
      unitRef="U_USD">820000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
