<?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_9525d00b-75fb-48be-ac2b-2f88c57fda5e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_9525d00b-75fb-48be-ac2b-2f88c57fda5e"
      id="F_55224e53-6af9-4b68-a04a-d4341992ef0d">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_9525d00b-75fb-48be-ac2b-2f88c57fda5e"
      id="F_6109d8ee-799b-4d05-a8f9-7507308d8e85">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_9525d00b-75fb-48be-ac2b-2f88c57fda5e"
      id="F_d7482f92-aff5-44a7-8b03-cc08d6dda1a9">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9525d00b-75fb-48be-ac2b-2f88c57fda5e"
      id="F_df7a6478-ded4-423c-8125-e5a6bf63da4c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_9525d00b-75fb-48be-ac2b-2f88c57fda5e"
      id="F_0635c58a-7930-4f97-9dc5-c367d4c4da1f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9525d00b-75fb-48be-ac2b-2f88c57fda5e"
      id="F_e1989c7f-f571-49e3-a370-d22ac3a8a40d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_9525d00b-75fb-48be-ac2b-2f88c57fda5e"
      id="F_3ed51885-7290-4f27-8c4d-1af12f444264">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9525d00b-75fb-48be-ac2b-2f88c57fda5e"
      id="F_8b616cff-f16f-4364-85ee-d77553f4dcb7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_9525d00b-75fb-48be-ac2b-2f88c57fda5e"
      id="F_d145be5c-2ae7-4b9c-8ef7-1c7298991588">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9525d00b-75fb-48be-ac2b-2f88c57fda5e"
      id="F_a4c72dea-01b9-4c49-a2af-a9d8ce20519b">&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;250,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_9525d00b-75fb-48be-ac2b-2f88c57fda5e"
      decimals="-3"
      id="F_525724e5-459c-409c-ba87-9217a6717016"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
