<?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_4d2712b0-f096-4fdd-989e-39f71bbcb21d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-05</startDate>
            <endDate>2026-06-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_4d2712b0-f096-4fdd-989e-39f71bbcb21d"
      id="F_50c5c903-e045-496b-bdca-01f9e9f8e520">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_4d2712b0-f096-4fdd-989e-39f71bbcb21d"
      id="F_7c25ae9f-3134-4e12-9010-8868efec83f2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_4d2712b0-f096-4fdd-989e-39f71bbcb21d"
      id="F_f3054e20-f133-44eb-87ae-e9a5ad93dfc3">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_4d2712b0-f096-4fdd-989e-39f71bbcb21d"
      id="F_17cc66ce-53ec-41fa-b32b-5e7b82d76f92">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_4d2712b0-f096-4fdd-989e-39f71bbcb21d"
      id="F_93c942c7-5689-4fc9-b75c-0da9c5a964ea">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4d2712b0-f096-4fdd-989e-39f71bbcb21d"
      id="F_a8943737-1500-4332-a45b-f7cebdf96030">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_4d2712b0-f096-4fdd-989e-39f71bbcb21d"
      id="F_60c81056-e599-40d7-a826-b2d8330d1db8">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_4d2712b0-f096-4fdd-989e-39f71bbcb21d"
      id="F_c2b17bd1-23bb-49f9-89cc-3bd170a97f9d">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4d2712b0-f096-4fdd-989e-39f71bbcb21d"
      id="F_ae8280d9-4fde-4538-8dd4-25d7bbaa59c3">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_4d2712b0-f096-4fdd-989e-39f71bbcb21d"
      id="F_cbf9844c-1b18-4db9-bbaa-577ad8e853ae">&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;5,000,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_4d2712b0-f096-4fdd-989e-39f71bbcb21d"
      decimals="-6"
      id="F_9cfe82b0-45d0-4bdf-835b-11ce89e90f99"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
