<?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_dcddbfb8-5748-430d-81cb-10f205daecb5">
        <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_dcddbfb8-5748-430d-81cb-10f205daecb5"
      id="F_007e9716-0a39-4776-9e11-5b6931ee0702">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_dcddbfb8-5748-430d-81cb-10f205daecb5"
      id="F_3142c475-69c5-419e-b1c4-15669839b0b4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dcddbfb8-5748-430d-81cb-10f205daecb5"
      id="F_05dfbe55-993c-4bbe-8371-526d5d668207">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_dcddbfb8-5748-430d-81cb-10f205daecb5"
      id="F_43cbebe0-d8eb-4767-a76f-829005d21d03">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_dcddbfb8-5748-430d-81cb-10f205daecb5"
      id="F_bb1fb74d-3983-47e3-939c-72a31ce440ad">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_dcddbfb8-5748-430d-81cb-10f205daecb5"
      id="F_4045d73b-03ac-4854-b0a9-08710558e9f1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_dcddbfb8-5748-430d-81cb-10f205daecb5"
      id="F_2c4c9cb4-c3a4-44cd-9386-b3bb86137945">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_dcddbfb8-5748-430d-81cb-10f205daecb5"
      id="F_070de479-922f-43a7-8066-48260428a24d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_dcddbfb8-5748-430d-81cb-10f205daecb5"
      id="F_70534d3d-1b3e-4770-a18e-5636f7555290">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_dcddbfb8-5748-430d-81cb-10f205daecb5"
      id="F_5d24e7c6-4f74-4674-b423-78fcb03c9102">&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,150,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_dcddbfb8-5748-430d-81cb-10f205daecb5"
      decimals="-3"
      id="F_41f6a957-876b-4b13-9278-178d8812214a"
      unitRef="U_USD">1150000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
