<?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_a0700ce3-4821-46da-bbd8-8c09e0bb9c77">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_a0700ce3-4821-46da-bbd8-8c09e0bb9c77"
      id="F_0fbea72a-b06b-45ed-b8f5-ff7a15688933">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_a0700ce3-4821-46da-bbd8-8c09e0bb9c77"
      id="F_9fcdcbd5-c4dd-499b-934f-61f2b0238359">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a0700ce3-4821-46da-bbd8-8c09e0bb9c77"
      id="F_ef3859d7-fa19-41c4-ab03-cb90b607acd9">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a0700ce3-4821-46da-bbd8-8c09e0bb9c77"
      id="F_0761f295-26ee-4b20-bd57-5d03c0c9ae8f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_a0700ce3-4821-46da-bbd8-8c09e0bb9c77"
      id="F_724b0deb-0eb8-4aa6-aec7-632d5fb6ccd2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_a0700ce3-4821-46da-bbd8-8c09e0bb9c77"
      id="F_a2ac8ebb-ce4b-4236-b6b8-b2726545f865">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_a0700ce3-4821-46da-bbd8-8c09e0bb9c77"
      id="F_b6af9d60-1109-412c-85fb-6eb3582690ea">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a0700ce3-4821-46da-bbd8-8c09e0bb9c77"
      id="F_c1c8476f-3832-4d08-ae87-2430909f21f8">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a0700ce3-4821-46da-bbd8-8c09e0bb9c77"
      id="F_8bee4853-1aa7-4b8f-afd2-1be3090022ab">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a0700ce3-4821-46da-bbd8-8c09e0bb9c77"
      id="F_d0f6d168-3851-48f2-9808-597390c33445">&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;300,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_a0700ce3-4821-46da-bbd8-8c09e0bb9c77"
      decimals="-3"
      id="F_c1ce3e22-7290-4480-91c6-f14a0c9f5619"
      unitRef="U_USD">300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
