<?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_5d13e94d-fbd2-4c4b-b302-65ddea5809e4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_5d13e94d-fbd2-4c4b-b302-65ddea5809e4"
      id="F_49741ccc-dbc4-4c8e-8d17-278044da52d4">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_5d13e94d-fbd2-4c4b-b302-65ddea5809e4"
      id="F_1aae9cf0-19e6-4f0a-82b9-67a2168ced30">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5d13e94d-fbd2-4c4b-b302-65ddea5809e4"
      id="F_8bf75e59-9a84-4811-9226-3bd9ad50d799">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_5d13e94d-fbd2-4c4b-b302-65ddea5809e4"
      id="F_0809d68b-bc29-4ce5-8893-eb93c57df902">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5d13e94d-fbd2-4c4b-b302-65ddea5809e4"
      id="F_dd456471-0126-4095-8198-a9ef1c883046">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5d13e94d-fbd2-4c4b-b302-65ddea5809e4"
      id="F_9231cfb4-634a-45ae-b1b0-a378afe21c88">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5d13e94d-fbd2-4c4b-b302-65ddea5809e4"
      id="F_99be95ac-209d-4361-98fa-e1862da00a45">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_5d13e94d-fbd2-4c4b-b302-65ddea5809e4"
      id="F_d4b37ffd-e9b2-45d0-97c1-785ddd59cd7c">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_5d13e94d-fbd2-4c4b-b302-65ddea5809e4"
      id="F_07a2f83f-e834-43d0-889b-5ae09cb01c4d">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_5d13e94d-fbd2-4c4b-b302-65ddea5809e4"
      id="F_cbfc7812-ae52-4362-89f9-7a44e91b8a4b">&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,500,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_5d13e94d-fbd2-4c4b-b302-65ddea5809e4"
      decimals="-3"
      id="F_9a0536af-035b-4739-98b6-b09fa561216c"
      unitRef="U_USD">2500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
