<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_a6ab38e7-ae69-4610-9bc9-55851044e84a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-18</startDate>
            <endDate>2026-05-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_a6ab38e7-ae69-4610-9bc9-55851044e84a"
      id="F_ddb8c1a0-0037-4a54-9780-e6d139a41952">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a6ab38e7-ae69-4610-9bc9-55851044e84a"
      id="F_d0165e4f-3f64-4eb7-8fc4-b1fb9a2b9699">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_a6ab38e7-ae69-4610-9bc9-55851044e84a"
      id="F_613dbc83-28fb-409f-be88-94860190426c">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_a6ab38e7-ae69-4610-9bc9-55851044e84a"
      id="F_589440d3-2788-4b47-8048-210140c8d220">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a6ab38e7-ae69-4610-9bc9-55851044e84a"
      id="F_4b8d21e6-9d04-43fb-8548-3fc5be8e7cd4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a6ab38e7-ae69-4610-9bc9-55851044e84a"
      id="F_46b93646-0634-4c60-a245-6b9bd50d54af">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a6ab38e7-ae69-4610-9bc9-55851044e84a"
      id="F_44a098fe-3f03-4e7f-93ec-95923165b272">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a6ab38e7-ae69-4610-9bc9-55851044e84a"
      id="F_56755ef8-4185-4d25-a8f6-33f25f27bb46">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a6ab38e7-ae69-4610-9bc9-55851044e84a"
      id="F_5daa018c-0932-4b6b-9ab6-4a3544d3ec84">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a6ab38e7-ae69-4610-9bc9-55851044e84a"
      id="F_1c19b02f-d4b4-44bb-a92f-294f294bb82c">&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;695,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_a6ab38e7-ae69-4610-9bc9-55851044e84a"
      decimals="0"
      id="F_65895cd3-da43-4452-8cab-21ce3a6cc31c"
      unitRef="U_USD">695000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
