<?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_816cb77a-1f3b-4b4f-b15a-f75e9b6c5d5c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_816cb77a-1f3b-4b4f-b15a-f75e9b6c5d5c"
      id="F_28d00644-3f60-4695-97ac-ba0b007fc9b8">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_816cb77a-1f3b-4b4f-b15a-f75e9b6c5d5c"
      id="F_95686f77-8a23-421a-b3cc-0ff1dc957bcc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_816cb77a-1f3b-4b4f-b15a-f75e9b6c5d5c"
      id="F_145d1c3f-51de-41d3-ad07-dae4eccf647f">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_816cb77a-1f3b-4b4f-b15a-f75e9b6c5d5c"
      id="F_f239193b-4a9e-4ab1-a183-13af43d99359">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_816cb77a-1f3b-4b4f-b15a-f75e9b6c5d5c"
      id="F_59ada1d5-c053-4d2d-a281-75e8826f9b05">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_816cb77a-1f3b-4b4f-b15a-f75e9b6c5d5c"
      id="F_d8d2d167-3e69-4da8-9dd8-e7c1d513f390">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_816cb77a-1f3b-4b4f-b15a-f75e9b6c5d5c"
      id="F_76ab1575-bac1-4830-a2e3-e47612e324f4">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_816cb77a-1f3b-4b4f-b15a-f75e9b6c5d5c"
      id="F_41af8030-f2ff-4b3d-978f-816b06ebed1c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_816cb77a-1f3b-4b4f-b15a-f75e9b6c5d5c"
      id="F_61e118a5-ebf9-422c-b4dc-f471bb1c5cd4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_816cb77a-1f3b-4b4f-b15a-f75e9b6c5d5c"
      id="F_b1eb1b95-ebf0-4ddc-a9a7-cad299f9ce66">&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;2,905,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_816cb77a-1f3b-4b4f-b15a-f75e9b6c5d5c"
      decimals="-3"
      id="F_b0f36921-d7bd-4a04-af70-0a244990025f"
      unitRef="U_USD">2905000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
