<?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_8fae749f-7658-49ec-995a-609fac73b701">
        <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:SubmissnTp
      contextRef="C_8fae749f-7658-49ec-995a-609fac73b701"
      id="F_77a50b58-3d7b-4765-9e2d-713075ed4b1e">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_8fae749f-7658-49ec-995a-609fac73b701"
      id="F_3091d280-eb2e-4f0a-a2f6-308137e1cb1d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_8fae749f-7658-49ec-995a-609fac73b701"
      id="F_87e7fbfd-60ea-420c-991d-8730c816b651">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8fae749f-7658-49ec-995a-609fac73b701"
      id="F_d4046716-19cd-4303-b14b-34961e9a6038">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8fae749f-7658-49ec-995a-609fac73b701"
      id="F_78130a76-b18d-48d0-82ee-34adc2f04474">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_8fae749f-7658-49ec-995a-609fac73b701"
      id="F_8a334af0-9243-4708-993e-b829388eeed6">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_8fae749f-7658-49ec-995a-609fac73b701"
      id="F_48ad133b-2d8d-4004-b0b4-1300e0e96efb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_8fae749f-7658-49ec-995a-609fac73b701"
      id="F_87b8b69a-1eb6-4670-b1f2-0391457dc9f4">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_8fae749f-7658-49ec-995a-609fac73b701"
      id="F_84d71d96-acd9-445e-9122-0aa1337243e8">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8fae749f-7658-49ec-995a-609fac73b701"
      id="F_0c33acb1-92ce-4d86-9c6a-a35f8ce4a27e">&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;2,060,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_8fae749f-7658-49ec-995a-609fac73b701"
      decimals="-3"
      id="F_dc397e31-e239-478e-9ed0-c83144a9384a"
      unitRef="U_USD">2060000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
