<?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_0e9a40aa-5f16-423f-abe4-a0ca6d2b73e2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_0e9a40aa-5f16-423f-abe4-a0ca6d2b73e2"
      id="F_a1166ded-9f75-4939-9913-57953495c55c">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_0e9a40aa-5f16-423f-abe4-a0ca6d2b73e2"
      id="F_6005fc37-c2df-4720-a302-f0b6c39c27fa">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_0e9a40aa-5f16-423f-abe4-a0ca6d2b73e2"
      id="F_f0bb55af-49d7-4e56-8224-4b35741f080d">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_0e9a40aa-5f16-423f-abe4-a0ca6d2b73e2"
      id="F_304493fc-9230-46ec-8085-551d096822c1">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_0e9a40aa-5f16-423f-abe4-a0ca6d2b73e2"
      id="F_65de86d2-e0a8-499e-82a4-550095f42e73">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_0e9a40aa-5f16-423f-abe4-a0ca6d2b73e2"
      id="F_88d18e94-3acc-4738-bb97-31af32cdd2ba">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_0e9a40aa-5f16-423f-abe4-a0ca6d2b73e2"
      id="F_05e9f5e2-0d1b-4210-b886-f5a0d3996873">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0e9a40aa-5f16-423f-abe4-a0ca6d2b73e2"
      id="F_bf197abb-702e-4db8-a2f6-698bf639a8cc">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0e9a40aa-5f16-423f-abe4-a0ca6d2b73e2"
      id="F_6cf9057a-d9e3-4014-ba1d-531a60952361">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0e9a40aa-5f16-423f-abe4-a0ca6d2b73e2"
      id="F_40fc9808-6465-4c87-85b9-43b99dc3dc12">&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,552,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_0e9a40aa-5f16-423f-abe4-a0ca6d2b73e2"
      decimals="-3"
      id="F_5a75312c-8484-4a2d-9c29-d064e2d112bc"
      unitRef="U_USD">2552000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
