<?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_724bfb6a-8708-4d2d-b204-7084c31399a5">
        <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_724bfb6a-8708-4d2d-b204-7084c31399a5"
      id="F_0489612a-ef20-4d6e-8a7d-a98e64715cdd">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_724bfb6a-8708-4d2d-b204-7084c31399a5"
      id="F_05b187fd-b005-45fd-b3b3-59473989b628">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_724bfb6a-8708-4d2d-b204-7084c31399a5"
      id="F_55b0a780-9512-4c73-a2df-02467934617a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_724bfb6a-8708-4d2d-b204-7084c31399a5"
      id="F_7dc28d45-aa26-47e5-92c2-9e26b6d4f966">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_724bfb6a-8708-4d2d-b204-7084c31399a5"
      id="F_d83ac2c4-2273-4e18-916d-4fd1fb288baf">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_724bfb6a-8708-4d2d-b204-7084c31399a5"
      id="F_ef598151-ea4a-4d11-9095-317d135b7ca9">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_724bfb6a-8708-4d2d-b204-7084c31399a5"
      id="F_137a817b-3026-4920-8506-3d6209694205">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_724bfb6a-8708-4d2d-b204-7084c31399a5"
      id="F_c6318d21-fd6b-498f-a8b2-fc36bcb992e9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_724bfb6a-8708-4d2d-b204-7084c31399a5"
      id="F_ee6e32a4-568c-4226-a6e3-2d96309fbcf8">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_724bfb6a-8708-4d2d-b204-7084c31399a5"
      id="F_0e5fad14-ff27-4177-a01a-625fc03cd12e">&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,758,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_724bfb6a-8708-4d2d-b204-7084c31399a5"
      decimals="-3"
      id="F_835795d6-da19-4ba1-ba25-9509b6919774"
      unitRef="U_USD">1758000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
