<?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_69d1f3b2-e7fe-43af-8bac-99e934e7ff58">
        <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:CombinedProspectusTableNa
      contextRef="C_69d1f3b2-e7fe-43af-8bac-99e934e7ff58"
      id="F_35c02986-cf78-469c-8b7e-ea8e3499c96e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_69d1f3b2-e7fe-43af-8bac-99e934e7ff58"
      id="F_6823d2e6-f592-4d06-9e92-116a84a24132">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_69d1f3b2-e7fe-43af-8bac-99e934e7ff58"
      id="F_bc23d5c7-0437-4b09-b7ed-ccf072b99e53">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_69d1f3b2-e7fe-43af-8bac-99e934e7ff58"
      id="F_ab25f810-e70d-4855-b043-19fe7c2589dd">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_69d1f3b2-e7fe-43af-8bac-99e934e7ff58"
      id="F_6eead921-3573-42bb-bf0b-2924f86e5801">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_69d1f3b2-e7fe-43af-8bac-99e934e7ff58"
      id="F_c7fcb215-0f1f-4589-940c-785d4b1b63f6">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_69d1f3b2-e7fe-43af-8bac-99e934e7ff58"
      id="F_1f644b96-ea12-48ec-bb8f-fc0fd37b1f66">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_69d1f3b2-e7fe-43af-8bac-99e934e7ff58"
      id="F_e9e2aacd-0e26-4f42-9f7e-0e49b7844c45">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_69d1f3b2-e7fe-43af-8bac-99e934e7ff58"
      id="F_a4fdbe53-94ae-4ce5-9e2d-686150be7587">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_69d1f3b2-e7fe-43af-8bac-99e934e7ff58"
      id="F_35484880-d03e-428b-b5f5-09e75ebc279b">&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;727,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_69d1f3b2-e7fe-43af-8bac-99e934e7ff58"
      decimals="-3"
      id="F_402b89c4-6405-407f-b70d-260ff8e762f7"
      unitRef="U_USD">727000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
