<?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_c5eef57a-4712-488b-95f6-489abfd5e4d3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_c5eef57a-4712-488b-95f6-489abfd5e4d3"
      id="F_764dc79f-863c-49ed-afd6-6d2420585a82">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c5eef57a-4712-488b-95f6-489abfd5e4d3"
      id="F_e3f0b1ec-56e5-4db5-9f2a-b4c9f744505c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c5eef57a-4712-488b-95f6-489abfd5e4d3"
      id="F_6191d24b-9092-413b-9f55-0ba6edf5ce85">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_c5eef57a-4712-488b-95f6-489abfd5e4d3"
      id="F_2e005ce7-9741-4510-84b1-0e6d7698df17">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c5eef57a-4712-488b-95f6-489abfd5e4d3"
      id="F_bb433b97-1499-4604-9a10-995a3c56581d">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_c5eef57a-4712-488b-95f6-489abfd5e4d3"
      id="F_2acfa5b4-c8b0-457f-8409-57da8a13e1cf">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c5eef57a-4712-488b-95f6-489abfd5e4d3"
      id="F_388733c1-60fd-4930-8b9b-c4de9a2d80b1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c5eef57a-4712-488b-95f6-489abfd5e4d3"
      id="F_1fd69210-7e54-46be-a774-6d0f781da91a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_c5eef57a-4712-488b-95f6-489abfd5e4d3"
      id="F_0c3948c5-60a5-4837-9bf5-e731d6a6fd08">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c5eef57a-4712-488b-95f6-489abfd5e4d3"
      id="F_94a8ff6e-20c0-4fe5-9ad3-127fcf0125f1">&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;13,177,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_c5eef57a-4712-488b-95f6-489abfd5e4d3"
      decimals="-3"
      id="F_078c73f0-9270-44cf-8b7f-745ed8e8eb61"
      unitRef="U_USD">13177000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
