<?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_7b2f5d99-6c3c-4608-be86-535683ef318f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_7b2f5d99-6c3c-4608-be86-535683ef318f"
      id="F_fb7e65ee-3698-4301-912c-a97981301a37">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_7b2f5d99-6c3c-4608-be86-535683ef318f"
      id="F_0b6c372a-699b-42fd-ba61-a33d5aec5f10">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7b2f5d99-6c3c-4608-be86-535683ef318f"
      id="F_5a550354-2b2e-45d1-bb7e-7cc07d2a0940">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_7b2f5d99-6c3c-4608-be86-535683ef318f"
      id="F_a04cc359-b680-4317-b18f-917a48e98eb2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_7b2f5d99-6c3c-4608-be86-535683ef318f"
      id="F_7023fd04-a4c7-496f-994d-afa527c1f6d2">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7b2f5d99-6c3c-4608-be86-535683ef318f"
      id="F_72b2cd8d-d3d8-4db2-9140-2fbeb4bc7df3">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_7b2f5d99-6c3c-4608-be86-535683ef318f"
      id="F_3ecacf92-6fd2-4705-a0bf-4c0e2b635e75">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7b2f5d99-6c3c-4608-be86-535683ef318f"
      id="F_3d3bc3fa-89eb-4592-9c05-d4fb47ccf09a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_7b2f5d99-6c3c-4608-be86-535683ef318f"
      id="F_d6c9201d-da22-49a2-9ffa-d061bed17b01">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7b2f5d99-6c3c-4608-be86-535683ef318f"
      id="F_e064679d-20b2-4432-aaf9-391c06b9683d">&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;887,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_7b2f5d99-6c3c-4608-be86-535683ef318f"
      decimals="-3"
      id="F_267de64a-8541-4fc3-948a-150c6c60c277"
      unitRef="U_USD">887000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
