<?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_cd19b04b-2698-4824-9295-39736f9cf382">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_cd19b04b-2698-4824-9295-39736f9cf382"
      id="F_7ebdbf93-44cd-4096-8177-aff5aef7dc9c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_cd19b04b-2698-4824-9295-39736f9cf382"
      id="F_d9678abc-7f17-4d8a-a134-429dfa743e65">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_cd19b04b-2698-4824-9295-39736f9cf382"
      id="F_a200db45-d495-4355-9ae5-fdac50c3c2a9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_cd19b04b-2698-4824-9295-39736f9cf382"
      id="F_566d5011-218d-4a17-96bd-63ffc95ba19c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cd19b04b-2698-4824-9295-39736f9cf382"
      id="F_681fa0a7-9d78-4539-b75b-a48d0f40f0e1">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_cd19b04b-2698-4824-9295-39736f9cf382"
      id="F_8c156574-eda0-4f14-8896-a448b433d050">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_cd19b04b-2698-4824-9295-39736f9cf382"
      id="F_1a61721c-344e-4250-ad1e-38229323ff05">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_cd19b04b-2698-4824-9295-39736f9cf382"
      id="F_b339b706-321e-457b-8b27-8319ada1a4eb">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cd19b04b-2698-4824-9295-39736f9cf382"
      id="F_fdf15a04-43b0-418f-a368-c43ba720ef67">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cd19b04b-2698-4824-9295-39736f9cf382"
      id="F_873f1a3c-a61a-4003-b9e4-7d6e4068b881">&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,000,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_cd19b04b-2698-4824-9295-39736f9cf382"
      decimals="-6"
      id="F_2cee9cf0-6007-46f4-9796-ba38e4084f0c"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
