<?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_b412075d-83f3-4d41-a154-b9e555a5f1f9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_b412075d-83f3-4d41-a154-b9e555a5f1f9"
      id="F_22e43f3b-bd26-4fd5-8fec-8b23e9843474">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_b412075d-83f3-4d41-a154-b9e555a5f1f9"
      id="F_77030d44-0ad8-4a2c-a0b0-29db6169942e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b412075d-83f3-4d41-a154-b9e555a5f1f9"
      id="F_2a8a2a28-3b23-4c16-bb71-94801a0256cc">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b412075d-83f3-4d41-a154-b9e555a5f1f9"
      id="F_0c1eb45a-9c4e-4848-b9e6-3da77d010d29">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b412075d-83f3-4d41-a154-b9e555a5f1f9"
      id="F_23cce7a3-5591-400f-8525-3ede33f02572">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b412075d-83f3-4d41-a154-b9e555a5f1f9"
      id="F_bbd7b6a1-f6fd-4103-8dcc-be33ee777452">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_b412075d-83f3-4d41-a154-b9e555a5f1f9"
      id="F_33273784-a281-4c8d-9266-60104b37e057">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b412075d-83f3-4d41-a154-b9e555a5f1f9"
      id="F_8719a2d0-f9d3-4d4f-90dc-498d872949ec">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b412075d-83f3-4d41-a154-b9e555a5f1f9"
      id="F_2de534f7-394e-4e86-9a09-c147d559ba46">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b412075d-83f3-4d41-a154-b9e555a5f1f9"
      id="F_04463986-7cb5-40f3-9024-158c31b037b7">&lt;p style="tab-size:26.66px;font-size:12pt;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;810,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_b412075d-83f3-4d41-a154-b9e555a5f1f9"
      decimals="-3"
      id="F_73a59975-a099-4dec-af89-8db12d5e03b8"
      unitRef="U_USD">810000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
