<?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_f8dac0ed-2460-4626-af5a-a74906712839">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_f8dac0ed-2460-4626-af5a-a74906712839"
      id="F_f7a35489-12f3-4bf9-9bc4-07bf9c44beb9">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f8dac0ed-2460-4626-af5a-a74906712839"
      id="F_a511a663-c353-4355-a2e6-2d5eeb3eb8e1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_f8dac0ed-2460-4626-af5a-a74906712839"
      id="F_6feb2f1a-a086-410f-99ad-e6f44415b1f4">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f8dac0ed-2460-4626-af5a-a74906712839"
      id="F_cf925058-5055-4ff4-8d8d-69dfc84f9fb2">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f8dac0ed-2460-4626-af5a-a74906712839"
      id="F_890ca3ea-0b77-4583-b8f9-29f87b351d02">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_f8dac0ed-2460-4626-af5a-a74906712839"
      id="F_7f806094-08d4-4f7f-9eae-cc6b71bc2f02">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f8dac0ed-2460-4626-af5a-a74906712839"
      id="F_6868433c-7d5f-4c57-ac26-bcb8a149d628">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_f8dac0ed-2460-4626-af5a-a74906712839"
      id="F_33d9148f-facf-425c-b5dc-611a306a0bc8">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_f8dac0ed-2460-4626-af5a-a74906712839"
      id="F_f0d343bb-6cca-4808-896a-5324df1bbcb8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_f8dac0ed-2460-4626-af5a-a74906712839"
      id="F_b231d5c4-54b2-4384-a44f-952280a0b78b">&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;10,185,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_f8dac0ed-2460-4626-af5a-a74906712839"
      decimals="-3"
      id="F_2a62eac9-cb88-4a94-ab44-8901b891ac34"
      unitRef="U_USD">10185000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
