<?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_8d018aad-0b28-4ca2-b94a-b02cf0786aba">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_8d018aad-0b28-4ca2-b94a-b02cf0786aba"
      id="F_1d5a4c99-9a11-428b-a7a6-83d3ce8b78f5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_8d018aad-0b28-4ca2-b94a-b02cf0786aba"
      id="F_1900763b-919c-4bb6-ada6-65468bf12a54">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8d018aad-0b28-4ca2-b94a-b02cf0786aba"
      id="F_0f5be96f-8895-4068-bcd5-8f1a2eb81161">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8d018aad-0b28-4ca2-b94a-b02cf0786aba"
      id="F_c281da33-2d24-4e17-a719-a353cdc412a1">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8d018aad-0b28-4ca2-b94a-b02cf0786aba"
      id="F_0505e9f2-b2b8-4c7b-899b-645ce3b10ed0">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8d018aad-0b28-4ca2-b94a-b02cf0786aba"
      id="F_79fb0810-b15c-4a99-b4d5-4c4836b534dc">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_8d018aad-0b28-4ca2-b94a-b02cf0786aba"
      id="F_a1eff9b1-cfec-4947-a170-1f7ea497318c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_8d018aad-0b28-4ca2-b94a-b02cf0786aba"
      id="F_6777e638-4201-464b-965c-6c90028f7624">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_8d018aad-0b28-4ca2-b94a-b02cf0786aba"
      id="F_945f9392-bde2-4337-b9f0-a86f244a1819">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8d018aad-0b28-4ca2-b94a-b02cf0786aba"
      id="F_b876a130-143b-49d4-b6ee-8e07c16be5e2">&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;3,000,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_8d018aad-0b28-4ca2-b94a-b02cf0786aba"
      decimals="-6"
      id="F_bfb825ae-d439-4a81-bb43-e8c7d6778edd"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
