<?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_bea6d6a1-fc5d-45b0-b464-4f401b25510c">
        <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_bea6d6a1-fc5d-45b0-b464-4f401b25510c"
      id="F_8850624d-d6e2-4f04-be54-f1a3461b3eff">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_bea6d6a1-fc5d-45b0-b464-4f401b25510c"
      id="F_68d1a2cf-80a9-40bf-9062-d6e9864e7a2f">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bea6d6a1-fc5d-45b0-b464-4f401b25510c"
      id="F_c78824ae-6bed-47e6-8081-ea36937ff040">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_bea6d6a1-fc5d-45b0-b464-4f401b25510c"
      id="F_fbeca9e8-3941-4f93-a96e-c3ed4378b9d6">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bea6d6a1-fc5d-45b0-b464-4f401b25510c"
      id="F_c458ed58-2be3-4b65-a539-a75166c20f56">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_bea6d6a1-fc5d-45b0-b464-4f401b25510c"
      id="F_73d6fd01-c45b-49d6-adc6-45f7dabf6514">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_bea6d6a1-fc5d-45b0-b464-4f401b25510c"
      id="F_546c0c7a-0f1d-4fdd-99f5-c3ad0697515c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_bea6d6a1-fc5d-45b0-b464-4f401b25510c"
      id="F_c2f4ecf7-bbc3-441e-b4dc-0779a3c861b1">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_bea6d6a1-fc5d-45b0-b464-4f401b25510c"
      id="F_8ff0c9ed-ed22-4627-bb18-ccf3fd46a719">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bea6d6a1-fc5d-45b0-b464-4f401b25510c"
      id="F_cb2661af-27b6-4194-985e-be2b3e4d6c54">&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;685,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_bea6d6a1-fc5d-45b0-b464-4f401b25510c"
      decimals="-3"
      id="F_742050c9-fda3-4bf9-8852-7b90810d6b71"
      unitRef="U_USD">685000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
