<?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_45df9667-d2d4-488a-834b-748a89afbef9">
        <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:SubmissnTp
      contextRef="C_45df9667-d2d4-488a-834b-748a89afbef9"
      id="F_65f9e493-4993-4f25-8866-2700de822e88">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_45df9667-d2d4-488a-834b-748a89afbef9"
      id="F_259a4309-fad6-408d-9d18-b7e6eda3279f">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_45df9667-d2d4-488a-834b-748a89afbef9"
      id="F_7f9dd7d5-4491-4627-9de3-836f28363bae">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_45df9667-d2d4-488a-834b-748a89afbef9"
      id="F_88ff8407-f243-4c0b-8db6-9e6f8e002e1b">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_45df9667-d2d4-488a-834b-748a89afbef9"
      id="F_2096221b-6adb-4d8a-bb16-3da959312670">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_45df9667-d2d4-488a-834b-748a89afbef9"
      id="F_30735fa5-d959-4c6f-b6dd-ca1649aaeb97">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_45df9667-d2d4-488a-834b-748a89afbef9"
      id="F_12a588cc-048e-4253-87dc-230828ca9e1d">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_45df9667-d2d4-488a-834b-748a89afbef9"
      id="F_5e7de5a1-11d9-4458-8735-fb80f622a34c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_45df9667-d2d4-488a-834b-748a89afbef9"
      id="F_c4ca006d-5fc0-427d-b4d7-eee207a182f7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_45df9667-d2d4-488a-834b-748a89afbef9"
      id="F_7dd5a750-d9cc-49ad-8ed8-1b6179caeade">&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;1,700,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_45df9667-d2d4-488a-834b-748a89afbef9"
      decimals="-3"
      id="F_fa7f4daf-3024-46f8-bed0-3b233d275641"
      unitRef="U_USD">1700000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
